Good morning,
I got my new homey (2023) this week and currently, I´m checking, which apps are running and which apps are not running, before I start the migration.
I query the oillevel from an API with the HTTP request-app. I have learned, there are some other possibilities with logic & advanced flows.
I tried the “new” way, but it does not work.
I assume, the format of the answer is the problem - there are backslashes in the answer but I have no idea to fix the problem.
The answer of the post:
“{"DeviceResponse":[{"DeviceID":"5163306","DeviceName":"Gerhard Berger","Medium":"Heizöl","LastUpdate":"8/2/2023 8:00:02 AM","MaxVolume":"980","ActualVolume":"850","ActualVolumePercent":"87","Battery":"2.9","Temperature":"71","MessData":"39"}]}”
Do you have an idea, how I can handle this issue?
The interessting thing - in the post, the backslashes are not displayed:
The \ indicates the next " is a part of the data and not a delimiter (escape sequence). They might just be the way the data is formatted so it shows in the time line.
Ok, thanks!
`till now, I have no script in place - so a new experience.
That means, I do the http-call, afterwards I call a script, which insert the square brackets, write the result in the text variable and then I parse it or I assume, it´s also possible to do all in a script.
Maybe you have an script example for me - would be great!