Skip to content
/ londonmapbot Public template

📍🤖 Ex-Mastodon (and ex-Twitter) bot: random London coordinates fed to the Mapbox API and posted with {rtoot} via a GitHub Action

License

Notifications You must be signed in to change notification settings

matt-dray/londonmapbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

londonmapbot

Project Status: Inactive – The project has reached a stable, usable state but is no longer being actively developed; support/maintenance will be provided as time allows. rostrum.blog posts

What

Source for the former Mastodon bot @[email protected]—and former Twitter bot @londonmapbot—for posting random satellite images of London. Built by Matt Dray.

The repo contains a GitHub Action that executes R code on schedule to:

  1. Choose a random spot in a bounding box that encloses Greater London.
  2. Query the Mapbox API for a satellite image of that location.
  3. Generate an OpenStreetMap URL for that location.
  4. Post the image and URL to Mastodon using {rtoot}.

Thank you to MapBox; OpenStreetMap contributors; and David and Chung-hong.

When

The bot was built originally for Twitter as @londonmapbot using the {rtweet} package. Thank you Michael, Lluís and Hadley. Posts to Twitter stopped in May 2023 due to changes in the API terms of service. You can see an older version of the repo from before the Twitter-related code was removed.

The bot was ported to the botsin.space instance of Mastodon thereafter, but was stopped from updating in December 2024 after the announcement that the instance would be shutting down. Thank you Colin.

How

To run this code locally, you'll first need to create and complete a .Renviron file in the project root using the .Renviron.example file as a template. If you enable the GitHub Action to run the R script, you'll need to add these environmental variables to the GitHub Secrets of your repo.

For more information about the bot's development, see:

About

📍🤖 Ex-Mastodon (and ex-Twitter) bot: random London coordinates fed to the Mapbox API and posted with {rtoot} via a GitHub Action

Topics

Resources

License

Stars

Watchers

Forks

Languages