Skip to content
This repository has been archived by the owner on Jul 15, 2020. It is now read-only.

Tide prediction service. Given a latitude and longitude in decimal degrees (web mercator projection), and a date and time (UTC) it will return a json string with the predicted tide, and the 24 hour min/max tide levels.

License

Notifications You must be signed in to change notification settings

venicegeo/bf-tideprediction

Repository files navigation

bf-tideprediction

A simple service providing a series of REST Endpoint for predicting tides based on time and location.

Development

Running (Local, Unix)

If developing on a Unix OS, you can run this project locally. Using virtualenv is recommended. With your environment established, simply run:

pip install -r requirements.txt
./scripts/extract-historical-data.sh

Once the dependencies have been fetched, and data created, then you can run the Flask server by executing:

./scripts/run-locally.sh

Running (Vagrant)

If developing on Windows, then Vagrant is required to run this software, as gunicorn does not support Unix (and Shell scripts currently have no Windows parallel). In order to run the Vagrant box, simply execute vagrant up from the root directory of this project. The application will be available at http://localhost:5000

Testing

Run Unit Tests

nosetests --with-coverage --cover-erase --cover-package=bftideprediction

Run Integration Tests

TIDES_HOST=localhost:5000 ./scripts/integration-test.sh

Change TIDES_HOST to whatever domain you're trying to test.

Trying the github push trigger on the new job

About

Tide prediction service. Given a latitude and longitude in decimal degrees (web mercator projection), and a date and time (UTC) it will return a json string with the predicted tide, and the 24 hour min/max tide levels.

Resources

License

Stars

Watchers

Forks

Packages

No packages published