Page 2 of 2
Re: dZvents broken with 3.9165
Posted: Friday 06 April 2018 11:49
by dannybloe
devros wrote: Friday 06 April 2018 11:21
any idea what could be this problem?
when tried setNightMode(), decreaseBrightness(), increaseBrightness()
i get
Code: Select all
EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2018-04-04 23:05:32.730 Error: Error opening url: http://127.0.0.1:8050/json.htm?param=nightlight&type=command&idx=514
url link looks ok when i use it manually with changed IP adress it works
in domoticz preferences is set 192.168.3.*,127.0.0.1
any idea whats wrong ?
its dzVents bug, domoticz problem, or something on my side

thanks
Changed IP address?? What does that mean?
Re: dZvents broken with 3.9165
Posted: Friday 06 April 2018 12:19
by devros
my domoticz ip is 192.168.3.167, so from other computer url
http://192.168.3.167:8050/json.htm?para ... nd&idx=514
works without problem
on, off switches on RGB lamp works without problem in dzVents, but when i use one of these functions setNightMode(), decreaseBrightness(), increaseBrightness()
its not working in dzvents... (2018-04-04 23:05:32.730 Error: Error opening url: .... ) message, weird is that url looks ok
Re: dZvents broken with 3.9165
Posted: Friday 06 April 2018 12:57
by dannybloe
You have to make sure that 127.0.0.1 is allowed to access anonymous access in domoticz settings (under Local Networks). Then you should be able to use that same URL in a browser just like your 192.168... address. If not then something else is wrong.
Re: dZvents broken with 3.9165
Posted: Friday 06 April 2018 13:11
by devros
yes, i already checked that...
in Domoticz / Local Networks:
192.168.3.*,127.0.0.*
but still have
Code: Select all
Error: Error opening url: http://192.168.3.187:8050/json.htm?param=nightlight&type=command&idx=514)-- svetlo.setNightMode
now noticed one thing
cant be round bracket after 514 problem?
Re: dZvents broken with 3.9165
Posted: Friday 06 April 2018 13:16
by dannybloe
Please try the
http://127.0.0.1:8050/json.htm?param=ni ... nd&idx=514 in the browser and do not change anything in dzVents runtime code.
The url you see in that error line is probably viewed in the log visible in the browser. Somehow that tries to recognize special characters and replace that. Better to look at the command-line logs and see if the url is not malformed there.
Re: dZvents broken with 3.9165
Posted: Friday 06 April 2018 13:31
by devros
hmmm but on domoticz server i have only command line with remote SSH access, so i cant test webpage url. Maybe with some terminal command ?
Re: dZvents broken with 3.9165
Posted: Friday 06 April 2018 13:35
by dannybloe
try with curl or wget
Re: dZvents broken with 3.9165
Posted: Friday 06 April 2018 13:41
by devros
dannybloe wrote: Friday 06 April 2018 13:35
try with curl or wget
with wget
Code: Select all
HTTP request sent, awaiting response... 401 Unauthorized
Username/Password Authentication Failed.
so thats the problem...
but domoticz url should work without pass&login on localhost if i have 192.168.3.*,127.0.0.* in domoticz/ local networks?
and why on/off functions works without problem? I saw some auth. code changes in github recently maybe its related ?
thanks
Re: dZvents broken with 3.9165
Posted: Friday 06 April 2018 13:58
by dannybloe
On/Off doesn't use use http calls because there is a direct interface back to Domoticz. But you should enter 127.0.0.1 without the * I believe.
Re: dZvents broken with 3.9165
Posted: Friday 06 April 2018 14:18
by devros
yay problem solved... it was typo
in domoticz local networks i used ¨,¨ instead of ¨;¨ - * work without problem
really sorry.. i should buy glasses
thanks