Reading rain data from https://www.drops.live
This adapter reads the rain data in an interval of 5 minutes from the website. There is a chart datapoint, which can directly be used by the BarChart widget from the Material Designs widgets.
The 5 minutes and 1h data is stored in different states.
GPS position is not longer available on the drops.live website.
You know need a city code of your location or city. To get this code, just enter your city name (or use your location) at https://www.drops.live .
You will find your city code in the URL:
In this example you will find 6573 for Berlin.
- (inbux) store weather text in labeltext state
breaking changes in drops.live homepage (2024-02-05)
- (inbux) parsing of drops.live homepage updated
- (inbux) GPS position is not longer supported on the website, added city code in configuration
- (inbux) removed temperture because this data is not longer available
- (inbux) updated readme
- (inbux) updated dependencies
- (inbux) changed URL from drops.live to www.drops.live (thanks to Marc-Berg)
- (inbux) small changes because of axios update
- (inbux) changed units to mm/h
- (inbux) added actualRain
- (inbux) reading system language for weekdays localization
- (inbux) changed rainStartsAt to timestamp
- (inbux) changed most log messages to debug to keep log cleaner
- (inbux) updated README.md
- (inbux) added use of system configuration for gps coordinates
- (inbux) axios timeout increased
- (inbux) changed some logs from error to warn
- (inbux) added some more error handling and log messages
- (inbux) fixed problem with city containing umlauts
- (inbux)
- (inbux)
- (inbux) initial release
MIT License
Copyright (c) 2024 inbux inbux.development@gmail.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.