Skip to content

Posts the low tides for Brighton (UK) to Twitter and Mastodon

License

Notifications You must be signed in to change notification settings

d6y/brighton-tide-post

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brighton Tide Post

Posts the latest Brighton Tide low tides to social media. Intended to replace brighton-tide-twitter eventually.

Currently implemented:

  • Mastodon
  • Twitter

See also:

Running this code

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.

Build and run using Docker

docker build -t tide-post .
docker run -it --rm --name running-post tide-post

About

Posts the low tides for Brighton (UK) to Twitter and Mastodon

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published