Skip to content

Instantly share code, notes, and snippets.

@smulube
Created June 21, 2013 11:23
Show Gist options
  • Save smulube/5830587 to your computer and use it in GitHub Desktop.
Save smulube/5830587 to your computer and use it in GitHub Desktop.
xively datapoints tests
import xively
import datetime
FEED_ID=123
API_KEY="123abc"
api = xively.XivelyAPIClient(API_KEY)
feed = api.feeds.get(FEED_ID)
now = datetime.datetime.now()
for d in feed.datastreams.list():
points = d.datapoints.history(end=now, duration='3hours', interval=0)
list(points)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment