{"id":20200970,"url":"https://github.com/openclimatefix/nowcasting_alerts","last_synced_at":"2025-03-03T08:44:07.447Z","repository":{"id":66472895,"uuid":"546009105","full_name":"openclimatefix/nowcasting_alerts","owner":"openclimatefix","description":"Webhook alerts for nowcasting","archived":false,"fork":false,"pushed_at":"2022-10-12T10:34:13.000Z","size":235,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-20T23:58:22.336Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/openclimatefix.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},"funding":{"github":["openclimatefix"],"patreon":null,"open_collective":"openclimatefix","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2022-10-05T11:12:18.000Z","updated_at":"2022-10-05T11:18:59.000Z","dependencies_parsed_at":"2023-03-27T11:38:48.383Z","dependency_job_id":null,"html_url":"https://github.com/openclimatefix/nowcasting_alerts","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"cceb69ed0ded222ba00c1e02702b027185a9024b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openclimatefix%2Fnowcasting_alerts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openclimatefix%2Fnowcasting_alerts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openclimatefix%2Fnowcasting_alerts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openclimatefix%2Fnowcasting_alerts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openclimatefix","download_url":"https://codeload.github.com/openclimatefix/nowcasting_alerts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241637191,"owners_count":19994927,"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-11-14T04:46:21.569Z","updated_at":"2025-03-03T08:44:07.420Z","avatar_url":"https://github.com/openclimatefix.png","language":"JavaScript","funding_links":["https://github.com/sponsors/openclimatefix","https://opencollective.com/openclimatefix"],"categories":[],"sub_categories":[],"readme":"# Nowcasting Alerts\n\nPrototype for a Nowcasting Alerts service. We use a Cloudflare Workers cron to fetch the most recent Nowcasting and PV_Live forecasts, and check if there's a deviation in values (currently hard coded to 0.5GW). If there is, we make a POST request to all configured alert URLs.\n\nThis app is built with [Remix](https://remix.run/docs) and deployed to [Cloudflare Pages](https://developers.cloudflare.com/pages).\n\nThere is a sister repo \n\n## Development\n\nYou will be utilizing Wrangler for local development to emulate the Cloudflare runtime. This is already wired up in your package.json as the `dev` script:\n\n```sh\n# start the remix dev server and wrangler\nnpm run dev\n```\n\nOpen up [http://127.0.0.1:8788](http://127.0.0.1:8788) and you should be ready to go!\n\n## Deployment\n\nCloudflare Pages are currently only deployable through their Git provider integrations.\n\nIf you don't already have an account, then [create a Cloudflare account here](https://dash.cloudflare.com/sign-up/pages) and after verifying your email address with Cloudflare, go to your dashboard and follow the [Cloudflare Pages deployment guide](https://developers.cloudflare.com/pages/framework-guides/deploy-anything).\n\nCreate a new Cloudflare Pages project, connect this repo.\nSet framework to Remix.\nSet env var `NODE_VERSION = v16.7.0`\n\n### Setup KV for production\n\nData for this app is stored using Cloudflare key-value storage\nGoto main nav Workers \u003e KV.\nCreate KV namespaces: nowcasting-alerts-ALERTS, nowcasting-alerts-LOG\nGo back to the Cloudflare Pages project \u003e Settings \u003e Functions \u003e KV namespace bindings. Add bindings: ALERTS = nowcasting-alerts-ALERTS, LOG = nowcasting-alerts-LOG","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenclimatefix%2Fnowcasting_alerts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenclimatefix%2Fnowcasting_alerts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenclimatefix%2Fnowcasting_alerts/lists"}