{"id":31808010,"url":"https://github.com/kbrose/yahara-info","last_synced_at":"2025-10-11T04:39:45.419Z","repository":{"id":74404992,"uuid":"152832278","full_name":"kbrose/yahara-info","owner":"kbrose","description":"Identifying when Madison-area lakes are too high, in real time. The USGS data source broke, and this site no longer exists.","archived":false,"fork":false,"pushed_at":"2023-08-11T04:49:58.000Z","size":10796,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-02T01:48:44.532Z","etag":null,"topics":["data","environmental","flooding","lake","python","water","weather"],"latest_commit_sha":null,"homepage":"","language":"Python","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/kbrose.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}},"created_at":"2018-10-13T03:43:23.000Z","updated_at":"2023-08-11T04:47:15.000Z","dependencies_parsed_at":"2023-09-24T12:10:41.504Z","dependency_job_id":null,"html_url":"https://github.com/kbrose/yahara-info","commit_stats":{"total_commits":153,"total_committers":1,"mean_commits":153.0,"dds":0.0,"last_synced_commit":"b0715cbc83091653ae6c1db13fb79d8ff5e3ca1c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kbrose/yahara-info","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kbrose%2Fyahara-info","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kbrose%2Fyahara-info/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kbrose%2Fyahara-info/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kbrose%2Fyahara-info/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kbrose","download_url":"https://codeload.github.com/kbrose/yahara-info/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kbrose%2Fyahara-info/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006244,"owners_count":26084061,"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-10-11T02:00:06.511Z","response_time":55,"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":["data","environmental","flooding","lake","python","water","weather"],"created_at":"2025-10-11T04:39:33.273Z","updated_at":"2025-10-11T04:39:45.410Z","avatar_url":"https://github.com/kbrose.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](/static/website-image.png)\n\n**The code here no longer runs, and the website has been shutdown. This repository will be left up for historical purposes.**\n\n# Lake levels from the Yahara Watershed\n\nMadison Wisconsin and the surrounding Dane County saw near record level rainfalls in late August. Widespread flooding caused over two hundred million dollars in damage ([Associated Press](https://apnews.com/15a2ca91bcb94840bceb192365cf01a1)).\n\nIn the months leading up to the flood, the lakes surrounding Madison were higher than the maximum level set by the Wisconsin Department of Natural Resources in 1979.\n\nHow often has that been true? Are the lakes currently above that maximum level? Why were they kept so high? All of these questions and more we hope to address.\n\n## Environment setup\n\nInstall [postgresql](https://www.postgresql.org/download/).\n\nMake sure you have an environment variable named `USER` with your username as its value. On UNIX variants this likely already exists\n\nCreate a new user with your username who has permissions to create a database, e.g. with `sudo -u postgres createuser -s $USER`.\n\nIt is recommended to set up some sort of virtual environment. After that, install the requirements with\n\n```bash\npip install -r requirements.txt\n```\n\n## Code\n\nThe code is in `madison_lake_levels`, and requires python \u003e= 3.6. You can run tests with `python -m pytest` run from the top level of this project.\n\n## Running locally\n\nRun with\n\n```bash\n# Get env set up\nexport FLASK_APP=app.py\nexport DATABASE_URL=postgres://$USER:@:/madisonlakes # heroku's env var format\ncreatedb madisonlakes -U $USER\n# Run the app\nflask run\n# To run in debug mode (don't do in prod!):\nexport FLASK_ENV=development\nflask run\n```\n\n![](https://travis-ci.com/kbrose/yahara-info.svg?branch=master)\n\n## Deploy\n\nThe webapp used to be deployed to Heroku, but the USGS data source broke and Heroku got rid of their tier. The heroku-format `Procfile` and `runtime.txt` are used to control deployment.\n\nA free-tier of a database on Heroku was used to persist the data.\n\nA cron job runs every 30 minutes that updates the database. The job is created using [Heroku Scheduler](https://devcenter.heroku.com/articles/scheduler), and hits a simple API route on the web-app that causes an update. Running the job every 30 minutes has a nice side effect of preventing the website from going into hibernation mode (which Heroku does on the free tier).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkbrose%2Fyahara-info","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkbrose%2Fyahara-info","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkbrose%2Fyahara-info/lists"}