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.setLevel(logging.DEBUG)
known_devices = [ "0018B20000000C58", "0018B20000000C37", "0018B20000000C59", "0018B20000000CD0" ]
known_devices = [ "0018B20000000C58", "0018B20000000C37", "0018B20000000C59", "0018B20000000CD0", "0018B200000001C5" ]
def convert_gps_from_stdin():
for line in sys.stdin:

View File

@ -87,7 +87,6 @@ def pg_wait_for_pkg(conns, callback):
callback(notify.channel, notify.payload)
class DB(object):
def __init__(self, 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() {
sodaq_gps.init(GPS_ENABLE);
}
}
/* FIXME: find out power consumption if turned off */
// void gpsStop() { sodaq_gps.off(); }

View File

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