On September 10, 2020 at 11:33, Lyndel McGee said...
A quick inspection of your code visually looks good.
Yes, you can use that JSON library file. It loads faster than the one you download from Douglas Crockford's github site.
Note that the processResponse I provided above is only an example. You will need to run the request from a web browser to be able to determine what devices are returned and the conditions you will need to create to assign your labels.
Lyndel
Lyndel,
I didn't get it running.
The request from my browser works.
After starting the Pronto script console I get :
ProntoScript error: SyntaxError: missing ( before formal parameters
Offending page script: Tag: 'HOME'
Offending line #8: "{
"
Where is the issue ?
Fischi