{"id":27245258,"url":"https://github.com/davidcornu/clear-skies","last_synced_at":"2025-04-10T21:10:44.240Z","repository":{"id":183522886,"uuid":"651136514","full_name":"davidcornu/clear-skies","owner":"davidcornu","description":"A simple weather API backed by Environment Canada's Current Condition \u0026 Forecast Atom feeds.","archived":false,"fork":false,"pushed_at":"2024-11-04T02:58:38.000Z","size":425,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-04T03:27:30.483Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://clear-skies.ca","language":"Rust","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/davidcornu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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-06-08T15:16:29.000Z","updated_at":"2024-11-04T02:58:42.000Z","dependencies_parsed_at":"2024-06-08T16:25:16.635Z","dependency_job_id":"3598801b-259b-4649-abd1-bf11a6fa3ba5","html_url":"https://github.com/davidcornu/clear-skies","commit_stats":null,"previous_names":["davidcornu/clear-skies"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidcornu%2Fclear-skies","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidcornu%2Fclear-skies/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidcornu%2Fclear-skies/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidcornu%2Fclear-skies/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidcornu","download_url":"https://codeload.github.com/davidcornu/clear-skies/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248298316,"owners_count":21080320,"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":"2025-04-10T21:10:40.049Z","updated_at":"2025-04-10T21:10:44.234Z","avatar_url":"https://github.com/davidcornu.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Clear Skies 🌤️\n\nA simple weather API backed by Environment Canada's [Current Condition \u0026 Forecast Atom feeds](https://www.canada.ca/en/environment-climate-change/services/weather-general-tools-resources/weatheroffice-online-services/data-services.html#toc1).\n\n\u003e [!NOTE]\n\u003e Clear Skies is a hobby project. Expect ongoing development and maintenance to be very much correlated to how much value it brings me as a learning resource and as a data source for my other projects.\n\u003e\n\u003e You are welcome to use the instance hosted on [clear-skies.ca](https://clear-skies.ca) (thanks to Fly.io's free tier) with the understanding that it comes with no uptime guarantees. Please host your own instance if you need something more robust.\n\n## Getting started\n\n- [OpenAPI Specification](https://clear-skies.ca/openapi.json)\n- [Swagger UI](https://clear-skies.ca/swagger-ui)\n\n## Developing\n\n### Building\n\nClear Skies uses [Nix](https://nixos.org/) to provide a consistent build and development environment. The most straightforward way to install it is using Determinate Systems' [`nix-installer`](https://github.com/DeterminateSystems/nix-installer#usage).\n\nOnce you have Nix installed, you can run:\n\n- `nix develop` to enter a shell with pinned versions of the Rust toolchain, Node.js, and Yarn.\n- `nix build` to compile a release version of the `weather-server` binary\n- `nix build \".#container\"` to build an OCI image which runs `weather-server` (this is what [gets pushed to Fly.io](https://github.com/davidcornu/clear-skies/blob/8fe4c129fe693596b54ab67270a97b1d9ca14587/.github/workflows/deploy.yml#L18-L23))\n\n### Static Assets\n\nThe HTML, JS, and CSS files in the `weather-server/src/static` directory are bundled into the `weather-sever` binary using [`rust-embed`](https://lib.rs/crates/rust-embed). In debug builds these are served from the filesystem so you don't need to rebuild the binary every time you change them.\n\nBoth `assets/try.js` and `assets/try.css` are build artifacts, which are committed as-is to avoid needing to run a JS build step. If you need to make changes, `cd frontend` and then run `yarn install` and `yarn build`.\n\n## Repository Structure\n\n- `weather-dev` is a binary package that contains subcommands that are useful for development, notably to pull down every feed Environment Canada provides and to generate `weather-lib/src/locations/data.rs`.\n- `weather-lib` is a library package that contains all the necessary logic to turn Environment Canada feeds into a machine-readable format.\n- `weather-sync` is a library package that provides a cacheing HTTP client for Environment Canada feeds\n- `weather-server` is a binary package for the [Dropshot](https://lib.rs/crates/dropshot)-powered API server which runs on [clear-skies.ca](https://clear-skies.ca).\n- `frontend` contains the [Svelte](https://svelte.dev/) components that power the demo on the home page.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidcornu%2Fclear-skies","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidcornu%2Fclear-skies","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidcornu%2Fclear-skies/lists"}