Hi,
go to the "Http Request" settings.
Select:
input emulator V0 (The request will be executed every time the V0==1)
Output emulator V1 (This variable will store the http json request)
Add the script "Json to variable converter". Go to the settings:
Input emulator V1
Output emulator V2
Value json path: Val
Save
Add a button for emulator V0
Add a "Value display" for V1
Add a "Value display" for V2
Reload the project to restart the emulator
Click on the button to set the V0 to 1
The request will be executed
The http response will be stored in the variable V1
The converter will extract the value of the field Val to V2
You have to see the results to the value displays.
(09-07-2023, 10:38 PM)iliaslamprou Wrote: Hi,
go to the "Http Request" settings.
Select:
input emulator V0 (The request will be executed every time the V0==1)
Output emulator V1 (This variable will store the http json request)
Add the script "Json to variable converter". Go to the settings:
Input emulator V1
Output emulator V2
Value json path: Val
Save
Add a button for emulator V0
Add a "Value display" for V1
Add a "Value display" for V2
Reload the project to restart the emulator
Click on the button to set the V0 to 1
The request will be executed
The http response will be stored in the variable V1
The converter will extract the value of the field Val to V2
You have to see the results to the value displays.
I have tested. It works fine
Unfortunately it doesn't work, I already had the result, the variable I'm looking for this "Val"
It must have something to do with the square brackets.
I send you per Email my attatch png
in the png is attached are my results for Val and sensors in the lower field