Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import stsplatform.client as sts
SENSOR_NAME = 'mike.yvr-arrive'
def main():
conf = {
#create an stsplatform client with custom configuration
w = sts.Client(conf)
# Print a sensor hosted in the sts platform
s = sts.Sensors(w, SENSOR_NAME)
print "\n\nSensor %s has the current structure: \n" % SENSOR_NAME
print s.get().data
# Print some data (last event) that lives in this sensor according to:
d = sts.Data(s)
print "\n\nSensor %s's last data point is: \n" % SENSOR_NAME
print d.get({'beforeE':1}).data
if __name__ == "__main__":
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.