Giter Club home page Giter Club logo

domoticz-buienradar's Introduction

domoticz-buienradar's People

Contributors

ffes avatar gerard33 avatar tsjippy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

domoticz-buienradar's Issues

Buienradar plugin

Domoticz crashes after a while after installing Buienradar plugin. Even after re-installation and start up. I have installed de latest version of Domoticz. I hope ffs will fix the error. It is also a nice plugin

Buienradar plugin killes Domotiz

Dear developer...
When i try to activate the plugin in Domoticz[ latest beta ]
Domoticz crash in 2 secondes, no log or.....

when i restart domoticz and i am fast then i can set the plugin off. And is domoticz running without any problem. [ i use servel other plugins..
Is there perhaps something i need to install?
Or is there something else i can do?

Or perhaps you can..

Thanks!!!

edit..
Kils on a Rp3
And also on a Odroid N2
Last Beta i run always

python error

Dear...
My python version with this plugin is make my Domoticz not works.
So i run:
`
Welcome to Ubuntu 16.04.4 LTS (GNU/Linux 4.14.5-92 armv7l)

And when i try t install the request packages:
odroid@odroid:~$ sudo apt install libpython3.4 [sudo] password for odroid: Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: libgtk-3-common : Depends: adwaita-icon-theme (>= 3.18) but it is not going to be installed Recommends: libgtk-3-0 but it is not going to be installed libpython3.4 : Depends: libpython3.4-stdlib (= 3.4.2-1) but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). odroid@odroid:~$

And:
odroid@odroid:~$ sudo apt install python3-dev Reading package lists... Done Building dependency tree Reading state information... Done python3-dev is already the newest version (3.6.4-1). You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: libgtk-3-common : Depends: adwaita-icon-theme (>= 3.18) but it is not going to be installed Recommends: libgtk-3-0 but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). odroid@odroid:~$
When i reboot with the plugin in the plugin section Domoticz is not starting
When i reboot without the plugin files in the plugin section, domoticz works great..

Hope u can help me..

Thanks

Python error when starting plugin

2019-06-14 19:19:27.334 Status: (Buienradar) Started.
2019-06-14 19:19:33.375 Status: (Buienradar) Entering work loop.
2019-06-14 19:19:33.376 Status: (Buienradar) Initialized version 2.5.0, author 'ffes'
2019-06-14 19:19:34.408 Error: (Buienradar) Error: <urlopen error getrandom() initialization failed. (_ssl.c:720)> URL: http://xml.buienradar.nl/
2019-06-14 19:19:34.432 Error: (Buienradar) Error: <urlopen error getrandom() initialization failed. (_ssl.c:720)> URL: https://api.buienradar.nl/
2019-06-14 19:19:34.433 Error: (Buienradar) 'onStart' failed 'UnboundLocalError'.
2019-06-14 19:19:34.433 Error: (Buienradar) ----> Line 165 in '/home/pi/domoticz/plugins/domoticz-buienradar/plugin.py', function onStart
2019-06-14 19:19:34.433 Error: (Buienradar) ----> Line 133 in '/home/pi/domoticz/plugins/domoticz-buienradar/plugin.py', function onStart
2019-06-14 19:19:34.433 Error: (Buienradar) ----> Line 101 in '/home/pi/domoticz/plugins/domoticz-buienradar/buienradar.py', function getBuienradarXML
2019-06-14 19:25:43.540 (Buienradar) requeuing 'onHeartbeatCallback' message for 'Zigate'
2019-06-14 19:25:43.266 Status: (Buienradar) Stop directive received.
2019-06-14 19:25:43.267 Status: (Buienradar) Exiting work loop.
2019-06-14 19:25:43.567 Status: (Buienradar) Stopping threads.
2019-06-14 19:25:43.567 Status: (Buienradar) Stopped.
2019-06-14 19:25:43.567 Status: (Buienradar) Started.
2019-06-14 19:25:45.885 (Buienradar) Devices checked and created/updated if necessary
2019-06-14 19:25:45.885 (Buienradar) Retrieve weather data from http://xml.buienradar.nl/
2019-06-14 19:25:45.946 (Buienradar) Going to try another Buienradar URL
2019-06-14 19:25:45.946 (Buienradar) Retrieve weather data from https://api.buienradar.nl/
2019-06-14 19:25:45.704 Status: (Buienradar) Entering work loop.
2019-06-14 19:25:45.705 Status: (Buienradar) Initialized version 2.5.0, author 'ffes'
2019-06-14 19:25:45.945 Error: (Buienradar) Error: <urlopen error getrandom() initialization failed. (_ssl.c:720)> URL: http://xml.buienradar.nl/
2019-06-14 19:25:45.973 Error: (Buienradar) Error: <urlopen error getrandom() initialization failed. (_ssl.c:720)> URL: https://api.buienradar.nl/
2019-06-14 19:25:45.973 Error: (Buienradar) 'onStart' failed 'UnboundLocalError'.
2019-06-14 19:25:45.973 Error: (Buienradar) ----> Line 165 in '/home/pi/domoticz/plugins/domoticz-buienradar/plugin.py', function onStart
2019-06-14 19:25:45.973 Error: (Buienradar) ----> Line 133 in '/home/pi/domoticz/plugins/domoticz-buienradar/plugin.py', function onStart
2019-06-14 19:25:45.973 Error: (Buienradar) ----> Line 101 in '/home/pi/domoticz/plugins/domoticz-buienradar/buienradar.py', function getBuienradarXML

URLError

Hi,
I saw URLError's when my internetconnect was down,
You might want to catch the URLError

in the buienradar.py currently:
except urllib.error.HTTPError as e:

new:
except (urllib.error.HTTPError, urllib.error.URLError) as e:

Make use of Device.Type and Device.SubType

In a recent beta Type and SubType were added to the Device. This makes it possible to detect what device the users uses. So when you change the setting of Temperature and humidity or Include Wind chill in Wind device this can be done automatically.

Buienradar device does not show under devices

Hi, i am new with domoticz and i tried to follow your instructions to the letter but de buienradar device does not show up under domotcz devices. What am i doin wrong?
Setup, Hardware in your Domoticz interface does not show Buienradar. The python3 localtest.py command works.
I'm using this version of Domoticz:

About Domoticz
Version: 3.8590
Build Hash: d63b4c1

pi@RASDOMOTICZ:~/domoticz/plugins/domoticz-buienradar $ python3 localtest.py XML file contains weather station information
Found Meetstation Lauwersoog (ID: 6277) at 7.7 km from your home location
No Barometer and Visibility info found in your weather station, getting info from weather station De Bilt
Temperature: 13.2
Wind Speed: 3.36 | Wind Bearing: 209.0 | Wind Direction: SSW | Wind Speed Gusts: 5.1 | Wind Chill: 13.2
Barometer: 1011.32 | Barometer Forecast: 3
Humidity: 97 | Humidity status: 3
Visibility: 21500.0
Solar Irradiance: None
Rain rate: 0.1
Weather prediction today: Herfstachtig (Opgesteld op vrijdag 20 okt 2017 om 11:15)

Fatal signal 11 on domoticz beta caused by use of positional parameter in plugin.py

triggered by the description on Github (domoticz/domoticz#2092), I changed line 177 in plugin.py of the buienradar plugin.
CODE: SELECT ALL

# old line with positional parameters this line will trigger a fatal signal 11 on my system
Devices[Unit].Update(nValue, str(sValue))

# New line with named parameters
Devices[Unit].Update(nValue=nValue, sValue=str(sValue))
With this change my local compiled domoticz keeps running.

Problem connecting to Buienradar

The Plugin finds the nearest station, but in the problem log it shows the following error: 'Error: BuienRadar: Problem Connecting to Buienradar! (Check your Internet Connection!)'
My internet connection is functioning, for example DarkSky works fine.

Error: <urlopen error [SSL] internal error (_ssl.c:720)>

Error: (Buienradar) Error: <urlopen error [SSL] internal error (_ssl.c:720)> URL: http://xml.buienradar.nl/
occurs from yesterdays in Domoticz Beta Version: 4.11005
Also second request to https://api.buienradar.nl/
Error: (Buienradar) ----> Line 161 in '/home/pi/domoticz/plugins/Buienradar/plugin.py', function onStart
Error: (Buienradar) ----> Line 133 in '/home/pi/domoticz/plugins/Buienradar/plugin.py', function onStart
Error: (Buienradar) ----> Line 101 in '/home/pi/domoticz/plugins/Buienradar/buienradar.py', function getBuienradarXML

plugin error hardware (24)

i also installed the plugin , but it is not working at all
the PI will crash .
at the logging i see:

2019-04-01 18:39:25.780 Status: (Weersverwachting (Buienradar)) Started.
2019-04-01 18:40:38.962 Error: Weersverwachting (Buienradar) hardware (24) thread seems to have ended unexpectedly
2019-04-01 18:40:52.965 Error: Weersverwachting (Buienradar) hardware (24) thread seems to have ended unexpectedly
2019-04-01 18:41:06.968 Error: Motherboard sensors hardware (23) thread seems to have ended unexpectedly
2019-04-01 18:41:06.968 Error: Weersverwachting (Buienradar) hardware (24) thread seems to have ended unexpectedly

buienradar plugin is not showing in my hardware list

I did everything as descibed but buienradar plugin is not showing in my hardware list. I'm using a raspberry 3 with domoticz latest stable version installed, libpython 3.5.2. Also dventz/Lua is running and i already rebooted the rpi several times but no luck. What to do?

Development stalled

At the moment I haven't had Domoticz running at home for at least 4 months, so as you can imagine my personal need for and interest in this project has reduced a lot, and I don't see that change in the near future. I don't even have a test environment right now.

As a result of that, the development of this plugin (including answering issues in this repo) has stalled.

Therefore I gladly transfer this repo to someone who is actually using the plugin and willing to maintain the code. Please don't just fork and start your own repo. When I transfer the repo, the history (like issues and pr) remains intact and people will be redirected automatically from this repo to the new one.

small error

There is a typo in buienradar.py at line 293
if self.humidity >= 35 and self.humidity =< 65: should be <= 65:

--Gerard

plugin error after adding hardware

After adding the buienradar.nl Hardware in Domoticz, my Domoticz crashes. I have added parts of my domoticz.txt log below.

I'm running raspbian-jessie on a Raspberry Pi 3 Model B.
The self test (python3 localtest.py) ran without problems.

Domoticz.txt:
2019-06-09 12:14:51.071 Status: Domoticz V4.10881 (c)2012-2019 GizMoCuz
2019-06-09 12:14:51.071 Status: Build Hash: b06fb6b60, Date: 2019-06-08 15:28:08
2019-06-09 12:14:51.071 Status: System: Raspberry Pi
2019-06-09 12:14:51.072 Status: Startup Path: /home/pi/domoticz/

2019-06-09 12:14:51.662 Status: PluginSystem: Started, Python version '3.4.2'.
2019-06-09 12:14:53.791 Status: (Buienradar Geldrop) Started.
2019-06-09 12:14:53.791 Status: EventSystem: reset all events...
2019-06-09 12:14:53.801 Status: EventSystem: reset all device statuses...
2019-06-09 12:14:53.902 Status: PluginSystem: Entering work loop.
2019-06-09 12:14:56.004 Status: (Buienradar Geldrop) Entering work loop.
2019-06-09 12:14:56.005 Status: (Buienradar Geldrop) Initialized version 2.4.5, author 'ffes'
2019-06-09 12:14:56.196 (Buienradar Geldrop) Devices checked and created/updated if necessary
2019-06-09 12:14:56.196 (Buienradar Geldrop) Retrieve weather data from http://xml.buienradar.nl/
2019-06-09 12:14:56.260 Error: Domoticz(pid:727, tid:746('PluginMgr')) received fatal signal 11 (Segmentation fault)
2019-06-09 12:14:56.260 Error: siginfo address=0x2d7, address=0x76e9a2cc

2019-06-09 12:15:05.401 Error: Thread 26 (Thread 0x752c1430 (LWP 746)):
2019-06-09 12:15:05.401 Error: #0 0x76e99ef8 in __libc_waitpid (pid=834, stat_loc=0x752be940, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40
2019-06-09 12:15:05.401 Error: #1 0x0010f938 in dumpstack_gdb(bool) ()
2019-06-09 12:15:05.401 Error: #2 0x0010ff24 in signal_handler(int, siginfo_t*, void*) ()
2019-06-09 12:15:05.401 Error: #3
2019-06-09 12:15:05.401 Error: #4 0x76e9a2e8 in raise (sig=11) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:37
2019-06-09 12:15:05.401 Error: #5
2019-06-09 12:15:05.401 Error: #6 0x6820f82c in EC_POINT_free () from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
2019-06-09 12:15:05.401 Error: #7 0x68218c84 in EC_KEY_copy () from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0

No devices

Hi,

All seems normal, but I get only messages in the log but no devices.
2019-04-20 16:01:35.633 Status: (BuienRadar) Started.
2019-04-20 16:01:36.452 Status: (BuienRadar) Entering work loop.
2019-04-20 16:01:36.453 Status: (BuienRadar) Initialized version 1.5.18, author 'ycahome'

The python3 localtest.py is working!!
XML file contains weather station information
Found Meetstation Lauwersoog (ID: 6277) at 7.7 km from your home location
No Barometer and Visibility info found in your weather station, getting info from weather station De Bilt
Temperature: 15.8
Wind Speed: 8.0 | Wind Bearing: 47.0 | Wind Direction: NE | Wind Speed Gusts: 9.1 | Wind Chill: 15.8
Barometer: 1028.0 | Barometer Forecast: 0
Humidity: 71 | Humidity status: 3
Visibility: 36900.0
Solar Irradiance: 667.0
Rain rate: 0
Todays rain is 0.0 mm
Weather prediction today: Zonnig en (zomers) warm (Opgesteld op zaterdag 20 apr 2019 om 03:15)

What is wrong here, or how can I troubleshoot any deeper?

Discrepancy in library used in Domoticz/plugins

In Reader.md -

In your domoticz/plugins directory do

cd domoticz/plugins
git clone https://github.com/ffes/domoticz-buienradar.git

Alternatively you can download the latest version from https://github.com/ffes/domoticz-buienradar/archive/master.zip and unzip it. Then create a directory on your Domoticz device in domoticz/plugins named buienradar and transfer all the files to your device.
<<

The Buienradar plugin expects the second method and searches for Buienradar.py in /domoticz/plugins/Buienradar but git clone installs it in /domoticz/plugins/domoticz-buienradar

Add support for "Is it going to rain?"

Based on the forum post:
https://www.domoticz.com/forum/viewtopic.php?f=65&t=13938

Which is the Python rewrite of buienradar_rain_example.pl which is on domoticz/scripts

These scripts works with a percentage device and shows the average expected rain for the total period (coming 2 hours).

There is also a LUA script:
https://www.domoticz.com/wiki/Is_it_gonna_rain

Basically they all retrieve their data from:
http://gadgets.buienradar.nl/data/raintext/?lat=52.1&lon=4.3

That data is explained at
http://www.buienradar.nl/overbuienradar/gratis-weerdata#Neerslag%20lat%20lon

Question is: what to display?
Is it raining or going to rain with XXX minutes seems most useful.

This would need a "Switch" or "Selector Switch" (what is the difference?) to be set to true or false.

It is also possible to create a "Rain" device. But that stores the rain that actually has fallen. It wants a rate and counter: https://www.domoticz.com/wiki/Domoticz_API/JSON_URL's#Rain
So that is not the most logical device to use. And it is a bit unclear to me what the RAINCOUNTER value means.

I am missing text

I'm using the buienradar plugin to control my screens, rain and wind are most effective.
Other than these weather conditions, there are still situations where i don't really need to lower my sunscreens.
I used to scan the current weather text string for keywords like cloudy, foggy, rainy... i assume there could be such string available somewhere? Would be a nice addition!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.