Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

QuickApp - Buienradar Rain ⛈


SmartHomeEddy
 Share

Question

This QuickApp predicts the rain in The Netherlands (and Belgium, a part of Germany and a small part of France and England) 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.

 

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 possibility 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

 

 

Please login or register to see this attachment.

 

The value of this QuickApp is the same as the value of any other device like a temperature, humidity, CO2 sensor. 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
 

Please login or register to see this attachment.


Or a Block Scene:

Please login or register to see this image.

/monthly_2020_08/A9331C68-066D-46DF-9E4D-CA53F490ECEE.jpeg.904f614b55dca5b1d898d768cd467a2c.jpeg" />


 

Where the value: 

0 = no rain expected

999  = it is raining

any other number = the minutes until rain expected

 

buienradar_rain-1.png.901679cb0641bbb7e2224917de91561e.png

 

In this example rain is expected at 20:55, within 93 minutes. 

Please login or register to see this code.

Where 321 should be your Buienradar Rain device ID


In this example it is raining. In the log you can see how much it is raining: 

E4DBF2B6-03E0-4372-A995-F87626FCFCE6.jpeg.44a19a99924dbf215db25cfac69c82c5.jpeg

Please login or register to see this code.

Where 321 should be your Buienradar Rain device ID

 

 

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

Please login or register to see this link.

Aan de feed kunnen door gebruikers of andere personen geen rechten worden ontleend.

 

 

QuickApp variables (mandatory, they will be automatically added with the default values):

  • intervalR = Number in seconds to update the data when rain expected or raining (default is 60 seconds, must be different to IntervalD)
  • intervalD = Number in seconds to update the data when no rain expected. Buienradar is updated every 300 seconds (default is 300 seconds). 
  • latitude = of your location (default is the latitude of your HC3)
  • longitude = of your location (default is the longitude of your HC3)
  • maxLines = maximum number of | to indicate the amount of rain (one line for every 0.10mm rain)
  • iconR = icon number for rain
  • iconE = icon for rain expected
  • iconD = icon number for dry

 

Coverage:

Latitude (50-54) / longitude (1-10)

 

image.png.68289843ffe67354546644034b26f48c.png
NO or YES coverage

 

Please login or register to see this attachment.


Please login or register to see this attachment.

 

 


 

Download the QuickApp here (download the file and un-zip):

Please login or register to see this link.

or Fibaro Marketplace: 

Please login or register to see this link.


 

How to install: 

  1. Open the Configuration Interface
  2. Go to Settings > Devices
  3. Click  +
  4. Choose Other Device
  5. Choose Upload File
  6. Choose file from your computer with .fqa
  7. Check the latitude and longitude settings in the QuickApp Variables and change them to your settings (or delete them and push the “save” button to force the right default settings)

 

Edited by SmartHomeEddy
  • Like 4
  • Thanks 1
Link to comment
Share on other sites

Recommended Posts

  • 0

There was a lot of rain falling down the past days here in Holland. But not where i live (noord-holland).

 

But finnaly some rain is coming - and the Quickapp works! A little to good :P

I made a scene, that gives a push msg, now i get every minute a new msg. Thats a little to much.

 

 

 

Please login or register to see this attachment.

Link to comment
Share on other sites

  • 0

Hi Peter,

 

Every time the data is get from buienradar and > 0 you get a new message

Option can be to make a delay block or Make something like > 0 and < 2

Link to comment
Share on other sites

  • 0
  • Inquirer
  • It also depends a bit on when you want to receive a message

    1. rain expected (value quickapp between 0 and 999)

    2. rain expected within n minutes (value quickapp <= n)

    2. it is raining (value quickapp 999 or value child device > 0)

     

    And indeed in what time window do you want to know it is still raining or rain is expected. You could solve too much messages with a delay block like Hearts mentions. 

    Link to comment
    Share on other sites

    • 0
    25 minutes ago, SmartHomeEddy said:

    It also depends a bit on when you want to receive a message

    1. rain expected (value quickapp between 0 and 999)

    2. rain expected within n minutes (value quickapp <= n)

    2. it is raining (value quickapp 999 or value child device > 0)

     

    And indeed in what time window do you want to know it is still raining or rain is expected. You could solve too much messages with a delay block like Hearts mentions. 

     

    57 minutes ago, Hearts said:

    Hi Peter,

     

    Every time the data is get from buienradar and > 0 you get a new message

    Option can be to make a delay block or Make something like > 0 and < 2

     

    Hey guys :)

     

    Seems the rain didnt come afterall, so the push notifications stopped.

    I think i am gonna make a set of rules, with the options you both are suggesting.

    I'll report when i worked it out. Thanks

     

     

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • You don't have to wait for rain. If you set debugLevel = 4, then it will actually rain. OK, not actually 😉

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  •  
    Lots lots lots of rain …

     

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

    • 0

    Well, i was sleeping :)

     

     

    But your QA works flawless....also i am pretty lucky with the position of the

    weather station. I'm using "wijk aan zee". And thats pretty close, but i think

    also a  good position in relation to my home. 

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

    • 0

    funny to see the rain circling around my area.

     

     

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 1 hour ago, ppeterr said:

    also i am pretty lucky with the position of the weather station.

     

    That is the QuickApp Buitenradar Weather, that works with weather stations. The QuickApp Buitenradar Rain works with longitude and latitude. Do you also use Buitenradar Rain?

     

    It was short but a lot:

     

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

    • 0
    On 8/30/2020 at 2:10 PM, SmartHomeEddy said:

     

    I thought about it. It is easy to calculate and show the expected rain (mm/h) in the first 5 minutes when rain is expected. But most of the time, it wil start with some drizzle, which does not represent the amount of rain to come. 

     

    I could use some help, what would help to show? The total amount of rain within the next two hours or just the amount of the first 5 minutes when rain is expected (or something else)?

    I discovered your QA yesterday and I am exited. It works fine, except my icons do not show as they should. I will try again. It also covers Hannover/Germany. Thank you.

    However, as you described, it is annoying to get a warning for a drizzle. I would be happy to get a warning for rain > 0.5 mm/h (or a value to choose) or a warning for a accumulated amount of rain (e.g. 1mm).

    Then I can stop my irrigation before the rain.

    Thanks again for this clever QA.

    Edited by Micx
    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Posted (edited)

    Hi @Micx

     

    You could check the child device Rainfall value for more than 0.5. Also put some delay/timeout in your code, you don’t want to repeat the notification all the time the child device gets updated during the rain. 
     

    Or do you mean in the prediction only?

     

     

     

    Edited by SmartHomeEddy
    Link to comment
    Share on other sites

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

     Share

    ×
    ×
    • Create New...