Mercurial > ~darius > hgwebdir.cgi > epro
changeset 18:9c2e08444598
Make sure timer is called more than once.
Not sure how this worked earlier..
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Mon, 06 Dec 2021 12:07:30 +1030 |
parents | 3067bb98b482 |
children | 3a3dba401b4a |
files | eprodbus.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/eprodbus.py Mon Dec 06 11:27:37 2021 +1030 +++ b/eprodbus.py Mon Dec 06 12:07:30 2021 +1030 @@ -144,6 +144,7 @@ row['tstamp'] = int(datetime.datetime.now().strftime('%s')) cur.execute('INSERT INTO eprolog VALUES (:tstamp, :main_voltage, :aux_voltage, :battery_curr, :amp_hours, :state_of_charge, :time_remaining, :battery_temp, :auto_sync_volts, :auto_sync_curr, :e501, :alarm_test, :light, :display_test, :temp_sensor, :aux_hv, :aux_lv, :installer_lock, :main_hv, :main_lv, :low_battery, :battery_flat, :battery_full, :battery_charged, :no_sync, :monitor_reset)', row) self.dbh.commit() + return True def doexit(signum, frame): sys.exit(1)