How to Modify Data in DATA-PUSH HTTP?

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
andrewcarsten17
Posts: 1
Joined: Sunday 02 June 2024 7:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

How to Modify Data in DATA-PUSH HTTP?

Post 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 413 times
User avatar
waltervl
Posts: 5149
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post by waltervl »

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 0 guests