{"id":28965867,"url":"https://github.com/cheeaun/checkweather-sg-api","last_synced_at":"2025-06-24T07:10:21.069Z","repository":{"id":299113026,"uuid":"1000824008","full_name":"cheeaun/checkweather-sg-api","owner":"cheeaun","description":"Singapore weather API providing real-time observations and radar rain data from government sources.","archived":false,"fork":false,"pushed_at":"2025-06-14T18:44:10.000Z","size":46,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-14T19:26:52.917Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://checkweather-sg-api.vercel.app","language":"JavaScript","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/cheeaun.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,"zenodo":null},"funding":{"github":"cheeaun","buy_me_a_coffee":"cheeaun","patreon":"cheeaun","custom":["https://revolut.me/cheeaun","https://donate.stripe.com/9AQeVfbr40ZB9nGaEF","https://paypal.me/cheeaun"]}},"created_at":"2025-06-12T11:29:33.000Z","updated_at":"2025-06-14T18:44:13.000Z","dependencies_parsed_at":"2025-06-14T19:26:57.655Z","dependency_job_id":"b1f49e2a-29d0-44d6-a6e5-17fd9d226a99","html_url":"https://github.com/cheeaun/checkweather-sg-api","commit_stats":null,"previous_names":["cheeaun/checkweather-sg-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cheeaun/checkweather-sg-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheeaun%2Fcheckweather-sg-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheeaun%2Fcheckweather-sg-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheeaun%2Fcheckweather-sg-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheeaun%2Fcheckweather-sg-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cheeaun","download_url":"https://codeload.github.com/cheeaun/checkweather-sg-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheeaun%2Fcheckweather-sg-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261624969,"owners_count":23186121,"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-06-24T07:10:18.683Z","updated_at":"2025-06-24T07:10:21.058Z","avatar_url":"https://github.com/cheeaun.png","language":"JavaScript","funding_links":["https://github.com/sponsors/cheeaun","https://buymeacoffee.com/cheeaun","https://patreon.com/cheeaun","https://revolut.me/cheeaun","https://donate.stripe.com/9AQeVfbr40ZB9nGaEF","https://paypal.me/cheeaun"],"categories":[],"sub_categories":[],"readme":"# CheckWeather SG API\n\nSingapore weather API providing real-time observations and radar rain data from government sources.\n\nThis is a rewrite of [rain-geojson-sg](https://github.com/cheeaun/rain-geojson-sg).\n\n## API Endpoints\n\n### `GET /v1/observations`\nReturns real-time weather data from stations across Singapore.\n\n**Response:**\n```json\n[\n  {\n    \"id\": \"S109\",\n    \"name\": \"Ang Mo Kio Avenue 5\",\n    \"lng\": 103.8492,\n    \"lat\": 1.3764,\n    \"temp_celcius\": 31.2,\n    \"relative_humidity\": 70.3,\n    \"rain_mm\": 0.0,\n    \"wind_direction\": 97,\n    \"wind_speed\": 7.3\n  },\n  {\n    \"id\": \"S124\",\n    \"name\": \"Upper Changi Road North\",\n    \"lng\": 103.9823,\n    \"lat\": 1.3678,\n    \"wbgt\": 28.6,\n    \"heat_stress\": \"low\"\n  }\n]\n```\n\n### `GET /v1/rainarea`\nReturns processed radar images with rain coverage data and ASCII visualization.\n\n**Query Parameters:**\n- `dt` (optional) - Datetime in `YYYYMMDDHHMM` format (Singapore timezone), e.g. `202412151430` for Dec 15, 2024 at 2:30 PM SGT\n\n**Response:**\n```json\n{\n  \"id\": \"202412151200\",\n  \"dt\": 202412151200,\n  \"coverage_percentage\": {\n    \"all\": 15.25,\n    \"sg\": 12.80\n  },\n  \"width\": 480,\n  \"height\": 480,\n  \"radar\": \"ASCII representation...\"\n}\n```\n\n## Development\n\n```bash\nnpm install\nnpm start    # Vercel dev server at localhost:3000\nnpm test     # Run test suite\n```\n\n## Copyright/License\n\n- Rain area radar images © [Meteorological Service Singapore](http://www.weather.gov.sg/) © [National Environment Agency](http://www.nea.gov.sg/)\n- [Singapore region boundary](https://data.gov.sg/dataset/master-plan-2014-region-boundary-web), under [Singapore Open Data License](https://data.gov.sg/open-data-licence)\n- Code under [MIT](https://cheeaun.mit-license.org/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheeaun%2Fcheckweather-sg-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcheeaun%2Fcheckweather-sg-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheeaun%2Fcheckweather-sg-api/lists"}