view web/config.py @ 391:5026780c2dc7

- Fix HTTPError - Add wsgi script
author Matt Johnston <matt@ucc.asn.au>
date Wed, 11 Jul 2012 23:42:24 +0800
parents c0ffbfaac1c7
children 81b8c84344c4
line wrap: on
line source


# for server
BTADDR = "00:12:03:27:70:88"
SLEEP_TIME = 5

DATA_PATH = '/home/matt/templog/web/data'

HMAC_KEY = 'a hmac key' # override in local config file

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

try:
    import localconfig
    g = globals()
    for k in dir(localconfig):
        if k in g:
            g[k] = localconfig.__dict__[k]
except ImportError:
    pass