Buienradar Weather Lookup Plugin

Python and python framework

Moderator: leecollings

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 »

Perhaps it's still something with the plugin problem earlier? I too have some problems with a few python plugins, but others do work.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
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 »

htilburgs wrote: Sunday 21 January 2018 20:49 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?
If there is a way to troubleshoot, I'm willing to help.
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 »

mm other problem,,,,,

Cannot remove the "plugin"beceasue the hardware is gone..
Or i cannot run with the plugin.
Now is Domoticz searching for the hardware:

Code: Select all

2018-01-22 17:21:30.041 Error: D.M.: Buienradar hardware (81) thread seems to have ended unexpectedly
Perhaps there is a "save mode" to remove the wrong plugin hardware?

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
Snowtiger
Posts: 120
Joined: Tuesday 18 October 2016 13:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10915
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Snowtiger »

I just remove the domoticz-buienradar directory from the plugins directory in the Domoticz installation folder - Domoticz is then searching for the Python file of Buienradar and can not find it but continues running normal.
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 »

yes running normal..
Only for a stable working version it is not good Domoticz let searching for not exist hardware..
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 »

Snowtiger wrote: Monday 22 January 2018 19:06 I just remove the domoticz-buienradar directory from the plugins directory in the Domoticz installation folder - Domoticz is then searching for the Python file of Buienradar and can not find it but continues running normal.
Also remove it from the hardware page.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
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 »

EdwinK wrote: Monday 22 January 2018 21:48
Snowtiger wrote: Monday 22 January 2018 19:06 I just remove the domoticz-buienradar directory from the plugins directory in the Domoticz installation folder - Domoticz is then searching for the Python file of Buienradar and can not find it but continues running normal.
Also remove it from the hardware page.
That is the problem..
When you remove the plugin from the plugin section.
On the hardware place in Domoticz is an emty place..
So you cannot remove the hardware...
And when i activate hardware [ so lace the plugin in the plugin place ] Domoticz loops in errors..
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
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by waaren »

If domoticz (or you) have problems with a plugin you can also disable the specific hardware directly in the database if you do not have access to the web interface and/or domoticz is down.

Code: Select all

# in domoticz directory
# stop domoticz (on my system I do this with the service command) 
service domoticz stop

# update Enabled field in domoticz database with command line interface 
sqlite3 domoticz.db

sqlite> -- Notice the starting .
sqlite> .headers on

sqlite> select * from hardware;

ID|Name|Enabled|Type|Address|Port|SerialPort|Username|Password|Extra|Mode1|Mode2|Mode3|Mode4|Mode5|Mode6|DataTimeout
1|Domoticz Internal|1|67||1|||||0|0|0|0|0|0|0
2|Buienradar|1|94||0||||Buienradar||10|30|False|True|Normal|0
3|RFtrx433|1|1||0|/dev/ttyUSB-RFtrx433||||83|11|0|44|46|64|0
4|Aeotec  Zwave stick|1|21||0|/dev/ttyUSB-Zwave||||0|0|0|0|0|0|0
5|RFLink|1|46||0|/dev/ttyUSB-RFlink||||0|0|0|0|0|0|0
....

sqlite> update Hardware set Enabled = 0 where Name = "Buienradar";
sqlite> .quit

service domoticz start
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
zicht
Posts: 251
Joined: Sunday 11 May 2014 11:09
Target OS: Windows
Domoticz version: 2023.1+
Location: NL
Contact:

Re: Buienradar Weather Lookup Plugin

Post by zicht »

Hmm Just thinking out loud when reading the last posts on this thread :
buienradar has experienced some problems on their site mid last year -->They allready changed some gadget url's/server adresses.
Maybe there is something similar going on ?
(I am not using the python version myself, but the lua version and that one stopped working a while a go since they did not support the old url anymore.)
[Update 20 juli 2017]: Afgelopen dagen gaf deze widget geen data door. Dit is inmiddels verbeterd. Gebruik hiervoor de url https://gps.buienradar.nl/getrr.php?lat=51&lon=3 en niet de onderliggende url.
Rpi & Win x64. Using : cam's,RFXCom, LaCrosse, RFY, HuE, google, standard Lua, Tasker, Waze traveltime, NLAlert&grip2+,curtains, vacuum, audioreceiver, smart-heating&cooling + many more (= automate all repetitive simple tasks)
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 »

And they are using HTTPS in some sites from the 18 of december.. grrr
My solarmeter is stop uploading there free weerdata
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:

Re: Buienradar Weather Lookup Plugin

Post by Snowtiger »

zicht wrote:Hmm Just thinking out loud when reading the last posts on this thread :
buienradar has experienced some problems on their site mid last year -->They allready changed some gadget url's/server adresses.
Maybe there is something similar going on ?
(I am not using the python version myself, but the lua version and that one stopped working a while a go since they did not support the old url anymore.)
[Update 20 juli 2017]: Afgelopen dagen gaf deze widget geen data door. Dit is inmiddels verbeterd. Gebruik hiervoor de url https://gps.buienradar.nl/getrr.php?lat=51&lon=3 en niet de onderliggende url.
Hmmm, I checked the 2 url's used in Gerard33 version and they both have normal response, so in this case it is not the problem.
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 »

Buienradar plugin in Domoticz Bèta is working again - upgrade to Bèta V3.8851 and voila Image
Commit in Github which does the magic :

Code: Select all

Resolve crash when positional parameters are used by restoring backwards compatibility that was broken in pull request #2071.   New parameters have been moved to the end of the parameter list rather than being added in the middle.

Previous behavior around nValue and sValue restored to match what is in stable to ensure existing plugins will function as expected. 
Thx to Dnpwwo and others who solved this problem Image
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 »

What version do I need to use from buienradar
From the wiki or gith??
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 »

Snowtiger wrote: Saturday 27 January 2018 12:40 Buienradar plugin in Domoticz Bèta is working again - upgrade to Bèta V3.8851 and voila Image
Commit in Github which does the magic :

Code: Select all

Resolve crash when positional parameters are used by restoring backwards compatibility that was broken in pull request #2071.   New parameters have been moved to the end of the parameter list rather than being added in the middle.

Previous behavior around nValue and sValue restored to match what is in stable to ensure existing plugins will function as expected. 
Thx to Dnpwwo and others who solved this problem Image
Still not working . for me :( 'error creating devices' (or something like that. Both g3rard's version as from ffes.
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:

Re: Buienradar Weather Lookup Plugin

Post by Snowtiger »

Derik wrote:What version do I need to use from buienradar
From the wiki or gith??
I use the one from https://github.com/gerard33/domoticz-buienradar
Snowtiger
Posts: 120
Joined: Tuesday 18 October 2016 13:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10915
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Snowtiger »

EdwinK wrote:Still not working . for me :( 'error creating devices' (or something like that. Both g3rard's version as from ffes.
That's strange - I deleted the Buienradar files by deleting the domoticz/plugins/domoticz-buienradar directory, deleted the Hardware from the Domoticz web interface - restart Domoticz - create new git clone domoticz-buienradar into domoticz/plugins directory, restart Domoticz, add the Buienradar Hardware in the Domoticz web interface and all was working again.
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 »

It's only with this plugin and the Life360 plugin. So far all others are working. Might as well keep Darksky for now (with history)

Tried again, but still the same...
Screen Shot 2018-01-27 at 20.24.29.png
Screen Shot 2018-01-27 at 20.24.29.png (41.84 KiB) Viewed 4537 times
Last edited by EdwinK on Wednesday 07 February 2018 15:06, edited 1 time in total.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
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.8851 (fresh compiled) - Add Buienradar Plugin - Boem - Fatal 11.
So still no luck. Other plugins running great.
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
Ewaldharmsen
Posts: 130
Joined: Tuesday 07 February 2017 15:00
Target OS: Linux
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Ewaldharmsen »

I still have the same problem.

I reinstalled domoticz (3.81.53) and installed the buienradar plugin.
It stops working between 12 and 24 hours, I have to reboot my machine to get it fixed. Restarting the service is somehow not good enough.

But another strange this is that sometimes (2 out of 3 times) domoticz does not start automatically after a reboot. I then have to manually do sudo service domotica.sh start
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 »

See also the same post at: http://www.domoticz.com/forum/viewtopic ... 20#p168909

I did a fresh compile of Domoticz v3.88.71.
I'm running the BatteryLevel plugin without any issues. After installing the Buienradar plugin, my system crashes immediatly:

Code: Select all

2018-01-29 10:52:19.046  RxQueue: queue worker started...
2018-01-29 10:52:21.046  Hardware Monitor: Started
2018-01-29 10:52:21.061  YeeLight Worker started...
2018-01-29 10:52:21.061  Nest: Worker started...
2018-01-29 10:52:21.061  (Battery Level) Started.
2018-01-29 10:52:21.062  EventSystem: reset all events...
2018-01-29 10:52:21.212  dzVents: Write file: /home/pi/domoticz/scripts/dzVents/generated_scripts/PIR.lua
2018-01-29 10:52:21.213  dzVents: Write file: /home/pi/domoticz/scripts/dzVents/generated_scripts/Ganglicht vo$
2018-01-29 10:52:21.213  dzVents: Write file: /home/pi/domoticz/scripts/dzVents/generated_scripts/Sensoren.lua
2018-01-29 10:52:21.214  EventSystem: reset all device statuses...
2018-01-29 10:52:21.434  PluginSystem: Entering work loop.
2018-01-29 10:52:21.465  Python EventSystem: Initalizing event module.
2018-01-29 10:52:21.466  EventSystem: Started
2018-01-29 10:52:21.466  EventSystem: Queue thread started...
2018-01-29 10:52:21.546  OpenZWave: using config in: /home/pi/domoticz/Config/
2018-01-29 10:52:21.549  OpenZWave: Starting...
2018-01-29 10:52:21.549  OpenZWave: Version: 1.4-2924-gd1896485-dirty
2018-01-29 10:52:21.614  (Battery Level) Entering work loop.
2018-01-29 10:52:21.614  (Battery Level) Initialized version 0.4.5, author 'logread'
2018-01-29 10:52:21.752  OpenZWave: Driver Ready
2018-01-29 10:52:22.062  MQTT: Connecting to 192.168.0.100:1883
2018-01-29 10:52:22.164  MQTT: connected to: 192.168.0.100:1883
2018-01-29 10:52:22.218  Incoming connection from: 192.168.0.73
2018-01-29 10:52:22.264  MQTT: Subscribed
2018-01-29 10:52:41.936  (Buienradar) Started.
2018-01-29 10:52:42.193  Error: Domoticz received fatal signal 11 !...
2018-01-29 10:52:42.199  Error:   /home/pi/domoticz/domoticz() [0x23a99c]
2018-01-29 10:52:42.199  Error:   /home/pi/domoticz/domoticz(_Z14signal_handleri+0x4c) [0x23aa54]
2018-01-29 10:52:42.199  Error:   /lib/arm-linux-gnueabihf/libc.so.6(__default_sa_restorer+0) [0x76bf86b0]
Further information about my system:

Code: Select all

pi@raspberrypi3:/ $ lsb_release -a
No LSB modules are available.
Distributor ID:	Raspbian
Description:	Raspbian GNU/Linux 9.3 (stretch)
Release:	9.3
Codename:	stretch

Code: Select all

pi@raspberrypi3:/ $ uname -a
Linux raspberrypi3 4.9.59-v7+ #1047 SMP Sun Oct 29 12:19:23 GMT 2017 armv7l GNU/Linux

Code: Select all

pi@raspberrypi3:/ $ python --version
Python 2.7.13
pi@raspberrypi3:/ $ python3 --version
Python 3.5.3

Code: Select all

pi@raspberrypi3:/ $ dpkg --list | grep python
ii  dh-python                       2.20170125                   all          Debian helper tools for packaging Python libraries and applications
ii  libpython-stdlib:armhf          2.7.13-2                     armhf        interactive high-level object-oriented language (default python version)
ii  libpython2.7-minimal:armhf      2.7.13-2+deb9u2              armhf        Minimal subset of the Python language (version 2.7)
ii  libpython2.7-stdlib:armhf       2.7.13-2+deb9u2              armhf        Interactive high-level object-oriented language (standard library, version 2.7)
ii  libpython3-dev:armhf            3.5.3-1                      armhf        header files and a static library for Python (default)
ii  libpython3-stdlib:armhf         3.5.3-1                      armhf        interactive high-level object-oriented language (default python3 version)
ii  libpython3.4:armhf              3.4.4-3                      armhf        Shared Python runtime library (version 3.4)
ii  libpython3.4-minimal:armhf      3.4.4-3                      armhf        Minimal subset of the Python language (version 3.4)
ii  libpython3.4-stdlib:armhf       3.4.4-3                      armhf        Interactive high-level object-oriented language (standard library, version 3.4)
ii  libpython3.5:armhf              3.5.3-1                      armhf        Shared Python runtime library (version 3.5)
ii  libpython3.5-dev:armhf          3.5.3-1                      armhf        Header files and a static library for Python (v3.5)
ii  libpython3.5-minimal:armhf      3.5.3-1                      armhf        Minimal subset of the Python language (version 3.5)
ii  libpython3.5-stdlib:armhf       3.5.3-1                      armhf        Interactive high-level object-oriented language (standard library, version 3.5)
ii  python                          2.7.13-2                     armhf        interactive high-level object-oriented language (default version)
ii  python-apt-common               1.1.0~beta5                  all          Python interface to libapt-pkg (locales)
ii  python-minimal                  2.7.13-2                     armhf        minimal subset of the Python language (default version)
ii  python-rpi.gpio                 0.6.3~stretch-1              armhf        Python GPIO module for Raspberry Pi
ii  python2.7                       2.7.13-2+deb9u2              armhf        Interactive high-level object-oriented language (version 2.7)
ii  python2.7-minimal               2.7.13-2+deb9u2              armhf        Minimal subset of the Python language (version 2.7)
ii  python3                         3.5.3-1                      armhf        interactive high-level object-oriented language (default python3 version)
ii  python3-apt                     1.1.0~beta5                  armhf        Python 3 interface to libapt-pkg
ii  python3-dev                     3.5.3-1                      armhf        header files and a static library for Python (default)
ii  python3-minimal                 3.5.3-1                      armhf        minimal subset of the Python language (default python3 version)
ii  python3.5                       3.5.3-1                      armhf        Interactive high-level object-oriented language (version 3.5)
ii  python3.5-dev                   3.5.3-1                      armhf        Header files and a static library for Python (v3.5)
ii  python3.5-minimal               3.5.3-1                      armhf        Minimal subset of the Python language (version 3.5)
pi@raspberrypi3:/ $ 
I hope this is enough information.
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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest