forked from switchdoclabs/SDL_Pi_SkyWeather2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
125 lines (103 loc) · 2.44 KB
/
config.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# configuration file - DO NOT MODIFY below this line! Defaults and configuration are read from a JSON file. SkyWeather2.JSON
#
#
SWVERSION = "001" # set in SkyWeather.py
import uuid
# printing the value of unique MAC
# address using uuid and getnode() function
MACADDRESS = hex(uuid.getnode())
############
# WeatherSTEM configuration
############
STATIONMAC = MACADDRESS
STATIONHARDWARE=""
############
# SkyCam Remote configuration
############
#configure SkyCam Remote camera
#default
DefaultCameraRotation = 90
SkyCamRotationArray = {}
SkyCamRotationArray["DE45"] = 0
SkyCamRotationArray["9271"] = 0
SkyCamRotationArray["F329"] = 0
SkyCamRotationArray["26FD"] = 270
############
# Blynk configuration
############
BLYNK_URL = 'http://blynk-cloud.com/'
# device present global variables
# do not change - set by software in skyWeather2
Camera_Present = False
SunAirPlus_Present = False
BMP280_Present = False
OLED_Present = False
Sunlight_Present = False
DustSensor_Present = True
# Configuration Variables - Do not modify
SWDEBUG = None
enable_MySQL_Logging = None
MySQL_Password = None
enable_WLAN_Detection = None
PingableRouterAddress = None
mailUser = None
mailPassword = None
notifyAddress = None
fromAddress = None
enableText = None
textnotifyAddress = None
runLEDs = None
SolarMAX_Present = None
BMP280_Altitude_Meters = None
Sunlight_Gain = None
USEWEATHERSTEM = None
INTERVAL_CAM_PICS__SECONDS = None
STATIONKEY = None
WeatherUnderground_Present = None
WeatherUnderground_StationID = None
WeatherUnderground_StationKey = None
USEBLYNK = None
BLYNK_AUTH = None
USEWSLIGHTNING = None
USEWSAQI = None
USEWSSKYCAM = None
DustSensorSCL = None
DustSensorSDA = None
DustSensorPowerPin = None
GPIO_Pin_PowerDrive_Sig1 = None
GPIO_Pin_PowerDrive_Sig2 = None
WATCHDOGTRIGGER = None
Camera_Night_Enable = None
Camera_Rotation = None
REST_Enable = None
MQTT_Enable = None
MQTT_Server_URL = None
MQTT_Port_Number = None
MQTT_Send_Seconds = None
English_Metric = None
# TEC
# how often to record weathee data, in minutes
Record_Weather_Frequency = None
# use other than root user
MySQL_User = None
# provide custom smtp server
mailServer = None
########
# DB Schemas
########
SCHEMA_SKYWEATHER = "SkyWeather2"
SCHEMA_WEATHERSENSE_WIRELESS = "WeatherSenseWireless"
import readJSON
# JSON read in files
# read JSON and put it it into the config variables
readJSON.readJSON('./')
########
#Logging
########
CRITICAL=50
ERROR=40
WARNING=30
INFO=20
JSON=15
DEBUG=10
NOTSET=0