Page 1 of 1

why is 127.0.0.1 not working?

Posted: Sunday 12 February 2023 10:46
by renerene
In HAbridge earlier and now when trying to update history value of sensor, I find that address 127.0.0.1 is not working. When i replace it with the static IP address of my RPI command, all is ok

when running command dz.devices(1987).updateHistory, it results in this error in the domoticz log:
2023-02-12 10:27:19.955 Error: Error opening url: http: //127.0.0.1:8080/json.htm?type=command&param=udevice&idx=1987&nvalue=0&svalue=19.70122;19.70122;2023-02-12+22%3A00%3A00


when I call the same comnmand from my desktop computer in a web browser and use the static address, result is ok:
{
"status" : "OK",
"title" : "Update Device"
}

Because it is baked into the dzVents command, i cannot use the HABridge workaround to replace all 127.0.0.1 bij 192.168.0.123
Why is my 127.0.0.1 on the rpi different than it's static network address?
Any things I can check on my rpi?

Re: why is 127.0.0.1 not working?

Posted: Sunday 12 February 2023 10:50
by willemd
In "settings", "system" tab did you include 127.0.0.1 in the local network ?

Re: why is 127.0.0.1 not working?

Posted: Sunday 12 February 2023 10:56
by renerene
willemd wrote: Sunday 12 February 2023 10:50 In "settings", "system" tab did you include 127.0.0.1 in the local network ?
this is my setting of "Local Networks (no username/password):"

Code: Select all

127.0.0.1;192.168.0.*;192.168.0.100
Also I should mention: command has been working before, but I did a restart yesterday. Seems like after same reboots 127.0.0.1 is not working

Re: why is 127.0.0.1 not working?

Posted: Sunday 12 February 2023 11:19
by willemd
Is it a copy and paste error or is there a space in between http: and //127etc ?

Re: why is 127.0.0.1 not working?

Posted: Sunday 12 February 2023 12:01
by renerene
willemd wrote: Sunday 12 February 2023 11:19 Is it a copy and paste error or is there a space in between http: and //127etc ?
is was a copy/paste.
I have removed the .100 adrress at the end (which was double becuase of wildcard). Seems to work now. Thanks