{"id":15617139,"url":"https://github.com/titaniumbones/gauge-parsers","last_synced_at":"2025-08-15T15:19:08.029Z","repository":{"id":141872316,"uuid":"225973389","full_name":"titaniumbones/gauge-parsers","owner":"titaniumbones","description":"Small js library for parsing river gauges in Ontario","archived":false,"fork":false,"pushed_at":"2019-12-17T17:25:53.000Z","size":8,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-04T08:56:34.716Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/titaniumbones.png","metadata":{"files":{"readme":"README.org","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":"2019-12-04T23:07:18.000Z","updated_at":"2019-12-17T17:25:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"95bb7901-1f15-42b3-bbc0-5e86f3566b91","html_url":"https://github.com/titaniumbones/gauge-parsers","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/titaniumbones/gauge-parsers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/titaniumbones%2Fgauge-parsers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/titaniumbones%2Fgauge-parsers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/titaniumbones%2Fgauge-parsers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/titaniumbones%2Fgauge-parsers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/titaniumbones","download_url":"https://codeload.github.com/titaniumbones/gauge-parsers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/titaniumbones%2Fgauge-parsers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270586484,"owners_count":24611317,"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","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-03T07:41:38.325Z","updated_at":"2025-08-15T15:19:08.007Z","avatar_url":"https://github.com/titaniumbones.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"* River Gauge Client\n\nThis is a small library to fetch and parse API responses from river gauges in Ontario. The library provides the following:\n\n- a *dictionary* that matches river gauge types to parsing functions. So far the only ones I know about are [[https://wateroffice.ec.gc.ca/report/real_time_e.html?stn=02HB029\u0026mode=Graph][Ontario Water Offic Gauges]], [[https://apps.grandriver.ca/waterdata/kiwischarts/rf_uppergrand.aspx][Grand River conservation Area Gauges]], and [[https://cvc.ca/watershed-science/watershed-monitoring/real-time-monitoring/west-credit-river-belfountain-conservation-area/][Credit Valley conservation Cauges]]. GRCA and CVC gauges both use the WISKI/KIWIS/KISTER water gauge data management platform, so their data sources are providedi  ithe same format. Wateroffice has a very similar but nonidentical format. CVC and GRCA unfortunately use distinct URL construction patterns.\n- *get* and *parse* functions that *retrieve* and *process* API responses form the various endpoints and prepare them to be fed to a [[https://chartist-js.org][Chartist chart]].  These should take \n\nThis should be as self-contained as possible, and each parser function should be a stable interface that provides datain a predictable format that chartist can use; should also be possible to meet the needs of other chart construction libraries, e.g. D3\n\nLots of TODOs here: \n- [ ] find more online gauges! I only have a small percentage of runnable rivers here. Check Boatwerks, and also these suggestions:\n  - [ ] Cataract section of credit river\n  - [ ] Humber River (find the gauge)\n  - [ ] Moira\n  - [ ] Claireville (??)\n  - [ ] Hockley Valley (?)\n  - [ ] Upper Black (??)\n  - [ ] Skootamatta\n  - [ ] Beaver\n  - [ ] Ottawa River\n- [ ] determine which of these gauges provide historical data in a different format from the real-time data, and figure out how to manage it.  e.g., wateroffice appears to store ~2 years of data in the json endpoint, after which it is available only in CSV format from a separate endpoint\n- [ ] Figure out how to display auxiliary data simultaneously -- e.g., mean/median data from water office, rainfall data from CVC.\n- [ ] Similarly: is there a way to capture rainfall info using other data sources, and add that in somehow? That last is a big ask.  But it should be possible to either link to windy for forecasts or to another service for historical data.  e.g., raw data for Ontario is [[https://climate.weather.gc.ca/historical_data/search_historic_data_stations_e.html?searchType=stnProv\u0026timeframe=1\u0026lstProvince=ON\u0026optLimit=yearRange\u0026StartYear=2016\u0026EndYear=2019\u0026Year=2019\u0026Month=12\u0026Day=3\u0026selRowPerPage=100][available at this endpoint]], while [[https://climate.weather.gc.ca/radar/index_e.html?site=CASKR\u0026year=2019\u0026month=12\u0026day=1\u0026hour=00\u0026minute=10\u0026duration=2\u0026image_type=PRECIPET_SNOW_WEATHEROFFICE][RADAR images can be picked up here]].  Links should be easy, I think. The images themselves are available at URLs like https://climate.weather.gc.ca/radar/image_e.html?time=201612011840\u0026site=CASKR\u0026image_type=PRECIPET_SNOW_WEATHEROFFICE, where the time value is ~YYYYMMDDHHmm~ in *UTC*\n- [ ] correcting for time zone also important. I haven't inspected the data yet to be sure it's corrected for time zone.\n\n* Code\nI've moved the code out of this README into a standalone js file -- too much hassle w/ lsp etc to stick with the literate programming mode.  \n#+NAME: gaugeparser\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftitaniumbones%2Fgauge-parsers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftitaniumbones%2Fgauge-parsers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftitaniumbones%2Fgauge-parsers/lists"}