Commit 4bc45786 authored by Nocturnal42's avatar Nocturnal42

Updated to remove the no longer supported eeml.Pachube() call and replaced it...

Updated to remove the no longer supported eeml.Pachube() call and replaced it with a eeml.datastream.Cosm call.
parent 7c7e42f5
......@@ -3,6 +3,7 @@
from time import sleep
import datetime
import eeml
import eeml.datastream
import subprocess, os, sys
import RPi.GPIO as GPIO
from interfaces.DHT22 import DHT22
......@@ -117,7 +118,7 @@ def mainUpload(stdscr):
if LOGGER:
#Attempt to submit the data to cosm
try:
pac = eeml.Pachube(API_URL, API_KEY)
pac = eeml.datastream.Cosm(API_URL, API_KEY)
for dp in datas:
if dp.uploadID!=-1:
pac.update([eeml.Data(dp.uploadID, dp.roundedValue())])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment