I am builing a test that gets the info from a json reply
The http request result in this output
http get command gives :
Code: Select all
{"code":0,"msg":"success","time":"1683896070","data":{"degrees":{"celsius":{"time":"1683892112","unit":"","value":"6"}}}}
Code: Select all
{
"code":0,
"msg":"success",
"time":"1683892176",
"data":
{
"degrees":
{
"celsius":
{
"time":"1683892112",
"unit":"",
"value":"6"
}
}
}
}
We just want to check is the value is not below 1 and not higher as 10
i tried to use this help but i did not manage to get it working
https://www.ks-soft.net/cgi-bin/phpBB/v ... light=json
i played with the Tune up reply value but didn't succeed.
i tried : [('%data%' getword 1 == 'value') and ('%data%' getnumber 1 >= 9)]
I hope you can help me out here.
many thanks in advance
m
Code: Select all