{"id":20563376,"url":"https://github.com/pilotak/weathermeters","last_synced_at":"2025-09-13T12:09:54.278Z","repository":{"id":91903496,"uuid":"134095205","full_name":"pilotak/WeatherMeters","owner":"pilotak","description":"Arduino library for processing wind speed, wind wane and rain gauge sensors (WH 1080, Sparkfun)","archived":false,"fork":false,"pushed_at":"2023-05-13T20:00:52.000Z","size":37,"stargazers_count":16,"open_issues_count":2,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T03:41:20.876Z","etag":null,"topics":["arduino","arduino-library","esp32","esp8266","meteo","rain-gauge","rainmeter","weather","wh1080","winddirection","windspeed"],"latest_commit_sha":null,"homepage":"","language":"C++","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/pilotak.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":"2018-05-19T20:18:06.000Z","updated_at":"2025-03-15T07:53:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"0ce29616-f76b-40aa-a06c-e24b3d6929a9","html_url":"https://github.com/pilotak/WeatherMeters","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/pilotak%2FWeatherMeters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2FWeatherMeters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2FWeatherMeters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2FWeatherMeters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pilotak","download_url":"https://codeload.github.com/pilotak/WeatherMeters/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248898641,"owners_count":21179809,"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":["arduino","arduino-library","esp32","esp8266","meteo","rain-gauge","rainmeter","weather","wh1080","winddirection","windspeed"],"created_at":"2024-11-16T04:17:58.208Z","updated_at":"2025-04-14T14:42:46.721Z","avatar_url":"https://github.com/pilotak.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Weather Meters\n[![build](https://github.com/pilotak/WeatherMeters/workflows/build/badge.svg)](https://github.com/pilotak/WeatherMeters/actions) \n[![Framework Badge Arduino](https://img.shields.io/badge/framework-arduino-00979C.svg)](https://arduino.cc)\n\nArduino library for processing wind speed, wind wane and rain gauge sensors (WH1080, WH1090, Sparkfun)\n\nIt's interupt based library with callbacks and ready to use on any board. The only difference accros boards would be in initializing 1 second timer, ie. on STM32 you could use RTC timer, ESP32 has its own timer object, Timer1 could be used Arduino Uno (ATmega328P) etc please see `examples/timers`\n\n# Example\n\n```cpp\n#include \"WeatherMeters.h\"\n\nconst int windvane_pin = A0;\nconst int anemometer_pin = 2;\nconst int raingauge_pin = 3;\n\n// filter array = \"binary\" length only: 2, 4, 8, 16, 32, 64, 128, etc.\nWeatherMeters \u003c4\u003e meters(windvane_pin);  // filter last 4 directions\n\nvoid intAnemometer() {\n    meters.intAnemometer();\n}\n\nvoid intRaingauge() {\n    meters.intRaingauge();\n}\n\nvoid setup() {\n    Serial.begin(115200);\n\n    attachInterrupt(digitalPinToInterrupt(anemometer_pin), intAnemometer, FALLING);\n    attachInterrupt(digitalPinToInterrupt(raingauge_pin), intRaingauge, FALLING);\n}\n\nvoid loop() {\n    Serial.print(F(\"Wind degrees: \"));\n    Serial.print(meters.getDir(), 1);\n    Serial.print(F(\" Wind speed: \"));\n    Serial.print(meters.getSpeed(), 1);\n    Serial.print(F(\"km/h, Rain: \"));\n    Serial.print(meters.getRain(), 4);\n    Serial.println(F(\"mm\"));\n\n    delay(8000);\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpilotak%2Fweathermeters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpilotak%2Fweathermeters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpilotak%2Fweathermeters/lists"}