I've taken the twine.sh script above and have the temperature (just the first two digits, since it temp is returned as a four digit number) sent to a channel on ThingSpeak.
I then have React and ThingHTTP setup to use the Airgram push service (like Prowl but free and works on Android), to alert me if a certain temperature is reached.
An API for collecting data from the Twine would certainly be useful. The current 30 action per hour limit is very restrictive, and the current rule capabilities are trivial. Let's say i want to know if the temperature in my freezer goes above a certain limit *and stays above for 30 minutes* (because during a defrost cycle the temperature can exceed the limit, but i don't care). Or maybe i really care about the trending pattern in the sensor history in a custom way. Squwk.com can handle stuff like this, so it would be nice to be able to tell twine to deliver data there (while also checking the twine site for firmware upgrades and such).
Hmm, I wonder if something changed again. Just noticed that the wget is returning most of the information except everything in the values section is blank.
gs_version = radio firmware version date (hover over your twine, the date here will match that shown in radio version) age = how long it has been since the twine last submitted an update ts = ?? possibly a timestamp for something? last_poll = ?
Anybody had problems with the values coming back blank when calling from wget, curl. I get values when querying https://twine.cc/zzz/rt?cached=1 from the browser
Fixed - Found I needed to use cookies in order to get the values
One bit I ended up changing was the method for changing the 5-digit temperatures to 2-digit.
Your truncation breaks for temperatures over 100°F.
Initially, since the temperature of the external sensor I am using was always over 100°, I simply truncated at three digits. Imagine my surprise when it dipped below 100° - instantly my graph peaked to 997!
what i would like to know is how i can get the list of IDs associated with my login, and a list of sensors identifiers associated (i.e.., do i just care about the last octet, e.g., 7b=moisture, d6=magswitch,a6=breakout, or is there some other mapping involved)
I've gone ahead and written a plugin for my Vera 3 ZWave Home Automation controller that lets me poll the twine and use things like its temperate in applications.
Just another hack along the same lines as the script above.
You can find information about it here (and get the Lua code for the plugin):
Answers
How to use Twine's JSON data.
age = how long it has been since the twine last submitted an update
ts = ?? possibly a timestamp for something?
last_poll = ?
i know about
https://twine.cc/ID/rt?cached=1
what i would like to know is how i can get the list of IDs associated with my login, and a list of sensors identifiers associated (i.e.., do i just care about the last octet, e.g., 7b=moisture, d6=magswitch,a6=breakout, or is there some other mapping involved)
any pointers?
thanks!