{"id":25194200,"url":"https://github.com/tris/weatherflow","last_synced_at":"2025-04-04T14:22:47.369Z","repository":{"id":153532948,"uuid":"629261758","full_name":"tris/weatherflow","owner":"tris","description":"Go module for streaming observations from the WeatherFlow Tempest API","archived":false,"fork":false,"pushed_at":"2025-02-21T01:05:22.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T14:25:26.903Z","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/tris.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}},"created_at":"2023-04-18T00:52:56.000Z","updated_at":"2025-02-21T01:04:37.000Z","dependencies_parsed_at":"2023-09-27T11:11:00.730Z","dependency_job_id":null,"html_url":"https://github.com/tris/weatherflow","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tris%2Fweatherflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tris%2Fweatherflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tris%2Fweatherflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tris%2Fweatherflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tris","download_url":"https://codeload.github.com/tris/weatherflow/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247190786,"owners_count":20898821,"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-02-09T23:52:58.427Z","updated_at":"2025-04-04T14:22:47.336Z","avatar_url":"https://github.com/tris.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# weatherflow\n\nweatherflow is a Go module for streaming rapid observations from the\n[WeatherFlow Tempest API](https://weatherflow.github.io/Tempest/).\n\n## Installation\n\n```\ngo get -u github.com/tris/weatherflow\n```\n\n## Example\n\n```go\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"github.com/tris/weatherflow\"\n)\n\nfunc main() {\n\tclient := weatherflow.NewClient(\"your-token-here\", nil, log.Printf)\n\n\tclient.AddDevice(12345)\n\n\tclient.Start(func(msg weatherflow.Message) {\n\t\tswitch m := msg.(type) {\n\t\tcase *weatherflow.MessageObsSt:\n\t\t\tfmt.Printf(\"Observation: %+v\\n\", m)\n\t\tcase *weatherflow.MessageRapidWind:\n\t\t\tfmt.Printf(\"Rapid wind: %+v\\n\", m)\n\t\t}\n\t})\n\n\ttime.Sleep(30 * time.Second)\n\n\tclient.Stop()\n}\n```\n\n## Limitations\n\n- Only Tempest and Rapid Wind observations are passed:\n    - [ ] Acknowledgement (ack)\n    - [ ] Rain Start Event (evt_precip)\n    - [ ] Lightning Strike Event (evt_strike)\n    - [ ] Device Online Event (evt_device_online)\n    - [ ] Device Offline Event (evt_device_offline)\n    - [ ] Station Online Event (evt_station_online)\n    - [ ] Station Offline Event (evt_station_online)\n    - [x] Rapid Wind (3 sec) (rapid_wind)\n    - [ ] Observation (Air) (obs_air)\n    - [ ] Observation (Sky) (obs_sky)\n    - [x] Observation (Tempest) (obs_st)\n\n## TODO\n\n- Track delayed observations (occasionally the API will emit several `obs_st` in a batch which are up to 10 minutes old)\n- Track missing observations\n- Track duplicate observations (occasionally the API will emit up to four rapid observations for the same timestamp)\n\n## Credit\n\nI took a bit of inspiration from the excellent\n[goweatherflow](https://github.com/gregorosaurus/goweatherflow) module, which\nyou should use instead if your Tempest is on the same LAN.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftris%2Fweatherflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftris%2Fweatherflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftris%2Fweatherflow/lists"}