Ported pmon to Python 3.

This commit is contained in:
Tom Keffer
2019-06-27 08:34:49 -07:00
parent 0b668f2345
commit 125dcc450c

View File

@@ -41,7 +41,7 @@ import weeutil.weeutil
from weeutil.log import logdbg, loginf, logerr
from weewx.engine import StdService
VERSION = "0.4"
VERSION = "0.5"
schema = [
('dateTime', 'INTEGER NOT NULL PRIMARY KEY'),
@@ -172,17 +172,17 @@ if __name__ == "__main__":
nowts = lastts = int(time.time())
rec = svc.get_data(nowts, lastts)
print rec
print(rec)
time.sleep(5)
nowts = int(time.time())
rec = svc.get_data(nowts, lastts)
print rec
print(rec)
time.sleep(5)
lastts = nowts
nowts = int(time.time())
rec = svc.get_data(nowts, lastts)
print rec
print(rec)
os.remove('/var/tmp/pmon.sdb')