Cleanup and new adeunis
This commit is contained in:
parent
21efc5d63e
commit
d12d5ab0cd
10 changed files with 7 additions and 9 deletions
|
@ -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:
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
../Sodaq_RN2483.cpp
|
|
|
@ -1 +0,0 @@
|
||||||
../Sodaq_RN2483.h
|
|
|
@ -1 +0,0 @@
|
||||||
../StringLiterals.h
|
|
|
@ -1 +0,0 @@
|
||||||
../Switchable_Device.cpp
|
|
|
@ -1 +0,0 @@
|
||||||
../Switchable_Device.h
|
|
|
@ -1 +0,0 @@
|
||||||
../Utils.h
|
|
|
@ -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(); }
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue