This project is part of the waarnemingen cluster. All data related to boats should be imported and exposed here through an API (API not yet implemented).
This project follows the setup used in multiple projects and is described here: https://github.com/Amsterdam/opdrachten_team_dev.
Currently Waternet is the only datasource we are retrieving data from. We retrieve AIS (automatic identification system) data from ships around Amsterdam, at a specific bounding box, every x amount of minutes.
Start the database
docker-compose up -d database
To scrape the waternet API locally first add the user credentials in your src/.env
file like so:
WATERNET_USERNAME=<username>
WATERNET_PASSWORD=<password>
Then run the script through docker
docker-compose run job python manage.py scrape_waternet
Now you have a snapshot of the api at the moment the script ran. To import (unpack) the snapshot run the import script:
docker-compose run job python manage.py import_waternet