Buienradar Weather Lookup Plugin

Python and python framework

Moderator: leecollings

rjblake
Posts: 142
Joined: Friday 21 October 2016 9:25
Target OS: NAS (Synology & others)
Domoticz version:
Location: Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by rjblake »

waaren wrote: Wednesday 06 December 2017 8:46 Still the same problem with version Domoticz V3.8771 and one or more active plugins.

I use buienradar, homewizard, NUT_UPS and Sonos. If I make any or all of these plugins active, domoticz crashes with:

2017-12-06 08:38:18.481 PluginSystem: Entering work loop.
2017-12-06 08:38:18.650 Error: Domoticz received fatal signal 11 !...
2017-12-06 08:38:18.651 Error: /opt/domoticz/domoticz() [0x236254]
2017-12-06 08:38:18.652 Error: /opt/domoticz/domoticz(_Z14signal_handleri+0x4c) [0x23630c]
2017-12-06 08:38:18.652 Error: /lib/arm-linux-gnueabihf/libc.so.6(__default_sa_restorer+0) [0x76c7e6b0]

on my RPI3 latest working Beta is domoticz.v3.8627
Still causes Domoticz to crash/fail to start on Raspberry Pi v3.8793 in my case. I have another Python plugin (Denon AVR) that is working just fine
AndreFR
Posts: 14
Joined: Thursday 30 November 2017 19:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by AndreFR »

I noticed that the buienrader plugin is giving some errors:
2017-12-20 08:08:38.909 Error: (Buienradar ) Error: URL: http://xml.buienradar.nl/
2017-12-20 08:08:38.913 Error: (Buienradar ) Error: URL: https://api.buienradar.nl/
2017-12-20 08:19:08.951 Error: (Buienradar ) 'onHeartbeat' failed 'TypeError':'type NoneType doesn't define __round__ method'.
2017-12-20 08:19:08.951 Error: (Buienradar ) ----> Line 143 in /home/pi/domoticz/plugins/domoticz-buienradar/plugin.py, function onHeartbeat
2017-12-20 08:19:08.951 Error: (Buienradar ) ----> Line 133 in /home/pi/domoticz/plugins/domoticz-buienradar/plugin.py, function onHeartbeat
2017-12-20 08:19:08.951 Error: (Buienradar ) ----> Line 277 in /home/pi/domoticz/plugins/domoticz-buienradar/plugin.py, function fillDevices

(above is repeating xx minutes).

I've nothing changed on my Raspberry Pi, even after reboot of the Pi the errors are occurin. Any solution???
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 Weather Lookup Plugin

Post by Derik »

Dear developer....

Is there perhaps a option to use the wind chill separate as 1 device?
I think this a extra option in the winter...
The data is in the list:

Code: Select all

2018-01-07 23:10:58.332 (D.M.: Buienradar) Wind Speed: 5.19 | Wind Bearing: 60.0 | Wind Direction: ENE | Wind Speed Gusts: 10.0 | Wind Chill: -6.4
Or can you make this in your plugin like the text funtion etc etc

Code: Select all

2018-01-07 23:10:58.333 (D.M.: Buienradar) Weather prediction today: Wind maakt het extra koud (Opgesteld op zondag 7 jan 2018 om 10:15)
Thanks from my kids... when they get a mail how cold it feels when they have to go school..:-)
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
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: Buienradar Weather Lookup Plugin

Post by EddyG »

If you want, you can do it manually by adding device 13 in the file plugin.py. It works for me.
@ffes This could be a choice in the setup. ;)

Code: Select all

    # Add the wind (and wind chill?) device
    if Parameters["Mode5"] == "True":
        if 6 not in Devices:
            Domoticz.Device(Name="Wind", Unit=6, TypeName="Wind+Temp+Chill", Used=1).Create()
    else:
        if 5 not in Devices:
            Domoticz.Device(Name="Wind", Unit=5, TypeName="Wind", Used=1).Create()
        if 13 not in Devices:
            Domoticz.Device(Name="Wind Chill", Unit=13, TypeName="Temperature", Used=1).Create()
and

