Howto modify data in DATA-PUSH HTTP?
Posted: Wednesday 20 December 2023 13:11
Hello
I want to send some data from an power sensor to a website using Data-Push-HTTP.
On tne commandline it works with wget --post-data '{"watt":120}' https :// webseite . de
How I tried it you can see in the attached pic.
But it does not work.
* Is there a way to debug the way domoticz creates the URL, to see if it is correct?
* the second problem is, the Value %v is a number like 123 . 12, but the website only accept 123
* Is there a way to manipulate the data before sending them?
In the Log i only can see:
HttpLink: sending global variable Watt with value: -256 . 00
HttpLink: response Unexpected error occurred.
Thanks for help.
Sorry about the blanks, but it seems not to be allowed to send urls und numer with dots.
I want to send some data from an power sensor to a website using Data-Push-HTTP.
On tne commandline it works with wget --post-data '{"watt":120}' https :// webseite . de
How I tried it you can see in the attached pic.
But it does not work.
* Is there a way to debug the way domoticz creates the URL, to see if it is correct?
* the second problem is, the Value %v is a number like 123 . 12, but the website only accept 123
* Is there a way to manipulate the data before sending them?
In the Log i only can see:
HttpLink: sending global variable Watt with value: -256 . 00
HttpLink: response Unexpected error occurred.
Thanks for help.
Sorry about the blanks, but it seems not to be allowed to send urls und numer with dots.