/
settings.py
61 lines (46 loc) · 1.49 KB
/
settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# at time of writing, commonscontrol.harleyschool.org has the IP address '208.99.242.111'
import os
from private import *
from private import *
################
## SQL SERVER ##
################
# credentials (username and password) are stored on the server in a protected file
sql_credentials = os.path.expanduser("~/code/commonssite/sql_creds.txt")
#####################
## SHARED SETTINGS ##
#####################
datetime_out_format = '%Y-%m-%d %H:%M:%S'
scrapers_settings_sql_table = 'scraper-settings'
###################
## HVAC SETTINGS ##
###################
hvac_host = "10.1.6.200"
hvac_port = 80
hvac_sql_table_vrf = 'hvac-vrf'
hvac_sql_table_erv = 'hvac-erv'
####################
## SOLAR SETTINGS ##
####################
sma_host = "commonscontrol.harleyschool.org"
sma_port = 80
sma_sql_table_weather = 'sma-weather'
sma_sql_table_panels = 'sma-panels'
sma_sql_table_overview = 'sma-overview'
#######################
## ELECTRIC SETTINGS ##
#######################
veris_host = "10.1.6.202"
veris_port = 80
veris_sql_table_circuits = 'electric-circuits'
veris_sql_table_device = 'electric-summary'
##################
# VPMXP settings #
##################
url2 = 'http://%s/setup/devicexml.cgi?ADDRESS=2&TYPE=DATA' % veris_host
url3 = 'http://%s/setup/devicexml.cgi?ADDRESS=3&TYPE=DATA' % veris_host
url4 = 'http://%s/setup/devicexml.cgi?ADDRESS=4&TYPE=DATA' % veris_host
##############################
## WEATHER STATION SETTINGS ##
##############################
weather_host = "10.1.6.203"