Hi,
I don't succeed in figuring out my problem... I want to enable/disable a timer from a LUA script...
If I use on the command line curl "http://username:[email protected]:8 ... r&idx=xxxx", I got an OK back.
However when in the LUA script I use commandArray['OpenURL'] = 'http://username:[email protected]:8 ... r&idx=xxxx', I receive always an error Error opening url: "http://username:[email protected]:8 ... r&idx=xxxx".
Any help?
Domoticz REST API with LUA OpenURL
Moderator: leecollings
- waltervl
- Posts: 5148
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Domoticz REST API with LUA OpenURL
Is the IP addres of the server in the trusted networks setting? As a lua call will be called from the server.
Or perhaps if you use a Docker environment you have to use the internal IP adress of docker.
Or perhaps if you use a Docker environment you have to use the internal IP adress of docker.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 100
- Joined: Thursday 03 November 2016 10:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Domoticz REST API with LUA OpenURL
Hi Walter,
if I use it with the command prompt ("curl") on the server where Domoticz is running, it works.
That's why I am a bit frustrated not finding the reason...
F
if I use it with the command prompt ("curl") on the server where Domoticz is running, it works.
That's why I am a bit frustrated not finding the reason...
F
-
- Posts: 100
- Joined: Thursday 03 November 2016 10:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Domoticz REST API with LUA OpenURL
If i am using the local host IP address, it works.
http://username:[email protected]:8080 ... r&idx=xxxx.
Topic closed.
http://username:[email protected]:8080 ... r&idx=xxxx.
Topic closed.
Who is online
Users browsing this forum: No registered users and 1 guest