updateWeatherSensors (yet another buienradar script)

DannyG
Posts: 3
Joined: Tuesday 17 April 2018 22:43
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: updateWeatherSensors (yet another buienradar script)

Post by DannyG » Monday 30 April 2018 23:39

just one request
barometer without decimals ;)

User avatar
waaren
Posts: 1240
Joined: Tuesday 03 January 2017 15:18
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: updateWeatherSensors (yet another buienradar script)

Post by waaren » Tuesday 01 May 2018 1:03

DannyG wrote:
Monday 30 April 2018 23:39
just one request
barometer without decimals ;)
Done. Made it with a user controlled amount of decimals for display and a separate amount of decimals for sending it to the database to keep the graph as smooth as possible.

Updated zip in first post
Last edited by waaren on Tuesday 01 May 2018 10:33, edited 1 time in total.
Raspberry (debian stretch via berryboot on Synology DS916+) , Domoticz (almost) latest Beta, , dzVents 2.6, RFLink, RFXtrx433e, P1, Youless, Harmony, Hue, Yeelight, Xiaomi, HomeWizard, Zwave, Amazon echo

User avatar
EddyG
Posts: 320
Joined: Monday 02 November 2015 6:54
Target OS: Raspberry Pi
Domoticz version: 4.9999
Location: Rhenen, Netherlands
Contact:

Re: updateWeatherSensors (yet another buienradar script)

Post by EddyG » Tuesday 01 May 2018 10:17

waaren wrote:
Monday 30 April 2018 21:43
Hi EddyG,

not quite sure what you propose. The "wind" device is already shown on both the temperature and the weather tab. If I mis-interpret your suggestion please let me know.
What I mean is that there exists a "wind temp chill" device in your case "wind Rotterdam"
These produce a device a in the Weather tab and a device in the Temperature tab, AND they both have the same name, AND the temp is a double with the Temp device already created.
It might be better to have a "Wind" device, a "Temp" device and a "Chill" (eg. Temp device wit the name Chill temp.)
So separate the Wind and Chill in 2 devices.
Regards,
Eddy

User avatar
EddyG
Posts: 320
Joined: Monday 02 November 2015 6:54
Target OS: Raspberry Pi
Domoticz version: 4.9999
Location: Rhenen, Netherlands
Contact:

Re: updateWeatherSensors (yet another buienradar script)

Post by EddyG » Tuesday 01 May 2018 10:59

EddyG wrote:
Friday 27 April 2018 19:14
I can not figure out why this does NOT work.

Code: Select all

    local function getUservars()
       require ('weatherSettings')
    end

    if not(pcall(getUservars)) then
But only this WORKS!

Code: Select all

require ('weatherSettings')
Anybody any idea :?:
Funny thing!
"if not(pcall(getUservars)) then" does NOT work, but "if pcall(getUservars) then" WORKS!
Regards,
Eddy

User avatar
EddyG
Posts: 320
Joined: Monday 02 November 2015 6:54
Target OS: Raspberry Pi
Domoticz version: 4.9999
Location: Rhenen, Netherlands
Contact:

Re: updateWeatherSensors (yet another buienradar script)

Post by EddyG » Tuesday 01 May 2018 11:04

DannyG wrote:
Monday 30 April 2018 23:39
just one request
barometer without decimals ;)
Rounded to 1 decimal, because that is the way it is used in the graphs.
Regards,
Eddy

DannyG
Posts: 3
Joined: Tuesday 17 April 2018 22:43
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: updateWeatherSensors (yet another buienradar script)

Post by DannyG » Tuesday 01 May 2018 21:40

EddyG wrote:
Tuesday 01 May 2018 11:04

Rounded to 1 decimal, because that is the way it is used in the graphs.
signDecimalsBaroDatabase = 2; -- Use significant decimals in barometer value (in database)
signDecimalsBaroDisplay = 0; -- Use significant decimals in barometer display


it's up to us ;)

User avatar
waaren
Posts: 1240
Joined: Tuesday 03 January 2017 15:18
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: updateWeatherSensors (yet another buienradar script)

Post by waaren » Tuesday 01 May 2018 23:07

EddyG wrote:
Tuesday 01 May 2018 10:17



It might be better to have a "Wind" device, a "Temp" device and a "Chill" (eg. Temp device wit the name Chill temp.)
So separate the Wind and Chill in 2 devices.
Sent you a PM with a link to a test version that adds the requested option.
Raspberry (debian stretch via berryboot on Synology DS916+) , Domoticz (almost) latest Beta, , dzVents 2.6, RFLink, RFXtrx433e, P1, Youless, Harmony, Hue, Yeelight, Xiaomi, HomeWizard, Zwave, Amazon echo

User avatar
EddyG
Posts: 320
Joined: Monday 02 November 2015 6:54
Target OS: Raspberry Pi
Domoticz version: 4.9999
Location: Rhenen, Netherlands
Contact:

Re: updateWeatherSensors (yet another buienradar script)

Post by EddyG » Wednesday 02 May 2018 13:50

I tested the seperate Chill temp and it works fine.
B.t.w. I changed in the database the wind/chill device from subtype 4 to subtype 1
Then you get a Wind only device, but domoticz is fine with the fact that the script is still sending the the extra temp values.
So now I got a converted (from Wind/Chill to Wind) device with the correct wind values and no extra Wind/Chill device in the Temperature tab.
And I got an extra Chill temperature device in the Temperature tab with only the Chill temperature next to the Temp/Hum device from Buienradar.

Perfect thanks. But please add some description to the scripts so Noobs can understand it too.

As for speed, it takes about 1,5 seconds to complete the scripts and processing the output from Buienradar.
Regards,
Eddy

User avatar
waaren
Posts: 1240
Joined: Tuesday 03 January 2017 15:18
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: updateWeatherSensors (yet another buienradar script)

Post by waaren » Wednesday 02 May 2018 18:40

Thanks for testing,

i will post the updated version later today.

If you comment out the devices you don't need/want, the script will not try to update those. And just delete the device you don't want anymore.
Raspberry (debian stretch via berryboot on Synology DS916+) , Domoticz (almost) latest Beta, , dzVents 2.6, RFLink, RFXtrx433e, P1, Youless, Harmony, Hue, Yeelight, Xiaomi, HomeWizard, Zwave, Amazon echo

User avatar
waaren
Posts: 1240
Joined: Tuesday 03 January 2017 15:18
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: updateWeatherSensors (yet another buienradar script)

Post by waaren » Wednesday 02 May 2018 20:53

New versions posted here Latest version 0.20180502

Use of setting file mandatory now.
Please find detailed information / explanation in files

History since last posting
======================
20180427 Added 5 and 10 day forecast device and information
20180429 Setting file mandatory now
20180429 Finished translations
20180429 Added location retrieval from domoticz settings
20180430 Adjusted Lux calculation
20180501 Get domoticzurl from system no longer required to give IP / Port in setting
20180502 Add option to separate windchill from wind device

Have Fun !
Raspberry (debian stretch via berryboot on Synology DS916+) , Domoticz (almost) latest Beta, , dzVents 2.6, RFLink, RFXtrx433e, P1, Youless, Harmony, Hue, Yeelight, Xiaomi, HomeWizard, Zwave, Amazon echo

User avatar
EdwinK
Posts: 1382
Joined: Sunday 22 January 2017 22:46
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Rhoon
Contact:

Re: updateWeatherSensors (yet another buienradar script)

Post by EdwinK » Wednesday 02 May 2018 21:49

Are JustWind and Windchill text devices or wind+temp+chill devices?
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | RFxcom | Dashticz V2

User avatar
waaren
Posts: 1240
Joined: Tuesday 03 January 2017 15:18
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: updateWeatherSensors (yet another buienradar script)

Post by waaren » Wednesday 02 May 2018 22:45

justwind is just a wind only device :D
windchil is just a temp only device
Raspberry (debian stretch via berryboot on Synology DS916+) , Domoticz (almost) latest Beta, , dzVents 2.6, RFLink, RFXtrx433e, P1, Youless, Harmony, Hue, Yeelight, Xiaomi, HomeWizard, Zwave, Amazon echo

User avatar
EddyG
Posts: 320
Joined: Monday 02 November 2015 6:54
Target OS: Raspberry Pi
Domoticz version: 4.9999
Location: Rhenen, Netherlands
Contact:

Re: updateWeatherSensors (yet another buienradar script)

Post by EddyG » Thursday 03 May 2018 6:58

I get this error a few times a day.

Code: Select all

2018-05-02 22:40:03.477 Error: Error opening url: https://gadgets.buienradar.nl/data/raintext?lat=51.96&lon=5.56
2018-05-02 22:40:04.139 Error: dzVents: Error (2.4.5): WUS: Problem with trigger (not OK). Check it outError: 7103862
It seems that buienrader does not respond.
Do others get this error too, or is it my Internet connection?
Regards,
Eddy

User avatar
EdwinK
Posts: 1382
Joined: Sunday 22 January 2017 22:46
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Rhoon
Contact:

Re: updateWeatherSensors (yet another buienradar script)

Post by EdwinK » Thursday 03 May 2018 8:01

waaren wrote:
Wednesday 02 May 2018 22:45
justwind is just a wind only device :D
windchil is just a temp only device
Thanks.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | RFxcom | Dashticz V2

User avatar
waaren
Posts: 1240
Joined: Tuesday 03 January 2017 15:18
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: updateWeatherSensors (yet another buienradar script)

Post by waaren » Thursday 03 May 2018 9:19

EddyG wrote:
Thursday 03 May 2018 6:58
I get this error a few times a day.

Code: Select all

2018-05-02 22:40:03.477 Error: Error opening url: https://gadgets.buienradar.nl/data/raintext?lat=51.96&lon=5.56
2018-05-02 22:40:04.139 Error: dzVents: Error (2.4.5): WUS: Problem with trigger (not OK). Check it outError: 7103862
It seems that buienrader does not respond.
Do others get this error too, or is it my Internet connection?
I see the same sometimes but luckily not very often.

Code: Select all

2018-04-30 23:45:04.724  Error: Error opening url: https://gadgets.buienradar.nl/data/raintext?lat=51.xx&lon=4.xx
2018-05-01 11:22:20.232  Error: Error opening url: https://gadgets.buienradar.nl/data/raintext?lat=51.xx&lon=4.xx
2018-05-01 11:31:08.313  Error: Error opening url: https://gadgets.buienradar.nl/data/raintext?lat=51.xx&lon=4.xx
2018-05-01 13:17:04.420  Error: Error opening url: https://gadgets.buienradar.nl/data/raintext?lat=51.xx&lon=4.xx
2018-05-01 21:05:08.098  Error: Error opening url: https://gadgets.buienradar.nl/data/raintext?lat=51.xx&lon=4.xx
2018-05-02 08:00:14.741  Error: Error opening url: https://gadgets.buienradar.nl/data/raintext?lat=51.xx&lon=4.xx
2018-05-02 14:00:15.068  Error: Error opening url: https://gadgets.buienradar.nl/data/raintext?lat=51.xx&lon=4.xx
Raspberry (debian stretch via berryboot on Synology DS916+) , Domoticz (almost) latest Beta, , dzVents 2.6, RFLink, RFXtrx433e, P1, Youless, Harmony, Hue, Yeelight, Xiaomi, HomeWizard, Zwave, Amazon echo

poudenes
Posts: 598
Joined: Wednesday 08 March 2017 10:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: updateWeatherSensors (yet another buienradar script)

Post by poudenes » Thursday 03 May 2018 23:12

Can you also post the new scripts in the first post between "" :)
download zip, unzip, copy, paste instead of copy paste ... last option is faster hehe
RPi3 with OSMC - RPi3 with Domoticz - Dashticz - MiLight - Nanolead Aurora - KaKu - Logitech Hamony - Nest - RFLink

User avatar
waaren
Posts: 1240
Joined: Tuesday 03 January 2017 15:18
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: updateWeatherSensors (yet another buienradar script)

Post by waaren » Friday 04 May 2018 0:30

poudenes wrote:
Thursday 03 May 2018 23:12
Can you also post the new scripts in the first post between "" :)
download zip, unzip, copy, paste instead of copy paste ... last option is faster hehe
Unfortunately the script is now too big to post it like that. The Forum rules do not allow it
Raspberry (debian stretch via berryboot on Synology DS916+) , Domoticz (almost) latest Beta, , dzVents 2.6, RFLink, RFXtrx433e, P1, Youless, Harmony, Hue, Yeelight, Xiaomi, HomeWizard, Zwave, Amazon echo

poudenes
Posts: 598
Joined: Wednesday 08 March 2017 10:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: updateWeatherSensors (yet another buienradar script)

Post by poudenes » Friday 04 May 2018 11:07

aha thats why :D ok thanks!

(offtopic: new email with log files lux/solar send also this morning)
RPi3 with OSMC - RPi3 with Domoticz - Dashticz - MiLight - Nanolead Aurora - KaKu - Logitech Hamony - Nest - RFLink

User avatar
EdwinK
Posts: 1382
Joined: Sunday 22 January 2017 22:46
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Rhoon
Contact:

Re: updateWeatherSensors (yet another buienradar script)

Post by EdwinK » Friday 04 May 2018 16:19

Code: Select all

dzVents: Error (2.4.5): WUS: Problem with trigger (not OK). Check it outError: 28
What's going on?
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | RFxcom | Dashticz V2

User avatar
waaren
Posts: 1240
Joined: Tuesday 03 January 2017 15:18
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: updateWeatherSensors (yet another buienradar script)

Post by waaren » Friday 04 May 2018 16:49

Hi Edwink,

Error 28 points in the direction of a server timeout.
Do you encounter this error very often or once in a while ?

If more then once, I would appreciate it if you could collect them (including time / date) and report back.

Thanks in advance.
Raspberry (debian stretch via berryboot on Synology DS916+) , Domoticz (almost) latest Beta, , dzVents 2.6, RFLink, RFXtrx433e, P1, Youless, Harmony, Hue, Yeelight, Xiaomi, HomeWizard, Zwave, Amazon echo

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest