{"id":17795204,"url":"https://github.com/matt-dray/londonmapbot","last_synced_at":"2025-03-16T22:30:28.435Z","repository":{"id":46752284,"uuid":"296630493","full_name":"matt-dray/londonmapbot","owner":"matt-dray","description":":round_pushpin::robot: Ex-Mastodon (and ex-Twitter) bot: random London coordinates fed to the Mapbox API and posted with {rtoot} via a GitHub Action","archived":false,"fork":false,"pushed_at":"2024-12-11T22:33:56.000Z","size":51,"stargazers_count":31,"open_issues_count":0,"forks_count":15,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-09T01:11:58.130Z","etag":null,"topics":["github-actions","mapbox","mapbox-api","mastodon","mastodon-bot","rstats","rtoot"],"latest_commit_sha":null,"homepage":"https://botsin.space/@londonmapbot","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matt-dray.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-18T13:34:46.000Z","updated_at":"2024-12-20T14:45:04.000Z","dependencies_parsed_at":"2023-11-20T05:03:35.153Z","dependency_job_id":"abdc3ab9-9112-4934-9ab2-2ed2efc05adf","html_url":"https://github.com/matt-dray/londonmapbot","commit_stats":{"total_commits":49,"total_committers":2,"mean_commits":24.5,"dds":"0.20408163265306123","last_synced_commit":"ef3fdae5062e2735c8dac99dc8f3ed24a5aa70be"},"previous_names":[],"tags_count":3,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matt-dray%2Flondonmapbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matt-dray%2Flondonmapbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matt-dray%2Flondonmapbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matt-dray%2Flondonmapbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matt-dray","download_url":"https://codeload.github.com/matt-dray/londonmapbot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243095793,"owners_count":20235549,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-actions","mapbox","mapbox-api","mastodon","mastodon-bot","rstats","rtoot"],"created_at":"2024-10-27T11:25:06.186Z","updated_at":"2025-03-16T22:30:28.428Z","avatar_url":"https://github.com/matt-dray.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# londonmapbot\n\n[![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.](https://www.repostatus.org/badges/latest/inactive.svg)](https://www.repostatus.org/#inactive)\n[![](https://img.shields.io/badge/@londonmapbot@botsin.space-white?style=flat\u0026labelColor=purple\u0026logo=Mastodon\u0026logoColor=white)](https://botsin.space/@londonmapbot)\n[![](https://img.shields.io/badge/@londonmapbot-white?style=flat\u0026labelColor=blue\u0026logo=X\u0026logoColor=white)](https://twitter.com/londonmapbot)\n[![rostrum.blog posts](https://img.shields.io/badge/rostrum.blog-posts-008900?style=flat\u0026labelColor=black\u0026logo=data:image/gif;base64,R0lGODlhEAAQAPEAAAAAABWCBAAAAAAAACH5BAlkAAIAIf8LTkVUU0NBUEUyLjADAQAAACwAAAAAEAAQAAAC55QkISIiEoQQQgghRBBCiCAIgiAIgiAIQiAIgSAIgiAIQiAIgRAEQiAQBAQCgUAQEAQEgYAgIAgIBAKBQBAQCAKBQEAgCAgEAoFAIAgEBAKBIBAQCAQCgUAgEAgCgUBAICAgICAgIBAgEBAgEBAgEBAgECAgICAgECAQIBAQIBAgECAgICAgICAgECAQECAQICAgICAgICAgEBAgEBAgEBAgICAgICAgECAQIBAQIBAgECAgICAgIBAgECAQECAQIBAgICAgIBAgIBAgEBAgECAgECAgICAgICAgECAgECAgQIAAAQIKAAAh+QQJZAACACwAAAAAEAAQAAAC55QkIiESIoQQQgghhAhCBCEIgiAIgiAIQiAIgSAIgiAIQiAIgRAEQiAQBAQCgUAQEAQEgYAgIAgIBAKBQBAQCAKBQEAgCAgEAoFAIAgEBAKBIBAQCAQCgUAgEAgCgUBAICAgICAgIBAgEBAgEBAgEBAgECAgICAgECAQIBAQIBAgECAgICAgICAgECAQECAQICAgICAgICAgEBAgEBAgEBAgICAgICAgECAQIBAQIBAgECAgICAgIBAgECAQECAQIBAgICAgIBAgIBAgEBAgECAgECAgICAgICAgECAgECAgQIAAAQIKAAA7)]([https://www.rostrum.blog/tags/londonmapbot/](https://www.rostrum.blog/index.html#category=londonmapbot))\n\n## What\n\nSource for the former Mastodon bot [@londonmapbot@botsin.space](https://botsin.space/@londonmapbot)—and former Twitter bot [@londonmapbot](https://twitter.com/londonmapbot)—for posting random satellite images of London. Built by [Matt Dray](https://www.matt-dray.com). \n\nThe repo contains a [GitHub Action](https://github.com/features/actions) that executes R code on schedule to:\n\n1. Choose a random spot in a bounding box that encloses Greater London.\n2. Query [the Mapbox API](https://docs.mapbox.com/api/maps/#static-images) for a satellite image of that location.\n3. Generate an [OpenStreetMap](https://www.openstreetmap.org/) URL for that location.\n4. Post the image and URL to Mastodon using [{rtoot}](https://gesistsa.github.io/rtoot).\n\nThank you to MapBox; OpenStreetMap contributors; and David and Chung-hong.\n\n## When\n\nThe bot was built originally for Twitter as [@londonmapbot](https://www.twitter.com/londonmapbot) using the [{rtweet}](https://docs.ropensci.org/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](https://github.com/matt-dray/londonmapbot/tree/65aa64722c475fc9bda274c49674cd66ff695b4b) from before the Twitter-related code was removed.\n\nThe bot was ported to [the botsin.space instance of Mastodon](https://botsin.space/about) thereafter, but was stopped from updating in December 2024 after [the announcement that the instance would be shutting down](https://muffinlabs.com/posts/2024/10/29/10-29-rip-botsin-space/). Thank you Colin. \n\n## How\n\nTo 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.\n\nFor more information about the bot's development, see:\n\n* my talk at LondonR in Feb 2022 (see the [blog](https://www.rostrum.blog/posts/2022-02-12-mapbot-londonr/), [slides](https://matt-dray.github.io/mapbot-londonr/#1), [video](https://player.vimeo.com/video/683004567)) \n* my [original introductory blog post](https://www.rostrum.blog/2020/09/21/londonmapbot/)\n* my [blog post](https://www.rostrum.blog/posts/2023-02-09-londmapbotstodon/) about porting the bot to Mastodon, following [Matt Kerlogue's advice](https://lapsedgeographer.london/2022-11/mastodon-switch/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatt-dray%2Flondonmapbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatt-dray%2Flondonmapbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatt-dray%2Flondonmapbot/lists"}