- Notifications
You must be signed in to change notification settings - Fork3
Bluesky snapshot bot for a Raspberry Pi RTL-SDR AIS ship tracking station.
License
ezod/aistweet
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
aistweet tracks ships via AIS and takes their picture with a Raspberry Picamera as they pass by.
Written for and powering theDetroit River Boat Tracker. Read abouthow it was made!
Things you will need:
- aRaspberry Pi
- aRaspberry Pi Camera Module
- a USB SDR dongle, such asNooelec NESDR Smart v4
- a VHF antenna suitable for receivingAIS transmissions
- anAdafruit VEML7700 ambient light sensor module (optional)
Build and installrtl-ais, and configure it to stream UDP data to the hostand port defined by the aistweet command line.
If you want to also upload your AIS data to other services online and have alocally-hosted interactive map, you can useAIS Dispatcher for Linux.
It is important to set the latitude, longitude, and direction of your cameraaccurately in order for the snapshot timing to work. The direction is measuredin degrees clockwise from north of the camera's center axis.
usage: aistweet.py [-h] [--host HOST] [--port PORT] [--db DB] [--hashtags HASHTAGS [HASHTAGS ...]] [--tts] latitude longitudeRaspberry Pi AIS tracker/camera Bluesky botpositional arguments: latitude AIS station latitude longitude AIS station longitude direction bearing of camera (degrees clockwise from north)optional arguments: -h, --help show this help message and exit --host HOST host for receiving UDP AIS messages --port PORT port for receiving UDP AIS messages --db DB database file for static ship data --tts announce ship name via text-to-speech --light disable night snapshots via light sensorrequired environment variables: BLUESKY_USERNAME BLUESKY_PASSWORD