Cleanup and new adeunis

This commit is contained in:
Nico Schottelius 2016-11-27 20:03:44 +01:00
parent 21efc5d63e
commit d12d5ab0cd
10 changed files with 7 additions and 9 deletions

View file

@ -26,7 +26,7 @@ import sys
log = logging.getLogger("adeunis") log = logging.getLogger("adeunis")
log.setLevel(logging.DEBUG) log.setLevel(logging.DEBUG)
known_devices = [ "0018B20000000C58", "0018B20000000C37", "0018B20000000C59", "0018B20000000CD0" ] known_devices = [ "0018B20000000C58", "0018B20000000C37", "0018B20000000C59", "0018B20000000CD0", "0018B200000001C5" ]
def convert_gps_from_stdin(): def convert_gps_from_stdin():
for line in sys.stdin: for line in sys.stdin:

View file

@ -87,7 +87,6 @@ def pg_wait_for_pkg(conns, callback):
callback(notify.channel, notify.payload) callback(notify.channel, notify.payload)
class DB(object): class DB(object):
def __init__(self, query): def __init__(self, query):
self.query = query self.query = query

View file

@ -1 +0,0 @@
../Sodaq_RN2483.cpp

View file

@ -1 +0,0 @@
../Sodaq_RN2483.h

View file

@ -1 +0,0 @@
../StringLiterals.h

View file

@ -1 +0,0 @@
../Switchable_Device.cpp

View file

@ -1 +0,0 @@
../Switchable_Device.h

View file

@ -1 +0,0 @@
../Utils.h

View file

@ -3,7 +3,7 @@
void gpsSetup() { void gpsSetup() {
sodaq_gps.init(GPS_ENABLE); sodaq_gps.init(GPS_ENABLE);
} }
/* FIXME: find out power consumption if turned off */ /* FIXME: find out power consumption if turned off */
// void gpsStop() { sodaq_gps.off(); } // void gpsStop() { sodaq_gps.off(); }

View file

@ -25,3 +25,8 @@ void sendPacket(String packet);
/* sunlight.ino */ /* sunlight.ino */
String getSunLight(); String getSunLight();
void setupSunLight(); void setupSunLight();
/* gps.ino */
void gpsSetup();
String gpsGetPostion(long waittime);
String gpsGetDateTime(long waittime);