posting data

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

Moderator: leecollings

vespino
Posts: 48
Joined: Tuesday 05 August 2014 14:41
Target OS: Linux
Domoticz version:

Re: posting data

Post by vespino »

Strange thing is that I’m losing all my parameters.
User avatar
habahabahaba
Posts: 190
Joined: Saturday 18 March 2023 14:44
Target OS: Windows
Domoticz version: 2024.4
Contact:

Re: posting data

Post by habahabahaba »

So... may be its Docker problem?
vespino
Posts: 48
Joined: Tuesday 05 August 2014 14:41
Target OS: Linux
Domoticz version:

Re: posting data

Post by vespino »

Don’t know. If I do this from the Docker/Domoticz bash, that does work:

Code: Select all

curl -d "param1=value1&param2=value2" -X POST http://localhost:3000/data
User avatar
habahabahaba
Posts: 190
Joined: Saturday 18 March 2023 14:44
Target OS: Windows
Domoticz version: 2024.4
Contact:

Re: posting data

Post by habahabahaba »

so you can use
domoticz.executeShellCommand('curl ...')
vespino
Posts: 48
Joined: Tuesday 05 August 2014 14:41
Target OS: Linux
Domoticz version:

Re: posting data

Post by vespino »

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.
HvdW
Posts: 504
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Re: posting data

Post by HvdW »

What exactly is your end goal?
Bugs bug me.
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: posting data

Post by waltervl »

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

Who is online

Users browsing this forum: No registered users and 1 guest