Page 1 of 1

How to Modify Data in DATA-PUSH HTTP?

Posted: Sunday 02 June 2024 7:27
by andrewcarsten17
Hello,

I want to send data from a power sensor to a website using Data-Push-HTTP. On the command line, it works with the following command:

Code: Select all

wget --post-data '{"watt":120}' https://website.de
You can see how I tried it in the attached picture, but it does not work.
  • Is there a way to debug how Domoticz creates the URL to ensure it is correct?download lagu
  • The second problem is that the value %v is a number like 123.12, but the website only accepts 123.
  • Is there a way to manipulate the data before sending it?
In the log, I can only see:

Code: Select all

HttpLink: sending global variable Watt with value: -256.00
HttpLink: response Unexpected error occurred.
Thanks for your help.

Sorry about the spaces, but it seems URLs and numbers with dots are not allowed here.
issues.jpg
issues.jpg (85.89 KiB) Viewed 418 times

Re: How to Modify Data in DATA-PUSH HTTP?

Posted: Sunday 02 June 2024 22:48
by waltervl