I downloaded the ideAlarm scripts and tried to get them working. Noticed some errors in the logs that URLs could not be opened. When I check the scripts, the calls are constructed using the following setting:
domoticz.settings['Domoticz url']
This seems to be set to "127.0.0.1:80" which is not where my Domoticz install is running. So now my question is: where is this variable being set and why is it at the wrong value? I'm running everything under SSL by default to port 80 isn't even open.
Where does the "domoticz url" setting come from?
Moderator: leecollings
- EdwinK
- Posts: 1820
- Joined: Sunday 22 January 2017 21:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Rhoon
- Contact:
Re: Where does the "domoticz url" setting come from?
The IP address 127.0.0.1 is a special-purpose IPv4 address called localhost or loopback address. All computers use this address as their own to communicate with it self.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
-
Hobbybob
Re: Where does the "domoticz url" setting come from?
Agreed, the 127.0.0.1-part should be okay, but I think the standard Domoticz-port is 8080 (at least it is in my installation). So it should be "127.0.0.1:8080" I think.
-
dannybloe
- Posts: 1355
- Joined: Friday 29 August 2014 11:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Ermelo
- Contact:
Re: Where does the "domoticz url" setting come from?
That's weird indeed. I'd expect it to be 8080 (by default). dzVents gets that value from the event-system. Reading the C++ code it seems it gets it from the settings: our_listener_port = web_settings.listening_port;
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
-
jsiegmund
- Posts: 33
- Joined: Sunday 14 May 2017 21:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Where does the "domoticz url" setting come from?
Yes, that part I know. The problem is not the loopback address, it's the wrong port number.EdwinK wrote: Sunday 17 September 2017 21:45 The IP address 127.0.0.1 is a special-purpose IPv4 address called localhost or loopback address. All computers use this address as their own to communicate with it self.
-
jsiegmund
- Posts: 33
- Joined: Sunday 14 May 2017 21:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Where does the "domoticz url" setting come from?
Ok. And where does that settings object come from? Is it the stuff you specify in the domoticz.sh init script, or are they stored elsewhere? I'm running https only on 443, port 80 is not in use so I would not know where it got that. I could run it on 8080 as well just to be sure though. Also wonder what happens when it would call https://localhost since the ssl cert is not for localhost but for the FQDN. That should not work to begin with.dannybloe wrote: Monday 18 September 2017 7:39 That's weird indeed. I'd expect it to be 8080 (by default). dzVents gets that value from the event-system. Reading the C++ code it seems it gets it from the settings: our_listener_port = web_settings.listening_port;
Who is online
Users browsing this forum: No registered users and 1 guest