{"id":22434625,"url":"https://github.com/tochy97/weather","last_synced_at":"2026-02-08T15:02:03.542Z","repository":{"id":264462689,"uuid":"893432719","full_name":"tochy97/weather","owner":"tochy97","description":"A react component utilizing open-meteo. It also includes a function for retrieving open-meteo data restructured to be more user friendly.","archived":false,"fork":false,"pushed_at":"2025-01-11T11:16:35.000Z","size":1766,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-22T21:55:20.803Z","etag":null,"topics":["node","open-meteo","reactjs","typescript","webpack"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tochy97.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-11-24T12:44:16.000Z","updated_at":"2025-01-11T11:16:39.000Z","dependencies_parsed_at":"2025-01-10T11:35:11.597Z","dependency_job_id":null,"html_url":"https://github.com/tochy97/weather","commit_stats":null,"previous_names":["tochy97/weather"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tochy97/weather","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tochy97%2Fweather","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tochy97%2Fweather/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tochy97%2Fweather/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tochy97%2Fweather/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tochy97","download_url":"https://codeload.github.com/tochy97/weather/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tochy97%2Fweather/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29234154,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T14:18:14.570Z","status":"ssl_error","status_checked_at":"2026-02-08T14:18:14.071Z","response_time":57,"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":["node","open-meteo","reactjs","typescript","webpack"],"created_at":"2024-12-05T23:09:43.622Z","updated_at":"2026-02-08T15:02:03.509Z","avatar_url":"https://github.com/tochy97.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Weather\nA react component utilizing open-meteo. It also includes a function for retrieving open-meteo data restructured to be more user friendly.\n## Installation\n```bash\nnpm install @egeonu/weather\n```\n## Usage\n### getWeatherOpenMeteo\n```javascript\nimport React from 'react'\nimport ReactDOM from 'react-dom/client';\nimport { getWeatherOpenMeteo } from '@egeonu/weather';\n  // Accepts url\n  let url = (latitude: number, longitude: number) =\u003e \"https://api.open-meteo.com/v1/forecast?latitude=\" + latitude + \"\u0026longitude=\" + longitude + \"\u0026hourly=temperature_2m,relative_humidity_2m,precipitation_probability,weather_code,wind_speed_10m,wind_direction_10m\";\n\n  const weather = await getWeatherOpenMeteo(url(32.679420,-97.028336),'f');\n  console.log(weather);\n```\n#### Expected output\n[Example Output](weather-array.json)\nThis example shows how we budle all the data by date and hours. The object type for each forcast is defined to be `any` since it accepts a url and parameters can change.\n### ReactWeather\n```javascript\nimport React from 'react'\nimport ReactDOM from 'react-dom/client';\nimport ReactWeather from '@egeonu/weather';\n\nconst root = ReactDOM.createRoot(\n  document.getElementById('root') as HTMLElement\n);\n\nroot.Weather(\n    \u003cReactWeather longitude={-97.028336} latitude={32.679420} temperature_unit='f' wind_speed_unit='mph'/\u003e\n);\n```\n#### Example Output\n![alt text](./example.png \"Example\")\n## Contributing\nPull requests are welcome. For major changes, please open an issue first\nto discuss what you would like to change.\nPlease make sure to update tests as appropriate.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftochy97%2Fweather","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftochy97%2Fweather","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftochy97%2Fweather/lists"}