From 125dcc450c8fc564bc1132b8fcdc7a67ef5a8f8b Mon Sep 17 00:00:00 2001 From: Tom Keffer Date: Thu, 27 Jun 2019 08:34:49 -0700 Subject: [PATCH] Ported pmon to Python 3. --- examples/pmon/bin/user/pmon.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/pmon/bin/user/pmon.py b/examples/pmon/bin/user/pmon.py index bd8de640..5b9d9c96 100644 --- a/examples/pmon/bin/user/pmon.py +++ b/examples/pmon/bin/user/pmon.py @@ -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')