How do you read temperature via RFXCOM?

Posted on
Wed Oct 31, 2012 5:44 pm
gmusser offline
Posts: 290
Joined: Feb 12, 2005
Location: New Jersey

How do you read temperature via RFXCOM?

Using AppleScript, how do you read the temperature from a sensor via the RFXCOM plugin? The nearest I can find in the Indigo documentation is something like "tell device 'Temperature Porch' / log temperatures as string" but this doesn't work. I presume the plugin devices use different syntax but no one seems to have written any documentation for this.
George

Posted on
Wed Oct 31, 2012 5:58 pm
jay (support) offline
Site Admin
User avatar
Posts: 18220
Joined: Mar 19, 2008
Location: Austin, Texas

Re: How do you read temperature via RFXCOM?

Plugin devices aren't supported in AppleScript. There are 2 options:

  1. Write the script in Python. There's a lot of documentation on how to use Python with Indigo objects in the Technical Documents section of the documentation.
  2. Create a trigger that fires whenever the temp changes on the sensor and use the "Insert Device State into Variable" action in the Action Collection plugin to save the new temp to a variable which you can then use from AppleScript.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Thu Nov 01, 2012 6:28 am
gmusser offline
Posts: 290
Joined: Feb 12, 2005
Location: New Jersey

Re: How do you read temperature via RFXCOM?

#2 works nicely. Thanks!

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 17 guests