posting data
Moderator: leecollings
Re: posting data
Strange thing is that I’m losing all my parameters.
- habahabahaba
- Posts: 190
- Joined: Saturday 18 March 2023 14:44
- Target OS: Windows
- Domoticz version: 2024.4
- Contact:
Re: posting data
So... may be its Docker problem?
Re: posting data
Don’t know. If I do this from the Docker/Domoticz bash, that does work:
Code: Select all
curl -d "param1=value1¶m2=value2" -X POST http://localhost:3000/data
- habahabahaba
- Posts: 190
- Joined: Saturday 18 March 2023 14:44
- Target OS: Windows
- Domoticz version: 2024.4
- Contact:
Re: posting data
so you can use
domoticz.executeShellCommand('curl ...')
domoticz.executeShellCommand('curl ...')
Re: posting data
But then I would still be where I don’t want to be. Think I’ll let this rest for now as I’m also looking into a Python option for me endgoal.
- waltervl
- Posts: 5148
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: posting data
There is also something like httplink datapush https://wiki.domoticz.com/HttpLink
HttpLink uses the a http(s) stream to push data from Domoticz devices to a server accepting http requests (GET, POST, PUT). The function can be accessed from the setup menu: setup > more options > data push > HTTP.
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
Who is online
Users browsing this forum: Google [Bot] and 1 guest