New plugin: rain prediction sensor

Rene,

On UI5 I have the RainAlarm working without any problem.

On UI7 it was working, but not anymore.
But I did not get it. After many hours off searching I removed the device and reinstalled it.
But I still don’t get the data from buienradar.
This is a part off my Vera log:

50 07/22/17 17:04:56.103 luup_log:718: RainAlarm refreshCache: http://gadgets.buienradar.nl/data/raintext?lat=51.814617&lon=5.809436 <0x31976680> 01 07/22/17 17:04:56.160 e[31;1mFileUtils::ReadURL 0/resp:302 user: pass: size 1 http://gadgets.buienradar.nl/data/raintext?lat=51.814617&lon=5.809436 response: e[0m <0x31976680> 50 07/22/17 17:04:56.162 luup_log:718: RainAlarm Successful execution of URL rss= <0x31976680>

After the last line with URL rss= I expect the values like : 057|16:35 000|16:40 035 Ect…
But They don’t show up. Is there a reasson for this issue?

Thanks in Advance,…

Andr?

Hi Andre,

I found that in the latest UI7 the luup.inet.wget does not handle redirects, and buienradar now uses a redirect if your location uses more than two digits.

If you set the Location variable to lat=51.81&lon=5.81 (click the “switch to input type text” check box or it will fail).

I will work on some updated code later.

Cheers Rene

Yeah,…

Rene,

this is working. Now it shows the right vallues:

50	07/24/17 16:07:18.201	luup_log:720: RainAlarm Successful execution of URL rss=000|16:05  000|16:10  000|16:15  000|16:20  000|16:25  000|16:30  000|16:35  000|16:40  000|16:45  000|16:50  000|16:55  000|17:00  035|17:05  070|17:10  070|17:15  070|17:20  057|17:25  000|17:30  000|17:35  000|17:40  000|17:45  000|17:50  000|17:55  000|18:00   <0x31e06680>

Lucky enough (??) it will rain in some time to test it …

Thanks,

Andre

For some unknown reason the plug stopped working just at the time when the use of the sunblinds are in force. The only response I get in the log file is as follows:
luup_
50 05/29/18 17:34:23.100 luup_log:116: RainAlarm refreshCache: http://gadgets.buienradar.nl/data/raintext?lat=52&lon=5 <0x74f2d520>
01 05/29/18 17:34:23.118 FileUtils::ReadURL 0/resp:301 user: pass: size 1 http://gadgets.buienradar.nl/data/raintext?lat=52&lon=5 response: <0x74f2d520>
50 05/29/18 17:34:23.119 luup_log:116: RainAlarm Successful execution of URL rss= <0x74f2d520>

No rain data is being displayed. I have had some VERA OS update since last summer but for the rest I stayed at the files made available in this blog published by reneboer.
Anyone having some idea what has changed since the last update from 1st November 2016 which may be the reason for the app to fail?
Rgds
Dick

Hi,

I recently found that buienradar changed the request to https. If you do it with http there will be a redirect again (the 302 number) that is not handled on Vera. The new implementation file is attached. Tested on openLuup and Vera.

Cheers Rene

Hi Rene,
Thanks a lot, that was the issue. All is running smooth again following the installation of your file I_dutchRainAlarm.xml with patch dated 14 Feb 2018. Thanks also for resolving the two digits lat/lng issue. Very helpfull.
Rgds
Dick