{"id":15707036,"url":"https://github.com/passcod/capchat","last_synced_at":"2025-05-12T19:15:15.098Z","repository":{"id":47013133,"uuid":"406722025","full_name":"passcod/capchat","owner":"passcod","description":"Posts CAP alerts to a chat room","archived":false,"fork":false,"pushed_at":"2021-11-08T01:45:18.000Z","size":410,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-12T19:15:04.147Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/passcod.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}},"created_at":"2021-09-15T10:47:56.000Z","updated_at":"2023-12-29T12:14:33.000Z","dependencies_parsed_at":"2022-09-16T13:33:13.267Z","dependency_job_id":null,"html_url":"https://github.com/passcod/capchat","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passcod%2Fcapchat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passcod%2Fcapchat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passcod%2Fcapchat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passcod%2Fcapchat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/passcod","download_url":"https://codeload.github.com/passcod/capchat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253805846,"owners_count":21967054,"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":[],"created_at":"2024-10-03T20:33:01.057Z","updated_at":"2025-05-12T19:15:15.080Z","avatar_url":"https://github.com/passcod.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CAP-CHAT\n\nSends CAP (Weather, etc) Warnings to Chat.\n\n## Options\n\n|Option|Description|Default|\n|:-----|:----------|------:|\n|`--cap`|URL for the Atom/RSS feed to CAP alerts (can have multiple)|**required**|\n|`--format`|Type of output to send to chatrooms (`json`, `text`, `text+map`).|`text+map`|\n|`--severity`|Minimum severity to get alerts for|Minor|\n|`--boundaries`|Path to a folder container GeoJSON files with polygons that demarcate areas you care about|`_boundaries` folder in workdir|\n|`--outlines`|Path to a folder container GeoJSON files with polygons for outlines of countries or areas, to render basemaps|`_outlines` folder in workdir|\n|`--cache-db`|Path to the cache database (used to avoid double-posting)|`_cache` folder in workdir|\n\nYou can download outline GeoJSON files from https://geojson-maps.ash.ms/.\n\nYou can make your own boundary GeoJSONs with https://geoman.io/geojson-editor.\n\n## Outputs\n\n|Option|Description|\n|:-----|:----------|\n|`--print`|Print text to STDOUT.|\n|`--file`|Write to file. The message will go to `PATH.txt`, and if there's an image it will go to `PATH.png`.|\n|`--image-height`|Maximum height of image in pixels for `text+map` output format (default 512).|\n|`--image-width`|Maximum width of image in pixels for `text+map` output format (default 512).|\n|`--facebook-token`|Facebook Messenger/Workplace token (must have _Message Any Member_ and _Group Chat Bot_ permissions).|\n|`--facebook-thread`|Facebook Messenger/Workplace Thread ID to post in. Cannot be a single user chat.|\n|`--discord-webhook-url`|Discord webhook URL to use to post messages.|\n\n## Logs\n\nBy default, moderate (info) logs are printed to STDERR.\nTo increase verbosity, use `-v`, `-vv`, or `-vvv`.\nTo decrease verbosity, use `-q`.\n\nAdditionally, and overriding any of these options, the `RUST_LOG` environment variable is respected.\nSee [tracing-subscriber](https://docs.rs/tracing-subscriber/*/tracing_subscriber/filter/struct.EnvFilter.html) for syntax.\n\n## Example\n\n\u003e ![northland map](./example.png)\n\u003e\n\u003e SEVERE THUNDERSTORM WATCH\n\u003e\n\u003e 🟡  **[Auckland,Waikato]**  6 hours from _04:30am Thursday_ to _11:00am Thursday_\n\u003e\n\u003e Updated at 4:30pm to extend risk of severe thunderstorms to all of northern Waikato\n\u003e\n\u003e Thunderstorms are expected to develop over the Auckland region this afternoon, and spread southwards into northern Waikato towards evening.\n\u003e These thunderstorms will be accompanied by localised heavy rain and small hail.  There is also a low risk of a small tornado or funnel cloud.\n\u003e Between 4pm and 10pm today (Thursday) in Auckland, and between 6pm and 11pm in northern Waikato, a few of these thunderstorms could be severe producing localised downpours of 25-40mm/hr.\n\u003e Rainfall of this intensity can cause surface and/or flash flooding, especially about low-lying areas such as streams, rivers or narrow valleys, and may also lead to slips.\n\u003e Driving conditions will also be hazardous with surface flooding and poor visibility in heavy rain.\n\n## CAP list\n\n### Aotearoa (NZ)\n\n- Weather: https://alerts.metservice.com/cap/rss\n- Earthquake: https://api.geonet.org.nz/cap/1.2/GPA1.0/feed/atom1.0/quake\n- Civil Defence: https://alerthub.civildefence.govt.nz/rss/pwp\n- Regional Emergencies: https://api.preparecenter.org/v1/org/nzl/alerts/rss\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpasscod%2Fcapchat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpasscod%2Fcapchat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpasscod%2Fcapchat/lists"}