{"id":20961369,"url":"https://github.com/perbu/yrpoller","last_synced_at":"2025-03-13T06:44:16.762Z","repository":{"id":143067750,"uuid":"329846639","full_name":"perbu/yrpoller","owner":"perbu","description":"Deamon that polls yr.no for data and emits in on 10min basis. Virtual thermometer.","archived":false,"fork":false,"pushed_at":"2021-01-28T12:00:20.000Z","size":3741,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-20T00:46:38.683Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/perbu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-01-15T08:01:14.000Z","updated_at":"2021-01-28T12:00:23.000Z","dependencies_parsed_at":"2023-03-25T15:02:44.262Z","dependency_job_id":null,"html_url":"https://github.com/perbu/yrpoller","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/perbu%2Fyrpoller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Fyrpoller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Fyrpoller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Fyrpoller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perbu","download_url":"https://codeload.github.com/perbu/yrpoller/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243358212,"owners_count":20277991,"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":"2024-11-19T02:03:41.095Z","updated_at":"2025-03-13T06:44:16.744Z","avatar_url":"https://github.com/perbu.png","language":"Go","readme":"# yr-poller\nDeamon that polls yr.no for data and emits in on 10min basis. Virtual thermometer.\n\n\n\n## Usage\n\nCreate a locations.json file, something like this:\n```\n[\n  {\n    \"id\": \"tryvannstua\",\n    \"lat\": 59.9981362,\n    \"long\": 10.6660856\n  },\n  {\n    \"id\": \"skrindo\",\n    \"lat\": 60.6605926,\n    \"long\": 8.5740604\n  }\n]\n```\n\nCompile the project:\n\n```\ngo build -o poller cmd/main.go\n```\n\nRun it\n```\n./poller\n```\n\n\nIt even has some built in help\n```\nUsage of ./poller:\n  -api-url string\n    \tBaseurl for Yr API (default \"https://api.met.no/weatherapi\")\n  -api-version string\n    \tAPI version to use. Appended to URL (default \"2.0\")\n  -interval duration\n    \tHow often to emit data (default 10m0s)\n  -locationsfile string\n    \tJSON file containing locations (default \"locations.json\")\n  -user-agent string\n    \tUser-agent to use (default \"yr-poller\")\n```\n\n\n## Todo\n * Remove the mutex stuff and use channels. Initially I wrote this not unlike a Java program with a shared data structure\n   where I lock/unlock. I've removed most of the access to shared data but the observation cache remains shared.\n * Expand of the sensors supported.\n * Add tests to the timestream code - possibly painful to mock\n * timestream lacks testing\n * statushttp lacks testing\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperbu%2Fyrpoller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperbu%2Fyrpoller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperbu%2Fyrpoller/lists"}