dZvents broken with 3.9165

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: dZvents broken with 3.9165

Post 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 :D
thanks
Changed IP address?? What does that mean?
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
devros
Posts: 183
Joined: Saturday 29 October 2016 20:55
Target OS: -
Domoticz version:
Contact:

Re: dZvents broken with 3.9165

Post 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
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: dZvents broken with 3.9165

Post 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.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
devros
Posts: 183
Joined: Saturday 29 October 2016 20:55
Target OS: -
Domoticz version:
Contact:

Re: dZvents broken with 3.9165

Post 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?
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: dZvents broken with 3.9165

Post 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.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
devros
Posts: 183
Joined: Saturday 29 October 2016 20:55
Target OS: -
Domoticz version:
Contact:

Re: dZvents broken with 3.9165

Post 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 ?
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: dZvents broken with 3.9165

Post by dannybloe »

try with curl or wget
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
devros
Posts: 183
Joined: Saturday 29 October 2016 20:55
Target OS: -
Domoticz version:
Contact:

Re: dZvents broken with 3.9165

Post 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
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: dZvents broken with 3.9165

Post 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.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
devros
Posts: 183
Joined: Saturday 29 October 2016 20:55
Target OS: -
Domoticz version:
Contact:

Re: dZvents broken with 3.9165

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest