Skip to content
forked from ezod/aistweet

Twitter snapshot bot for a Raspberry Pi RTL-SDR AIS ship tracking station.

License

Notifications You must be signed in to change notification settings

farhan0102/aistweet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aistweet, a Twitter photo bot for Raspberry Pi AIS tracking stations

aistweet tracks ships via AIS and takes their picture with a Raspberry Pi camera as they pass by.

Written for and powering the Detroit River Boat Tracker. Read about how it was made!

How To Build It

Things you will need:

Build and install rtl-ais, and configure it to stream UDP data to the host and port defined by the aistweet command line.

If you want to also upload your AIS data to other services online and have a locally-hosted interactive map, you can use AIS Dispatcher for Linux.

It is important to set the latitude, longitude, and direction of your camera accurately in order for the snapshot timing to work. The direction is measured in degrees clockwise from north of the camera's center axis.

Command Line

usage: aistweet.py [-h] [--host HOST] [--port PORT] [--db DB]
                   [--hashtags HASHTAGS [HASHTAGS ...]] [--tts]
                   latitude longitude direction consumer_key consumer_secret
                   access_token access_token_secret

Raspberry Pi AIS tracker/camera Twitter bot

positional arguments:
  latitude              AIS station latitude
  longitude             AIS station longitude
  direction             bearing of camera (degrees clockwise from north)
  consumer_key          Twitter consumer key
  consumer_secret       Twitter consumer secret
  access_token          Twitter access token
  access_token_secret   Twitter access token secret

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
  --hashtags HASHTAGS [HASHTAGS ...]
                        hashtags to add to tweets
  --tts                 announce ship name via text-to-speech
  --light               disable night snapshots via light sensor

Dependencies

About

Twitter snapshot bot for a Raspberry Pi RTL-SDR AIS ship tracking station.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%