yep, what waaren says. I prefer to not have to install all kinds of extra stuff ;-) So this script should be working out of the box with domoticz with 1 exception that curl is required, since not all options for http calls are covered by dzVents.openUrl
fyi I use curl to avoid redirects (dzVents ...
Search found 15 matches
- Thursday 27 June 2019 11:06
- Forum: dzVents
- Topic: dzVents script Toon for domoticz [Solved]
- Replies: 7
- Views: 4202
- Wednesday 26 June 2019 9:15
- Forum: dzVents
- Topic: dzVents script Toon for domoticz [Solved]
- Replies: 7
- Views: 4202
dzVents script Toon for domoticz [Solved]
Note: This is for a regular paid Toon & Eneco subscription, won't work for a hacked Toon.
I created a dzVents script for Toon. Just sharing here. It's the basic setup pulling the status info (p1 info, gasusage and thermostatinfo) from the toon api, and adding functionality to switch on/off ...
I created a dzVents script for Toon. Just sharing here. It's the basic setup pulling the status info (p1 info, gasusage and thermostatinfo) from the toon api, and adding functionality to switch on/off ...
- Sunday 03 March 2019 15:00
- Forum: Other questions and discussions
- Topic: Error ToonThermostat
- Replies: 291
- Views: 54738
Re: Error ToonThermostat
Anybody knows what's going on here? domoticz crashes when using this toonapilib4domoticz??
When adding toonapilib & toonapilib4domoticz domoticz crashes with segmentation error ..
Python 3.6.8 on voidlinux rpi2, domoticz beta
Tested with toonapilib (without domoticz), that is fine. Just integration ...
When adding toonapilib & toonapilib4domoticz domoticz crashes with segmentation error ..
Python 3.6.8 on voidlinux rpi2, domoticz beta
Tested with toonapilib (without domoticz), that is fine. Just integration ...
- Monday 09 April 2018 20:24
- Forum: LUA
- Topic: buienradar lua script
- Replies: 100
- Views: 29423
Re: buienradar lua script
It would also be nice if you could add the following functionality (rain perception) into the script
http://www.domoticz.com/forum/viewtopic.php?t=8478&start=20
For example you specify the window to be 15 minutes, how much change of rain there is there in the next 15 minutes, and put this in a ...
- Wednesday 04 April 2018 20:17
- Forum: LUA
- Topic: buienradar lua script
- Replies: 100
- Views: 29423
Re: buienradar lua script
latest version of script:
-- BuienRadar Module
--
-- curl in os required!!
-- create dummy text device from dummy hardware 'Buien Radar'
-- create dummy rain sensor from dummy hardware 'BuienRadarMeter'
-- create dummy switch from dummy hardware for triggering screens etc based on rain
-- add as ...
-- BuienRadar Module
--
-- curl in os required!!
-- create dummy text device from dummy hardware 'Buien Radar'
-- create dummy rain sensor from dummy hardware 'BuienRadarMeter'
-- create dummy switch from dummy hardware for triggering screens etc based on rain
-- add as ...
- Wednesday 04 April 2018 20:14
- Forum: LUA
- Topic: buienradar lua script
- Replies: 100
- Views: 29423
Re: buienradar lua script
@nf999: If I try to use an other name for "local myBuienRadarDevice='Buien Radar'" i get an error: Error: EventSystem: in /home/pi/domoticz/scripts/lua/script_time_buienradar.lua: /home/pi/domoticz/scripts/lua/script_time_buienradar.lua:129: attempt to concatenate field '?' (a nil value)
I wanna ...
I wanna ...
- Monday 02 April 2018 16:01
- Forum: LUA
- Topic: buienradar lua script
- Replies: 100
- Views: 29423
Re: buienradar lua script
- Saturday 31 March 2018 21:26
- Forum: LUA
- Topic: buienradar lua script
- Replies: 100
- Views: 29423
Re: buienradar lua script
is no real problem, although it's blocking the event system for this period I think. The number of repetitions is however. the script uses a curl command with 5 secs timeout, to ensure minimum errors but maximum result ..
local command = "curl --max-time 5
Sometimes the call to buienradar seems ...
local command = "curl --max-time 5
Sometimes the call to buienradar seems ...
- Friday 23 March 2018 17:01
- Forum: LUA
- Topic: buienradar lua script
- Replies: 100
- Views: 29423
Re: buienradar lua script
The url for buienradar has changed .. update your script with:
local command = "curl --max-time 5 -s 'http://gpsgadget.buienradar.nl/data/raintext?lat=" .. lat .. "&lon=" .. lon .. "'"
I also added detection to at least log when the script can't parse the curl output.
full script now ...
- Friday 23 March 2018 16:48
- Forum: LUA
- Topic: Sharing : Afval kalendar in text sensor
- Replies: 348
- Views: 65968
Re: Sharing : Afval kalendar in text sensor
Is there a way to test the script beforehand? I've made the dummy sensor last week and copied your script to LUA and activated it. I had to wait a week to see if it was working (because tuesday is garbage day). I saw some logging, but no message was sent. To bad I had to reboot the system and now ...
- Saturday 17 February 2018 17:07
- Forum: LUA
- Topic: buienradar lua script
- Replies: 100
- Views: 29423
Re: buienradar lua script
did it improve? Looks like the curl call times out??? try the curl command from commandline? see what happens?
uncomment the line:
and run the commando from cli on your pc.
uncomment the line:
Code: Select all
-- print("commando: " .. commando)- Saturday 10 February 2018 8:53
- Forum: LUA
- Topic: Sharing : Afval kalendar in text sensor
- Replies: 348
- Views: 65968
Re: Sharing : Afval kalendar in text sensor
- Monday 05 February 2018 19:11
- Forum: LUA
- Topic: Sharing : Afval kalendar in text sensor
- Replies: 348
- Views: 65968
Re: Sharing : Afval kalendar in text sensor
not really. Can you verify the dummy text sensor in devices tab?
mine shows as:
Hardware: Dummy
Name: Afval Kalender
Type: General
SubType: Text
and ;-)
Data: vandaag: Restafval woensdag 07 februari: Plastic, Metalen en Drankkartons
Only reason to not update is when the text sensor already has ...
mine shows as:
Hardware: Dummy
Name: Afval Kalender
Type: General
SubType: Text
and ;-)
Data: vandaag: Restafval woensdag 07 februari: Plastic, Metalen en Drankkartons
Only reason to not update is when the text sensor already has ...
- Saturday 03 February 2018 9:54
- Forum: LUA
- Topic: buienradar lua script
- Replies: 100
- Views: 29423
buienradar lua script
based on a lot of ideas from this forum i recreated a lua only (no dzvents no python) buienradar script, to add a weather rain device showing the rain based on buienradar, rain expected in a dummy text sensor and a switch to use in sunscreen scripts.
The script does require curl, but that's all. If ...
The script does require curl, but that's all. If ...
- Saturday 03 February 2018 9:37
- Forum: LUA
- Topic: Sharing : Afval kalendar in text sensor
- Replies: 348
- Views: 65968
Re: Sharing : Afval kalendar in text sensor
I recreated the script to do less parsing in lua, added timeouts to the get url, repeat if afvalwijzer get fails and send a reminder in the morning. Now only when afvalwijzer fails to respond the script goes over the 10secs and you get a warning in the log ;-)
Just for sharing since its based on ...
Just for sharing since its based on ...