Code: Select all

        # Wind
        if br.windBearing != None and br.windSpeed != None and br.windSpeedGusts != None:
            UpdateDevice(5, 0, str(br.windBearing)
                    + ";" + br.getWindDirection()
                    + ";" + str(round(br.windSpeed * 10))
                    + ";" + str(round(br.windSpeedGusts * 10))
                    + ";0;0")
            # Wind and Wind Chill
            UpdateDevice(6, 0, str(br.windBearing)
                    + ";" + br.getWindDirection()
                    + ";" + str(round(br.windSpeed * 10))
                    + ";" + str(round(br.windSpeedGusts * 10))
                    + ";" + str(round(br.temperature, 1))
                    + ";" + str(br.getWindChill()))
            # Wind Chill
            UpdateDevice(13, 0, str(br.getWindChill()))
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 Weather Lookup Plugin

Post by Derik »

@ Eddy...
Thanks looks great...

Make no different where in the plugin.py?
And is there then a new device visible in domoticz?

Please some more info..

Thanks
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
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: Buienradar Weather Lookup Plugin

Post by EddyG »

Put it in the place where I put it. It the code with unit 13.
You can see by the code where.
Yes there will be a new device in the Temperature tab with 'Buienrader Wind Chill'
The parts to be added are:

Code: Select all

      if 13 not in Devices:
            Domoticz.Device(Name="Wind Chill", Unit=13, TypeName="Temperature", Used=1).Create()
and

Code: Select all

# Wind Chill
UpdateDevice(13, 0, str(br.getWindChill()))
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 Weather Lookup Plugin

Post by Derik »

mmm Get an error:

Code: Select all

2018-01-08 16:13:32.751 Error: D.M.: Buienradar hardware (76) thread seems to have ended unexpectedly
Did use 1 of the first version and never did a update..

Perhaps there is a pr in github possible?
To make this standard...


Edit:
Start again everything removed..
New plugin install latest version...
Copy paste your latest code
Only error in the log:

Code: Select all

2018-01-08 16:37:25.382 (Solar: Dummy) Started.
2018-01-08 16:37:25.455 Error: (Buienradar) failed to load 'plugin.py', Python Path used was '/home/root/domoticz/plugins/domoticz-buienradar/:/usr/lib/python35.zip:/usr/lib/python3.5/:/usr/lib/python3.5/plat-arm-linux-gnueabihf:/usr/lib/python3.5/lib-dynload'.
2018-01-08 16:37:25.455 Error: (Solar: Dummy) Module Import failed, exception: 'IndentationError'
2018-01-08 16:37:25.456 Error: (Solar: Dummy) Import detail: File: /home/root/domoticz/plugins/domoticz-buienradar/plugin.py, Line: -1239619133, offset: 232
2018-01-08 16:37:25.456 Error: (Solar: Dummy) Error Line ' if 13 not in Devices:
Perhaps you can share your plugin.py code?
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
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: Buienradar Weather Lookup Plugin

Post by EddyG »

This my plugin.py (I had to upload with py changed in txt)

The "exception: 'IndentationError'" explains why.
Attachments
plugin.txt
(12.39 KiB) Downloaded 140 times
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 Weather Lookup Plugin

Post by Derik »

@ Edy THANKS!!!

this did the tric :-)
Got him:
ScreenShot111.png
ScreenShot111.png (31.71 KiB) Viewed 3358 times
And the thing i mis i think:
ScreenShot112.png
ScreenShot112.png (13.42 KiB) Viewed 3358 times
Thanks for the support!!
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
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: Buienradar Weather Lookup Plugin

Post by EddyG »

Not completely the same:
In the Temperature tab 2 Temperature device like below.
Attachments
2018-01-08_20-28-35.png
2018-01-08_20-28-35.png (24.58 KiB) Viewed 3344 times
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 Weather Lookup Plugin

Post by Derik »

mmm
I did a new install because there was something wrong...

Only now i get an error in the wget step:

Code: Select all

root@odroidxu4:/home/root/domoticz/plugins# git clone https://github.com/ffes/domoticz-buienradar.git
Cloning into 'domoticz-buienradar'...
fatal: unable to access 'https://github.com/ffes/domoticz-buienradar.git/': Could not resolve host: github.com
Perhaps something changed???
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
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Buienradar Weather Lookup Plugin

Post by EdwinK »

I just tried this myself a couple of minutes ago, and no errors cloning this plugin.

(still can't get it to work though)

Code: Select all

 sudo git clone https://github.com/ffes/domoticz-buienradar.git Buienradar
Cloning into 'Buienradar'...
remote: Counting objects: 154, done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 154 (delta 2), reused 8 (delta 2), pack-reused 143
Receiving objects: 100% (154/154), 51.65 KiB | 38.00 KiB/s, done.
Resolving deltas: 100% (85/85), done.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
tezzlicious
Posts: 39
Joined: Saturday 09 April 2016 13:47
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Buienradar Weather Lookup Plugin

Post by tezzlicious »

Following happens on beta 3.8862 (removed and readded Buienradar hardware):

Code: Select all

2018-01-20 18:36:23.075  (Buienradar) Found Meetstation Heino (ID: 6278) at 23.6 km from your home location
2018-01-20 18:36:23.076  (Buienradar) No Barometer and Visibility info found in your weather station, getting info from weather station De Bilt
2018-01-20 18:36:23.077  (Buienradar) Temperature: 2.8
2018-01-20 18:36:23.077  (Buienradar) Wind Speed: 0.92 | Wind Bearing: 95.0 | Wind Direction: E | Wind Speed Gusts: 1.2 | Wind Chill: 2.8
2018-01-20 18:36:23.077  (Buienradar) Barometer: 1000.44 | Barometer Forecast: 2
2018-01-20 18:36:23.077  (Buienradar) Humidity: 97 | Humidity status: 3
2018-01-20 18:36:23.077  (Buienradar) Visibility: 15600.0
2018-01-20 18:36:23.077  (Buienradar) Solar Irradiance: None
2018-01-20 18:36:23.077  (Buienradar) Rain rate: None
2018-01-20 18:36:23.078  (Buienradar) Weather prediction today: Af en toe nog winters (Opgesteld op zaterdag 20 jan 2018 om 05:45)
2018-01-20 18:36:23.079  Error: Domoticz received fatal signal 11 !...
2018-01-20 18:36:23.081  Error:   /home/pi/domoticz/domoticz() [0x209a84]
2018-01-20 18:36:23.081  Error:   /home/pi/domoticz/domoticz(_Z14signal_handleri+0x58) [0x209b3c]
2018-01-20 18:36:23.081  Error:   /lib/arm-linux-gnueabihf/libc.so.6(__default_sa_restorer_v2+0) [0x76bf3180]
dutchy
Posts: 3
Joined: Sunday 21 January 2018 20:27
Target OS: Windows
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by dutchy »

Dear members,

I'm trying to install buienradar in my Windows setup, but I'm unable to find the plugins folder. I've been trying to use the manual on the github page, but it seems that I'm missing something.

Can someone help me out?
User avatar
htilburgs
Posts: 464
Joined: Tuesday 03 November 2015 11:01
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by htilburgs »

Domoticz v3.8833 (Fresh install by compile)
After installing this plugin, I received an error
Error: Domoticz received fatal signal 11 !...
Other plugins work fine. Disable this plugin and everything is fine again. Any ideas?
Hardware:
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3
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 Weather Lookup Plugin

Post by Derik »

mmmm There is something more going wrong...
When i set the [old] plugin in the plugin area..
Reboot ..
Domoticz crash: [ Active: active (exited) ]

Code: Select all

 domoticz.service - LSB: Home Automation System
   Loaded: loaded (/etc/init.d/domoticz.sh; bad; vendor preset: enabled)
   Active: active (exited) since Sun 2018-01-21 22:37:23 CET; 43s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 688 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)

Jan 21 22:37:22 odroid systemd[1]: Starting LSB: Home Automation System...
Jan 21 22:37:23 odroid domoticz.sh[688]: 2018-01-21 22:37:23.381  Domoticz V3.8833 (c)2012-2018 GizMoCuz
Jan 21 22:37:23 odroid domoticz.sh[688]: 2018-01-21 22:37:23.381  Build Hash: 60050638, Date: 2018-01-19 13:22:13
Jan 21 22:37:23 odroid domoticz.sh[688]: 2018-01-21 22:37:23.382  Startup Path: /home/root/domoticz/
Jan 21 22:37:23 odroid domoticz.sh[688]: domoticz: Domoticz is starting up....
Jan 21 22:37:23 odroid domoticz[700]: Domoticz is starting up....
Jan 21 22:37:23 odroid domoticz[703]: Domoticz running...
Jan 21 22:37:23 odroid systemd[1]: Started LSB: Home Automation System.
root@odroid:~# shutdown -r now
login as: root
[email protected]'s password:
Welcome to Ubuntu 16.04.3 LTS (GNU/Linux 4.14.13-100 armv7l)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage
Last login: Sun Jan 21 22:38:05 2018 from 192.168.5.5
root@odroid:~# service domoticz.sh status
● domoticz.service - LSB: Home Automation System
   Loaded: loaded (/etc/init.d/domoticz.sh; bad; vendor preset: enabled)
   Active: active (running) since Sun 2018-01-21 22:39:01 CET; 43s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 690 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)

