The Twine forums are now archived. If you need help, please visit

JSON values

If you go to:

You get JSON that looks like:
{"gs_version": "Oct 31 2012-08:21:10", "age": 0.0002491474151611328,
"ts": 1369854336.0, "values": [["ZZZ00", "1.3.1"],
["ZZZ01", 7700], ["ZZZ03", "top"],
["ZZZ05", 55104], ["ZZZ06", 1],
["ZZZ07", 1], ["ZZZ04", 0],
["ZZZ02", 0]], "rssi": 196, "ruleset_id": "32537",
"last_poll": 1369854336.0}

where ZZZ is my twine key ID.

"ZZZ00" is firmware
"ZZZ01" is temperature * 100
"ZZZ03" is orientation
"ZZZ05" is probably voltage?
"rssi" is probably received signal strength indication (scale?)

Does anybody have a full list that they could post?

Best Answer

  • 7 Comments sorted by Votes Date Added
  • Not to interrupt the fun of figuring it out, but here's what it means. You can be reasonably sure that the below won't change. (Someday we'll turn this into proper documentation...)

    All internal sensors, and some other Twine info, will be the Twine ID plus two digits:
    00 - firmware version
    01 - temperature (in hundredths of F)
    02 - vibration (in milli-Gs)
    03 - orientation ("top", "bottom", "left", "right", "back", "front")
    04 - vibration event (0 = not triggered, 1 = triggered)
    05 - battery voltage (in microvolts - if it's below 1300000µV you're almost certainly on external power - the voltage reading is tuned for batteries)
    06 - not used
    07 - update mode (0 = normal, 1 = fast)

    External sensors each have a unique ID. When you GET ID), it will return the sensor type.


Sign In or Register to comment.