This commit is contained in:
Wolfgang Hottgenroth 2015-06-08 22:40:05 +02:00
parent 13f95077d3
commit 2d772826fb

View File

@ -16,6 +16,7 @@ def on_message(client, userdata, msg):
seconds = (now - midnight).seconds
j['metadata']['timestamp'] = datetime.datetime.now()
j['metadata']['seconds'] = seconds
j['metadata']['day'] = midnight
print(j)
mongoClient = pymongo.MongoClient('localhost')
db = mongoClient.iot