Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Latest commit

 

History

History
37 lines (23 loc) · 1.06 KB

README.md

File metadata and controls

37 lines (23 loc) · 1.06 KB

Waarnemingen boten

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).

Project architecture

This project follows the setup used in multiple projects and is described here: https://github.com/Amsterdam/opdrachten_team_dev.

Waternet

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.

Getting started

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