Restful URL for Thermostat Popup

Discussion of the extending and hacking of the various Indigo components.
User avatar
Mark
Posts: 263
Joined: Thu Apr 21, 2005 5:32 pm
Location: California

Restful URL for Thermostat Popup

Post by Mark »

Is there a way to invoke the Thermostat Popup, say in a new browser window, other than with a control page element? Right now, while viewing a control page in a web browser, I click on a Thermostat control and get a new, small browser window with the various thermostat controls. I want to open that little window/page without first opening a control page and clicking on a control page button.

I use Keyboard Maestro a lot to interface with Indigo, through Restful URLs. And KM can open a URL in a browser. What URL would I call to get that Thermostat Popup?

I might also want to use that same URL as a browser bookmark. Again, to get at the thermostat popup quickly...
User avatar
jay (support)
Site Admin
Posts: 18411
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Restful URL for Thermostat Popup

Post by jay (support) »

The URL in the popup window shows you how to do it, just substitute the name with %20 representing spaces:

Code: Select all

http://127.0.0.1:8176/popupdevicepage?name=Name%20of%20thermostat&useJS=True
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
User avatar
Mark
Posts: 263
Joined: Thu Apr 21, 2005 5:32 pm
Location: California

Re: Restful URL for Thermostat Popup

Post by Mark »

Thanks Jay. I guess I was looking for the mechanism that also puts the window in a certain spot, at a certain size, and keeps track off it so that subsequent calls for the popup don't create a second small window. I tried to decipher what a control page is doing when you click a popup element, but it's obscured in Javascript (or something else).

No worries. Your solution, along with a little AppleScript to handle the window, works for what I needed...
Post Reply

Return to “Hacking”