I haven't used cosm.com yet, so your best bet for help will be to post on that other thread I think. I would start by trying to use the
script posted here. Note you'll need to create the cosm.com account to get your key, feed ID, and data stream ID that need to be filled into the top of the script.
The other trick is you need to get your temperature and humidity values into variables so that they can be accessed by AppleScript. So create new Indigo variables for each value you want to plot, then you will need to create a trigger or schedule that periodically copies the device state into the variable value. You'll use the action Type
Variable Actions->Insert Device State into Variable Value to copy it into the variable. Then you'll modify this line of the AppleScript to have your variable name instead of "tvPower":
- Code: Select all
set tvPower to value of variable "tvPower"
Ideally this would be done using a python script instead of an AppleScript, because python can directly access the device states (so you wouldn't need to copy the device state into a variable value). Or even better maybe someone will create a plugin that does all of this automatically without any need for scripting.