Posts the latest Brighton Tide low tides to social media. Intended to replace brighton-tide-twitter eventually.
Currently implemented:
- Mastodon
See also:
- Brighton Tide on Amazon Alexa
- Brighton Tide on Mastodon
- Brighton Tide on Twitter
- Brighton Tide on Google Home
- A partial implementation in Rust.
- Data gathering via close source.
- Google Home code is closed source.
- Alexa code is closed source.
The data is stored in DynamoDB. You'll need a Dynamo table and tokens set to read from the table.
The table format is as per the TideRow
case class in this code base.
MASTODON_ACCESS_TOKEN=aaa AWS_ACCESS_KEY_ID=bbb AWS_SECRET_ACCESS_KEY=ccc sbt
sbt> run
...without the MASTODON_ACCESS_TOKEN
the post text will be printed only.
To include a post to Twitter, run with the environment variables of:
TWIT_CONSUMER_KEY
, TWIT_TOKEN_VALUE
, TWIT_CONSUMER_SECRET
, TWIT_ACCESS_TOKEN
.
docker build -t tide-post .
docker run -it --rm --name running-post tide-post