Mercurial > ~darius > hgwebdir.cgi > vanlogger
comparison graph.py @ 10:3f5b617b4715
Change default columns to be more useful
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Fri, 22 Dec 2017 13:14:23 +0100 |
parents | 899bc9c22787 |
children | e1bec6dfd524 |
comparison
equal
deleted
inserted
replaced
9:899bc9c22787 | 10:3f5b617b4715 |
---|---|
87 if args.start >= args.end: | 87 if args.start >= args.end: |
88 parser.error('Start must be before end') | 88 parser.error('Start must be before end') |
89 | 89 |
90 cols = args.column | 90 cols = args.column |
91 if cols == None: | 91 if cols == None: |
92 cols = ['main_voltage', 'aux_voltage', 'ac_app_power'] | 92 cols = ['state_of_charge', 'load_pct', 'main_voltage', 'aux_voltage'] |
93 | 93 |
94 dbh = sqlite3.connect(args.filename, detect_types = sqlite3.PARSE_DECLTYPES) | 94 dbh = sqlite3.connect(args.filename, detect_types = sqlite3.PARSE_DECLTYPES) |
95 cur = dbh.cursor() | 95 cur = dbh.cursor() |
96 | 96 |
97 # Get local timezone name and convert start/end to it | 97 # Get local timezone name and convert start/end to it |