My application integrates with indigo through the 8176 http port interface.
Is it possible to "send status request" from this interface? how?
thanks,
Valentino
jay (support) wrote:Note that you shouldn't need to send status requests under normal circumstances - so if you find yourself needing to do status requests frequently then you might want to find out why devices are out of sync and fix that problem rather than just addressing the symptom...
indigohost -e "indigo.device.statusRequest(79187544)"
johnpolasek wrote:I do it from a script for a light and a lamp that are in a bedroom at the end of a long wiring run and sometimes accessed from a palmpad and X10 reciever;
[SNIP]
And I also do a request on the Garage door open IOlinc in the same schedule because every once a while; signal noise or maybe just confusion in the device, it fails to send a state change when I close the door, which means I make a trip to the garage for nothing after checking before bed.
jay (support) wrote:Note that you shouldn't need to send status requests under normal circumstances - so if you find yourself needing to do status requests frequently then you might want to find out why devices are out of sync and fix that problem rather than just addressing the symptom...
jay (support) wrote:I'm not quite sure what your AppleScript question is and how it relates to the RESTful API.
matt (support) wrote:You can use the indigohost command line with the embedded option:
- Code: Select all
indigohost -e "indigo.device.statusRequest(79187544)"
It is not super efficient since it starts a new process that has to connect to the IndigoServer, but it still might be an acceptable technique.
status request "device name here"
matt (support) wrote:The number is the unique device ID. You can get it by right-clicking on the Device in the main window. The device name will work as well (put it in quotes), but the ID is preferred since it never changes.
To do it from AppleScript try:
- Code: Select all
status request "device name here"
(note that AppleScript only accepts the device name -- the ID won't work there)
osascript -e 'tell application "IndigoServer" to status request "office-window"'
nexx wrote:jay (support) wrote:Note that you shouldn't need to send status requests under normal circumstances - so if you find yourself needing to do status requests frequently then you might want to find out why devices are out of sync and fix that problem rather than just addressing the symptom...
Users browsing this forum: No registered users and 3 guests