{"id":28546328,"url":"https://github.com/astrowonk/mastodon_hurricane_bot","last_synced_at":"2026-04-28T17:03:01.193Z","repository":{"id":196268228,"uuid":"695558288","full_name":"astrowonk/mastodon_hurricane_bot","owner":"astrowonk","description":"Python script that posts Hurricane updates from the NHC Atlantic RSS Feed","archived":false,"fork":false,"pushed_at":"2025-08-16T20:47:04.000Z","size":154,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-16T22:17:32.492Z","etag":null,"topics":["bot","hurricanes","mastodon","nhc","python","weather"],"latest_commit_sha":null,"homepage":"https://vmst.io/@nhc_atlantic_bot","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/astrowonk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2023-09-23T14:49:13.000Z","updated_at":"2025-08-16T20:47:07.000Z","dependencies_parsed_at":"2023-09-25T01:52:59.040Z","dependency_job_id":"8caa9363-d845-4ba0-9408-8d3ac0970de8","html_url":"https://github.com/astrowonk/mastodon_hurricane_bot","commit_stats":{"total_commits":34,"total_committers":1,"mean_commits":34.0,"dds":0.0,"last_synced_commit":"31d70684c92233ea6dec470f756ea4f03ba98d8b"},"previous_names":["astrowonk/mastodon_hurricane_bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/astrowonk/mastodon_hurricane_bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astrowonk%2Fmastodon_hurricane_bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astrowonk%2Fmastodon_hurricane_bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astrowonk%2Fmastodon_hurricane_bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astrowonk%2Fmastodon_hurricane_bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/astrowonk","download_url":"https://codeload.github.com/astrowonk/mastodon_hurricane_bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astrowonk%2Fmastodon_hurricane_bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32390067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T14:34:11.604Z","status":"ssl_error","status_checked_at":"2026-04-28T14:32:37.009Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bot","hurricanes","mastodon","nhc","python","weather"],"created_at":"2025-06-09T23:38:55.597Z","updated_at":"2026-04-28T17:03:01.158Z","avatar_url":"https://github.com/astrowonk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tropical Weather (Atlantic) Updates to Mastodon\n\n## This Mastodon bot is posting during hurricane system [hosted on vmst.io](https://vmst.io/@nhc_atlantic_bot).\n\nThis grabs the [NHC Atlantic RSS Feed](https://www.nhc.noaa.gov/aboutrss.shtml), specifically \"Atlantic Basin Tropical Cyclones\" from `https://www.nhc.noaa.gov/index-at.xml` and generates automated posts to a Mastodon bot with this data.\n\nThere are a few functions in the `nhc_bot.py` script that parse the feed into storm-specific lists of 6-7 items per storm, using `lxml`.\n\nThe `Stormy` class then takes a list of dictionaries for one storm, and generates text, links, and images for a Mastodon post.\n\nSome somewhat messy condition logic is needed to figure out if an update has occured and if a new post should be made. The main script first checks the `etag` of the rss feed itself, from the http headers. If the `etag` has changed, the feed is parsed into storm lists and each `Stormy` instance for each storm is checked against the last posted information for that storm (written to JSON), to see if the summary text changed. \n\nFinally, before posting, a hash of the image bytes is also checked against the hash of the last posted track image, since sometimes the image data lags behind the RSS feed, and I don't want to post a 2PM image with the 5PM update.\n\nThe main script runs as a cron job on a Digital Ocean droplet.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastrowonk%2Fmastodon_hurricane_bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fastrowonk%2Fmastodon_hurricane_bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastrowonk%2Fmastodon_hurricane_bot/lists"}