Forums : REST API and the GUI....
This page last changed on Feb 10, 2014 by ptruman.
Here is an interesting use case question...
With OR, you can have multiple "panels" - and I like that idea - it allows support for various devices/screen sizes, or so you can provide some panels with a restricted/extended featureset.
However, at the moment, I have "one" panel defined, and am using it on two devices (Nexus 7 and Nexus 4 - albeit rarely on the 4 - just when the 7 runs out of juice).
I've been playing with the REST API so I can enable voice recognition via 3rd party apps and trigger OR events - which seems to be working - and I think I've now cured my remote event to OR UI 'switch' update problem.
But - one question remains....
Some of my OR buttons do two (or more) things - namely :
a) trigger a macro (i.e. power up the A/V receiver, TV and cable box)
I've wired up voice control to do just that - click the "watch TV" button - and the macro fires ok.
So....does the server do any state tracking of which panel a particular panel UI is (or should be) on? (or is there a way to issue an update to a panel to jump to a given screen?)
Not only would that be handy for my use case, I was thinking of "alerts", where something could flag an update to a panel, or steal focus....
(my problem is as simple as walking into a room, saying "Open Remote Watch TV" and then having to click two buttons to get the UI to the cable controls after I've picked up the remote)
|Document generated by Confluence on Jun 05, 2016 09:38|