How to sent numeric converted to string

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
BartSr
Normal user
Posts: 115
Joined: 27 Sep 2019, 17:45

How to sent numeric converted to string

#1 Post by BartSr » 22 Jan 2023, 23:01

Hi!,

To sent textdata from easpeasy to domoticz next syntax is valid.

on CO2#PPM do
SendToHTTP ,192.168.2.100,8080,/json.htm?param=udevice&type=command&idx=909&svalue=SomeData
endon

Domoticz will display "SomeData"in a virtual text-device.

Now I'd like to sent numeric value (content of a variable).
Is there a kind of conversuin formula to do so eg num2string(numericvar)

TIA
-Bart

User avatar
Ath
Normal user
Posts: 3417
Joined: 10 Jun 2018, 12:06
Location: NL

Re: How to sent numeric converted to string

#2 Post by Ath » 22 Jan 2023, 23:23

The documentation on Rules has most/all info and a lot of examples
For the values of a task you can use the [taskname#valuename] syntax (square brackets included!), optional formatting is also documented at that link, for system variables the %sysname% syntax can be used.

Domoticz expects most values via svalue, but for some the nvalue should be set.
/Ton (PayPal.me)

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 29 guests