{"id":16684747,"url":"https://github.com/vincentneo/sgtidetimings","last_synced_at":"2026-04-10T02:04:08.323Z","repository":{"id":113893150,"uuid":"535276882","full_name":"vincentneo/SGTideTimings","owner":"vincentneo","description":"Scraped SG NEA tide timings table into machine-readable JSON files!","archived":false,"fork":false,"pushed_at":"2025-03-01T08:34:44.000Z","size":76,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-01T09:25:19.189Z","etag":null,"topics":["data","github-actions","github-pages","gov","html-tables-to-json","javascript","json","nodejs","sg","singapore","singapore-data-analysis","tide","webscraping"],"latest_commit_sha":null,"homepage":"","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/vincentneo.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":"2022-09-11T11:28:56.000Z","updated_at":"2023-06-02T16:12:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"1bb80a5f-d021-44f6-b737-40c6182d6fba","html_url":"https://github.com/vincentneo/SGTideTimings","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/vincentneo%2FSGTideTimings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincentneo%2FSGTideTimings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincentneo%2FSGTideTimings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincentneo%2FSGTideTimings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vincentneo","download_url":"https://codeload.github.com/vincentneo/SGTideTimings/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243413123,"owners_count":20286876,"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":["data","github-actions","github-pages","gov","html-tables-to-json","javascript","json","nodejs","sg","singapore","singapore-data-analysis","tide","webscraping"],"created_at":"2024-10-12T14:44:57.115Z","updated_at":"2025-12-29T02:55:24.240Z","avatar_url":"https://github.com/vincentneo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SGTideTimings\nThis project generates tide timings JSONs by web scraping from https://www.nea.gov.sg/weather/tide-timings tables.\n\n\n## Usage of codes\n\nCodes are tested on Node.js v16 only, as of point of writing. Other versions, use at own risk!\n- Run `npm run start` to generate current and next month's JSONs on your own machine. \n- Run `npm run actions` to generate with an extra `latest.json` to reflect current month tide timings, and save all months at `archives/` directory. Designed for current GitHub Actions script use.\n\nAlways remember to install the dependencies! 🙂\n\n## Usage of APIs\nCurrent month's tide timings can be accessed by:\n```\nhttps://vincentneo.github.io/SGTideTimings/latest.json\n```\nPrevious/Future month's tide timings, by month and year, can be accessed by:\n```\nhttps://vincentneo.github.io/SGTideTimings/archives/2022-09.json\nhttps://vincentneo.github.io/SGTideTimings/archives/{yyyy}-{MM}.json\n```\nYou must adhere to the terms of the [Singapore Open Data Licence version 1.0](https://www.nea.gov.sg/open-data-licence) when using the tide timings data.\n\n## Format\nJSONs are formatted as array with objects of such format:\n```JSON\n{\n  \"date\": \"2022-09-01T01:39:00.000+08:00\",\n  \"height\": 2.8,\n  \"classification\": \"H\"\n}\n```\n#### date\nFormatted according to ISO 8601 standard, with Singapore's timezone offset, as it represents local time in Singapore. \n\nSeconds and milliseconds can be disregarded.\n\n#### height\nIn metres, and according to [NEA](https://www.nea.gov.sg/weather/tide-timings):\n\n\u003e Tidal height is in metres above the ‘Chart Datum’, which is the lowest water level recorded over a fixed period (usually 18 years) at a particular point.\n\n#### classification\nWhether if tide is classified as high (H) or low (L). \n\n## How it works\n\nThis uses GitHub Actions to automatically scrape, generate usable JSON files and deploy to the `gh-pages` branch of this repo, automatically.\n\n## Why make this?\nNEA / data.gov.sg currently does not have an API for tide timings prediction, unlike many other data provided on the NEA website.\n\n## License\n\n### Regarding code\nCodes in the `main` branch of the repository, which contains code that does the web scraping, etc, is licensed under MIT License.\n\n### Regarding generated contents\nGenerated contents (including `gh-pages` branch contents) contains information from Tide Timings table, and will be accessed every 1st and 2nd day of each month from [National Environment Agency (NEA) / Maritime and Port Authority of Singapore (MPA)](https://www.nea.gov.sg/weather/tide-timings) which is made available under the terms of the [Singapore Open Data Licence version 1.0](https://www.nea.gov.sg/open-data-licence).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvincentneo%2Fsgtidetimings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvincentneo%2Fsgtidetimings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvincentneo%2Fsgtidetimings/lists"}