FUXA icon indicating copy to clipboard operation
FUXA copied to clipboard

[FEATURE]Choose device tags support from JSON

Open gxherror opened this issue 1 year ago • 2 comments

I get the JSON from ohter platform using WebAPI device, the JSON format is unable to change, I want the tag like this: temperature->25, version->1.0, but it don't work, how can I do this?

{
    "temperature": [
        {
            "ts": 1701939648842,
            "value": "25"
        }
    ],
    "version": [
        {
            "ts": 1701939648842,
            "value": "1.0"
        }
    ]
}

my version:FUXA-1.1.15

gxherror avatar Dec 07 '23 09:12 gxherror

read how to use JSON.parse then use a script in edit project to manipulate the data into the tags you want ... image

lewsut avatar Dec 08 '23 10:12 lewsut

thanks, i will try this

gxherror avatar Dec 08 '23 10:12 gxherror

I assume the issue has been resolved in the meanwhile. I'm therefore going to close this issue.

unocelli avatar May 22 '24 19:05 unocelli