Giter Site home page Giter Site logo

github4eddy / buienradar_rain Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.66 MB

This QuickApp predicts the rain in Europe with data from the Buienradar, two hours in advance

License: GNU General Public License v3.0

Lua 100.00%
fibaro buienradar lua buienradar-updates rain-intensity fibaro-hc3 fibaro-home-center rain rainfall climate

buienradar_rain's Introduction

Buienradar_Rain

This QuickApp (for the Fibaro Homecenter 3) predicts the rain in a part of Europe with data from the Buienradar, two hours in advance. The value of this QuickApp represents the minutes until rain If there is no rain expected, the value is set to 0. If it rains, the value is set to 999 and the amount of rain (mm/h) is shown

Buienradar updates every 5 minutes with intervals of 5 minutes until 2 hours in advance. If rain is expected within the first predicted 5 minutes or less, the QuickApp assumes it is raining.

If rain is expected or it rains, the interval for checking the Buienradar data (default without rain 300 seconds, equal to the Buienradar updates) is speed up (default 60 seconds) so the QuickApp value is updated more often.

With the value updated in this QuickApp, you are able to build and use your own scenes to notify, to close or open sunscreens, to close or open windows, etcetera

Version 1.3 (19th February 2022)

  • Added extra debug lines
  • Small change in buildup labels

Version 1.2 (8th January 2022)

  • Buienradar change the response with decimals and without leading zero's. Added some code to handle that.

Version 1.1 (19th March 2021)

  • Added Child Device for rainfall mm/h
  • Added Quickapp variable for debug level (1=some, 2=few, 3=all). Recommended default value is 1. debuglevel 4 = Rain expected simalation. debugLevel = 5 Raining simulation
  • Freed up some space (3 positions) in the presentation of the amount of rain
  • Increased the default value of the maximum lines (maxLines) from 23 to 26
  • Changed the unit in case of rain to empty

Version 1.0 (25th October 2020)

  • Added the possiblity to change the icon according to rain, rain expected or dry. Three not mandatory quickapp variables are added to fill in with the icon number for rain, rain expected and dry.

Version 0.3 (26th September 2020)

  • Build an extra check for an incomplete Buienradar response (sometimes less than two hours)
  • Added global variable maxLines to arrange the maximum amount of lines to indicate the amount of rain (one line for every 0.10mm rain) to fit the screen of your mobile device
  • Decreased the default lines from 25 to 23 to show it right on an iPhone

Version 0.2 (4th September 2020)

  • Ready for the new Mobile App 1.9: Added visual level of rain (forecast) with thanks to @tinman from forum.fibaro.com
  • Added warning for latitude and logitude settings where Buienradar Rain has (no) coverage

Version 0.1 (15th August 2020)

  • Initial version

JSON data copyright: (C)opyright Buienradar / RTL. All rights reserved. JSON data terms: Deze feed mag vrij worden gebruikt onder voorwaarde van bronvermelding buienradar.nl inclusief een hyperlink naar https://www.buienradar.nl. Aan de feed kunnen door gebruikers of andere personen geen rechten worden ontleend.

The value 000 indicates no rain (dry), the value 255 indicates heavy rain. Used formula for converting to the rain intensity in the unit millimetre per hour (mm/h): Rain intensity = 10^(value-109)/32) Example: a value of 77 is equal to a rain intensity of 0,1 mm/h.

Variables mandatory:

  • intervalR = Number in seconds to update the data when rain expected or raining (must be different to IntervalD)
  • intervalD = Number in seconds to update the data when no rain expected, Buienradar is updated every 300 seconds
  • latitude = of your location (Default is the latitude of your HC3)
  • longitude = of your location (Default is the longitude of your HC3)

buienradar_rain's People

Contributors

github4eddy avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.