Jan 21 22:39:00 odroid systemd[1]: Starting LSB: Home Automation System...
Jan 21 22:39:01 odroid domoticz.sh[690]: 2018-01-21 22:39:01.571  Domoticz V3.8833 (c)2012-2018 GizMoCuz
Jan 21 22:39:01 odroid domoticz.sh[690]: 2018-01-21 22:39:01.571  Build Hash: 60050638, Date: 2018-01-19 13:22:13
Jan 21 22:39:01 odroid domoticz.sh[690]: 2018-01-21 22:39:01.571  Startup Path: /home/root/domoticz/
Jan 21 22:39:01 odroid domoticz.sh[690]: domoticz: Domoticz is starting up....
Jan 21 22:39:01 odroid domoticz[696]: Domoticz is starting up....
Jan 21 22:39:01 odroid domoticz[701]: Domoticz running...
Jan 21 22:39:01 odroid systemd[1]: Started LSB: Home Automation System
Active: active (running)


First with, and second without plugin..?
Perhaps a solution?
My director love the weather on the tablet.. :-)
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
Snowtiger
Posts: 120
Joined: Tuesday 18 October 2016 13:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10915
Contact:

Buienradar Weather Lookup Plugin

Post by Snowtiger »

I have the same problem with Beta V3.8833, Raspberry Pi 3 -
Part of the log file

Code: Select all

  (Buienradar) Entering work loop.
2018-01-22 11:55:38.485  (Buienradar) Initialized version 1.1.0, author 'ffes'
2018-01-22 11:55:40.101  Error: Domoticz received fatal signal 11 !...
2018-01-22 11:55:40.112  Error:   /home/pi/domoticz/domoticz() [0x238be8]
2018-01-22 11:55:40.112  Error:   /home/pi/domoticz/domoticz(_Z14signal_handleri+0x4c) [0x238ca0]
2018-01-22 11:55:40.112  Error:   /lib/arm-linux-gnueabihf/libc.so.6(__default_sa_restorer_v2+0) [0x76c991
I am still using the default ffes Buienradar but that should make no difference Image
Edit - that made a difference - now at Gerard33 version - no problems anymore but also no Buienradar present in the Hardware tab - let's see what's going wrong :)
Last edited by Snowtiger on Monday 22 January 2018 12:07, edited 1 time in total.
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 Weather Lookup Plugin

Post by Derik »

Mmmm think it is in the python versions..
I did upgrade tot latest python and then all my plugin fuckup.
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
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Buienradar Weather Lookup Plugin

Post by EdwinK »

I think it's Python too. There are too many versions going around, some scripts needs python2 others python3 It's getting difficult to get things running.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Snowtiger
Posts: 120
Joined: Tuesday 18 October 2016 13:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10915
Contact:

Buienradar Weather Lookup Plugin

Post by Snowtiger »

Got Gerard33 version of Buienradar active - same error in Domoticz log

Code: Select all

 OpenZWave: Driver Ready
2018-01-22 12:54:01.671  (Buienradar (gerard33)) Entering work loop.
2018-01-22 12:54:01.672  (Buienradar (gerard33)) Initialized version 2.0, author 'ffes'
2018-01-22 12:54:01.750  MQTT: Connecting to localhost:1883
2018-01-22 12:54:01.852  MQTT: connected to: localhost:1883
2018-01-22 12:54:01.953  MQTT: Subscribed
2018-01-22 12:54:02.073  Error: Domoticz received fatal signal 11 !...
2018-01-22 12:54:02.077  Error:   /home/pi/domoticz/domoticz() [0x238be8]
2018-01-22 12:54:02.077  Error:   /home/pi/domoticz/domoticz(_Z14signal_handleri+0x4c) [0x238ca0]
2018-01-22 12:54:02.077  Error:   /lib/arm-linux-gnueabihf/libc.so.6(__default_sa_restorer_v2+0) [0x76c74180]
now I am out of options.....
Raspberry Pi 3
Running Debian Jessy
Python 3.4
Domoticz V3.8833 (Bèta)
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest