Page 2 of 2
Re: posting data
Posted: Saturday 21 December 2024 15:03
by vespino
Strange thing is that I’m losing all my parameters.
Re: posting data
Posted: Sunday 22 December 2024 13:05
by habahabahaba
So... may be its Docker problem?
Re: posting data
Posted: Sunday 22 December 2024 15:15
by vespino
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
Re: posting data
Posted: Sunday 22 December 2024 19:37
by habahabahaba
so you can use
domoticz.executeShellCommand('curl ...')
Re: posting data
Posted: Sunday 22 December 2024 22:40
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.
Re: posting data
Posted: Sunday 22 December 2024 23:04
by HvdW
What exactly is your end goal?
Re: posting data
Posted: Sunday 22 December 2024 23:33
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.