Buienradar settings

Moderator: leecollings

Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Buienradar settings

Post by Derik »

Holiday so time for the hobby.

I saw a buienradar_rain script when I was logged in with FTP.
I have adjusted the data.
I have a dummy rain sensor.
ScreenShot015.jpg
ScreenShot015.jpg (102.1 KiB) Viewed 4660 times
But now?
I need a crontab?
What does this sensor?
What else can I set?
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
User avatar
gizmocuz
Posts: 2352
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Buienradar settings

Post by gizmocuz »

It will tell you the change (in percentage) of rain in the next 5 minutes
you could use a script/blockly to close your windscreens/doors/....
Quality outlives Quantity!
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Buienradar settings

Post by Derik »

I do something wrong..:
ScreenShot016.jpg
ScreenShot016.jpg (19.19 KiB) Viewed 4655 times
Only what.. :oops:
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
User avatar
gizmocuz
Posts: 2352
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Buienradar settings

Post by gizmocuz »

i added a crontab job with the command

Code: Select all

crontab -e
that looks like

Code: Select all

*/5 * * * * perl /home/<USER>/domoticz/buienradar_rain.pl
(you have to change <USER> with your domoticz user, for instance pi or linaro)

and i think you can leave the IP to 127.0.0.1 (and add this IP in your local networks in the domoticz settings page)
Quality outlives Quantity!
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Buienradar settings

Post by Derik »

Where do i go wrong..
Crontab installed..[ with linaro user ]
Only i see a red device...

And i do not undertand:
the 127.0.0.1 ?
I run on a CB2?
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
User avatar
gizmocuz
Posts: 2352
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Buienradar settings

Post by gizmocuz »

this script runs locally on your cubietruck, so you can use the local ip address 127.0.0.1
in domoticz, enter this 127.0.0.1 in your local network settings, so it will not need a password

if you type

crontab -e

(was already installed)

then enter the following line

*/5 * * * * perl /home/linaro/domoticz/buienradar_rain.pl

that is, if you installed domoticz in the folder /home/linaro/domoticz
Quality outlives Quantity!
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Buienradar settings

Post by Derik »

Looks good...

Code: Select all

linaro@cubie:~$ sudo perl /home/linaro/domoticz/scripts/buienradar_rain.pl
OK, precip=0.00

Code: Select all

#!/usr/bin/perl -w

use strict;
use LWP::UserAgent;
use HTTP::Cookies;

my $lat=50.22041;
my $long=5.89744;
my $domoticz_ip="192.168.5.70";
my $domoticz_port="8080";
my $domoticz_sensor_idx="3904";
my $duration=15;

my @user_agents = (
		'Mozilla/4.0 (compatible; MSIE 4.01; Windows 98)'
	);
Only it is killing my dummy rain sensor:
ScreenShot029.jpg
ScreenShot029.jpg (25.88 KiB) Viewed 4478 times
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
User avatar
gizmocuz
Posts: 2352
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Buienradar settings

Post by gizmocuz »

You have to use a percentage sensor
Quality outlives Quantity!
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Buienradar settings

Post by Derik »

Okay ...[ Thanks! ]
And the higher the percentage, the more chance of rain?

Too bad he is not active weather sensors. ;)
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
User avatar
gizmocuz
Posts: 2352
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Buienradar settings

Post by gizmocuz »

correct, 20-30 is a good change, best to look outside when it is raining, and check the percentage
Quality outlives Quantity!
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Buienradar settings

Post by Derik »

Thanks,,,

The time Domoticz can forecast with this option is about 2 hours...?
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
User avatar
gizmocuz
Posts: 2352
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Buienradar settings

Post by gizmocuz »

upcoming 15 minutes (it is a parameter in the sketch)
(will it rain in the next 15 minutes...)
Quality outlives Quantity!
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Buienradar settings

Post by Derik »

mmmm

Thanks.
I now how this option is working now..

Great!
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Buienradar settings

Post by Derik »

Update problem...
After the last update a red device....

I try:

Code: Select all

linaro@cubie:~$ sudo perl /home/linaro/domoticz/scripts/buienradar_rain.pl
Error sending data to domoticz!
So it is not working any more..

I make no changes....

Are there more problems?
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
User avatar
gizmocuz
Posts: 2352
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Buienradar settings

Post by gizmocuz »

What version? Did you try to update again?
What other problems?
Quality outlives Quantity!
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Buienradar settings

Post by Derik »

Did 20 minutes ago the update...
ScreenShot030.jpg
ScreenShot030.jpg (217.49 KiB) Viewed 4375 times
After that the % device is red..

Perhaps there are more people with a problem was what i mean..
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Buienradar settings

Post by Derik »

Found it...!!!

The update make the settings in the document back to standard....

my idx was changed and the domoticz ip was chagend to..

Changed them back:
ScreenShot031.jpg
ScreenShot031.jpg (138.27 KiB) Viewed 4374 times
So it is working again....
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
User avatar
gizmocuz
Posts: 2352
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Buienradar settings

Post by gizmocuz »

????
Derik wrote:Found it...!!!

The update make the settings in the document back to standard....
yes, you need to copy this template to another location, edit it, and then use it in the crontab

;)
Quality outlives Quantity!
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Buienradar settings

Post by Derik »

pppffffff, makes sence indeed

I going to do this...
Perhaps in the document a short how to.. :-)
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
User avatar
gizmocuz
Posts: 2352
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Buienradar settings

Post by gizmocuz »

Good idea ! I will do this
Quality outlives Quantity!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest