Mercurial > templog
view web/config.py @ 386:f4f0780708d1
- store settings in eeprom
- change TICK to 6 secs (and fix timing bug)
- measurement memory is used by all sensors
- "awake" command
- avoid float maths calculating vcc
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 10 Jul 2012 23:48:09 +0800 |
parents | abe8c530812e |
children | 0f7c005b3f87 |
line wrap: on
line source
DATA_PATH = '/home/matt/templog/web/data' HMAC_KEY = 'a hmac key' UPDATE_URL = 'https://evil.ucc.asn.au/~matt/templog/update' GRAPH_WIDTH = 1200 GRAPH_HEIGHT = 600 ZOOM = 1 LINE_WIDTH = 2 SENSOR_NAMES = {'sensor_28 CE B2 1A 03 00 00 99': "Wort", 'sensor_28 CC C1 1A 03 00 00 D4': "Ambient", 'sensor_28 49 BC 1A 03 00 00 54': "Other", 'sensor_voltage': 'Voltage', } SENSOR_COLOURS = {'Wort': 'e49222', 'Ambient': '028b3d', 'Voltage': '7db5d3aa', 'Other': '78000c', } GRAPH_FONT = "Prociono" #GRAPH_FONT = "URW Gothic L" # determine by zooming in an image viewer GRAPH_LEFT_MARGIN = 63