Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
livebox:pachube [2013/11/26 12:34] – [The operation of the xap-xively feeder.] minerva9 | livebox:pachube [2014/11/08 09:30] – [As a Service] brett | ||
---|---|---|---|
Line 16: | Line 16: | ||
===== The operation of the xap-xively feeder ===== | ===== The operation of the xap-xively feeder ===== | ||
- | Lets consider an example of pushing a 1wire temperature sensor data value to Xively. | + | Let' |
The temperatures sensors are generating an event on every .1 degree of a change, however data to xively is only pushed, by default, every minute. | The temperatures sensors are generating an event on every .1 degree of a change, however data to xively is only pushed, by default, every minute. | ||
Line 78: | Line 78: | ||
Its internal cache of data to push to XIVELY can be updated by xAP messages being targeted at this service. | Its internal cache of data to push to XIVELY can be updated by xAP messages being targeted at this service. | ||
- | Messages sent to it are not immediately forwarded to the XIVELY service. They wait until the next update cycle. | + | Messages sent to it are not immediately forwarded to the XIVELY service. They wait until the next update cycle, unless the **now** attribute is supplied more on that later. |
A Xively update message looks like this: | A Xively update message looks like this: | ||
Line 100: | Line 100: | ||
In the message above | In the message above | ||
- | * The id= key matches that of the ID field in the datastream for the default Feed ID. | + | |
- | * The tag=key updates the tag value of the datastream identified by the ID key/field | + | * The tag=key updates the tag value of the datastream identified by the ID key/field |
- | * The value updates the value of the datastream identified by the ID key/field | + | * The value= updates the value of the datastream identified by the ID key/field |
The configuration page on the HAH xively tab is unaffected | The configuration page on the HAH xively tab is unaffected | ||
Note that the UID and source in the message above must either both have sub-addresses or neither have sub addresses | Note that the UID and source in the message above must either both have sub-addresses or neither have sub addresses | ||
+ | |||
+ | ==== Other optional attributes ==== | ||
+ | |||
+ | If you require the manual feed to update xively immediately the xively.update is sent supply the attribute " | ||
+ | |||
+ | < | ||
+ | datastream | ||
+ | { | ||
+ | id=4 | ||
+ | tag=Outside light on | ||
+ | value=1 | ||
+ | now=1 | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | The **now** field was added to solve the use case where by a boolean value needs to be monitored and its state should not be cached as it may toggle before the next xively web service update occurs. | ||
+ | |||
===== Graphing ===== | ===== Graphing ===== | ||