forked from lukec/Oilert
-
Notifications
You must be signed in to change notification settings - Fork 0
stearle/Oilert
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Oilert is an app to track the movement of tanker ships in Burrard Inlet. It consists of the following components: * A web interface to show the current state of ships nearby. * An API to subscribe and unsubscribe from SMS notifications. * A script to consume the AIShub.net feed and update our state. These are briefly explained below. ** Web Interface ** The web application is written in Perl using the Dancer framework. The initial prototype was hosted on dotCloud. The app is now hosted by Luke Closs <[email protected]>. The web app uses a Redis database to store information about the ships. ** Feed Consumer ** The data feed is supplied by aishub.net as a TCP stream of raw AIS data. The best reference for this is Eric S. Raymond's Protocol Decoding Guide - http://gpsd.berlios.de/AIVDM.html We use a ./bin/ais.py script from Kurt Schwehr - https://github.com/schwehr * It has been modified slightly to ignore types of errors ais.py emits a json stream which we consume and stick into Redis. === INSTALLING === Install dependencies first: * libais https://github.com/schwehr/libais/ * Many Perl dependencies listed in Makefile.PL * Redis Then you should be able to run the consumer ./bin/consume-aishub And you should be able to run the web interface in development mode: plackup With this in place, you can install these services into your environment.
About
Oil Tanker Notification Service
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Perl 86.9%
- CSS 9.9%
- Shell 3.2%