Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Text script or JSON creator
#1
Hello to all. New to Virtuino IoT.

I have a question on how to use the test script or Json creator widget.

My JSON text is the following:

{
"CID":
{
"deviceID":"SN23030001"
},
"measurments":
{
"weight":{"value":$C1_V1,"valid":$C1_V5},
"tempe1":{"value":23,"valid":true},
"tempe2":{"value":14,"valid":true}
},
"status":
{
"power":
{
"Battery":$C1_V2,
"mains":$C1_V4,
"devicePower":$C1_V3},
"health":
{
"code":0
}}}

I made it as the examples says so.
I selected the OUTPUT variable to be one of my MQTT connection (e.g V10)
and now I need to create / activate this function of JSON->Variable

There is no input or enable variable to do so.
How can I have the final JSON text to my V10 variable to send it via MQTT?

Thank you.
Reply


Messages In This Thread
Text script or JSON creator - by samxhot - 04-05-2023, 04:42 PM
RE: Text script or JSON creator - by iliaslamprou - 04-05-2023, 07:45 PM
RE: Text script or JSON creator - by samxhot - 04-06-2023, 06:17 AM
RE: Text script or JSON creator - by iliaslamprou - 04-06-2023, 09:44 PM
RE: Text script or JSON creator - by samxhot - 04-08-2023, 11:53 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)