Just wondering if it would be possible to convert the outcome of web-request into variables. The Dutch site Buienradar has a specific service to regularly update the rain data, which I used several years with tools from Stefx for my sun screens etc. Unfortunately the site regularly changes and Stefx will not update its free tool anymore (understandably).
The url for f.i. Antwerp is: https://gpsgadget.buienradar.nl/data...t=51.2&lon=4.2
Which shows the rain every ten minutes for the next 2 hours (as in the picture below). These figures need to be converted by a formula (= 10^((value-109)/32)) to get to a mm/hours.
Regarding these figures: would it be possible to put the first value (77 or the number converted by the formula) into a variable '0 minutes' and 0 into a variable ('5 minutes'), etc (or 87 into '20 minutes', etc? And then regularly have mcsmqtt update these so that I always have the latest updated estimates?
The url for f.i. Antwerp is: https://gpsgadget.buienradar.nl/data...t=51.2&lon=4.2
Which shows the rain every ten minutes for the next 2 hours (as in the picture below). These figures need to be converted by a formula (= 10^((value-109)/32)) to get to a mm/hours.
Regarding these figures: would it be possible to put the first value (77 or the number converted by the formula) into a variable '0 minutes' and 0 into a variable ('5 minutes'), etc (or 87 into '20 minutes', etc? And then regularly have mcsmqtt update these so that I always have the latest updated estimates?
Comment