{"id":26222165,"url":"https://github.com/walles/weatherclock","last_synced_at":"2025-04-18T21:54:59.103Z","repository":{"id":36346252,"uuid":"40650992","full_name":"walles/weatherclock","owner":"walles","description":"Display today's weather forecast on a clock face","archived":false,"fork":false,"pushed_at":"2025-02-26T06:52:28.000Z","size":12025,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-26T07:33:12.830Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/walles.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}},"created_at":"2015-08-13T09:40:23.000Z","updated_at":"2025-01-29T18:16:49.000Z","dependencies_parsed_at":"2024-10-27T20:14:11.270Z","dependency_job_id":"519ddce7-6017-4cf9-875f-e295e763a488","html_url":"https://github.com/walles/weatherclock","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walles%2Fweatherclock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walles%2Fweatherclock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walles%2Fweatherclock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walles%2Fweatherclock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/walles","download_url":"https://codeload.github.com/walles/weatherclock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243258493,"owners_count":20262297,"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-03-12T16:51:25.653Z","updated_at":"2025-04-18T21:54:59.079Z","avatar_url":"https://github.com/walles.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Weather Clock\n\nTry it here: \u003chttps://walles.github.io/weatherclock/\u003e\n\n[![Screenshot](weatherclock-screenshot.webp)](https://walles.github.io/weatherclock/)\n\nDisplays the weather forecast for the upcoming 11 hours for the current location\non a clock face. On clear nights it shows northern ligths forecasts.\n\nIt shows temperature where ordinary clocks show hour numbers, and weather\nsymbols for each hour.\n\nYou can force a position using query parameters `?latitude=...\u0026longitude=...`.\n\n## Clock Face Graphics\n\nTo update the clock face graphics:\n\n- Edit `src/images/clock-frame.blend` using [Blender](https://blender.org)\n- Render and save as `public/clock-frame.png`\n\n## Favicon\n\nTo update the favicon:\n\n- Edit `src/images/weatherclock.xcf` using [GIMP](https://gimp.org/)\n- Overwrite the following files with your changes:\n  - `public/favicon.ico`\n  - `public/logo192.png`\n  - `public/logo512.png`\n- Commit changes to `src/weatherclock.xcf` and the icons in `public/`\n\n## Northern Lights Icons\n\nTo update the northern lights icons:\n\n- Edit `src/images/aurora-icon.blend` using [Blender](https://blender.org)\n- Enable Aurora Borealis II and render into `public/aurora-high.png`\n- Disable Aurora Borealis II and render into `public/aurora-low.png`\n\n## Deploy\n\nTo deploy updates:\n\n```bash\nnpm run deploy\n```\n\n## Proxy\n\nSince \u003cyr.no\u003e's REST API doesn't (or didn't) support being run from browsers,\nthere's a Google Cloud Function proxying the requests. Source code lives in\nthe [proxy](proxy) directory.\n\n## TODO\n\n- Tick the hands automatically\n- Consider now-vs-tomorrow dropdown placement on both narrow and tall screen\n  layouts.\n- Make the now-vs-tomorrow dropdown more visible?\n- Report a page view each time the page becomes visible. Do we get an initial\n  visibility event on page load?\n- Report geolocation and weather download timings to Google Analytics\n- Remove the Update button since updates should now be automatic\n\n### DONE\n\n- Test the geolocation-failed dialog, including its Retry button until it works\n  to my satisfaction. To improve it somebody needs to explain to me how.\n- Don't advertise we're downloading new forecasts if we already have them\n- Keep the existing forecast if:\n  - It is recent enough\n  - We haven't moved too far\n- If the user hides and re-shows the web page, update it\n- Re-add Google Analytics\n- Add a \"Now\" vs \"Tomorrow\" dropdown in the top right corner.\n\n### NOT DOING\n\n- Consider moving some logic from `componentDidMount()` and `componentDidUpdate()`\n  into `render()`. Won't work; `render()` is not allowed to touch `state` or `props`.\n- Re-add Facebook Share Button.\n\n---\n\nThis project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).\n\n## Available Scripts\n\nIn the project directory, you can run:\n\n### `npm start`\n\nRuns the app in the development mode.\u003cbr\u003e\nOpen [http://localhost:3000](http://localhost:3000) to view it in the browser.\n\nThe page will reload if you make edits.\u003cbr\u003e\nYou will also see any lint errors in the console.\n\n### `npm test`\n\nLaunches the test runner in the interactive watch mode.\u003cbr\u003e\nSee the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.\n\n### `npm run build`\n\nBuilds the app for production to the `build` folder.\u003cbr\u003e\nIt correctly bundles React in production mode and optimizes the build for the best performance.\n\nThe build is minified and the filenames include the hashes.\u003cbr\u003e\nYour app is ready to be deployed!\n\nSee the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.\n\n### `npm run eject`\n\n**Note: this is a one-way operation. Once you `eject`, you can’t go back!**\n\nIf you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.\n\nInstead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.\n\nYou don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.\n\n## Learn More\n\nYou can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).\n\nTo learn React, check out the [React documentation](https://reactjs.org/).\n\n### Code Splitting\n\nThis section has moved here: \u003chttps://facebook.github.io/create-react-app/docs/code-splitting\u003e\n\n### Analyzing the Bundle Size\n\nThis section has moved here: \u003chttps://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size\u003e\n\n### Making a Progressive Web App\n\nThis section has moved here: \u003chttps://facebook.github.io/create-react-app/docs/making-a-progressive-web-app\u003e\n\n### Advanced Configuration\n\nThis section has moved here: \u003chttps://facebook.github.io/create-react-app/docs/advanced-configuration\u003e\n\n### Deployment\n\nThis section has moved here: \u003chttps://facebook.github.io/create-react-app/docs/deployment\u003e\n\n### `npm run build` fails to minify\n\nThis section has moved here: \u003chttps://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwalles%2Fweatherclock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwalles%2Fweatherclock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwalles%2Fweatherclock/lists"}