forked from ve3sjk/SkyWeather-Python-3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
executable file
·137 lines (104 loc) · 2.98 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
126
127
128
129
130
131
132
133
134
135
136
137
#
#
# configuration file - contains customization for SkyWeather system
#
# it is a good idea to copy this file into a file called "conflocal.py" and edit that instead of this one. This file is wiped out if you update SkyWeather.
#Debugmodes
SWDEBUG = False
DEBUGBLYNK = False
MySQL_debug = True
WU_debug = False
AS3935_debug=False
#END
#check for git
# Set from SkyWeather.Py startup
SWVERSION = "000"
#END
#MAIL
mailUser = "yourusename"
mailPassword = "yourmailpassword"
notifyAddress ="[email protected]"
fromAddress = "[email protected]"
enableText = False
textnotifyAddress = "yourphonenumber@yourprovider"
#MySQL Logging and Password Information
enable_MySQL_Logging = False
MySQL_Password = "password"
MySQL_Address = "x.x.x.x"
MySQL_User = "xxxx"
MySQL_Database = "xxxx"
MySQL_Database2 = "xxxx"
# modify this IP to enable WLAN operating detection - search for WLAN_check in SkyWeather.py
enable_WLAN_Detection = False
PingableRouterAddress = "192.168.1.1"
# LED configuration (on use on a Raspberry Pi 3B+)
runLEDs = False
# WXLink and SolarMAX configuration
SolarMAX_Present = False
Dual_MAX_WXLink = False
# SolarMAX_Type = "LEAD" for SolarMAX Lead Acid
# SolarMAX_Type = "LIPO" for SolarMAX LiPo
SolarMAX_Type = ""
# WeatherSTEM configuration
USEWEATHERSTEM = False
INTERVAL_CAM_PICS__SECONDS = 60
STATIONMAC = ""
STATIONKEY="XXXXYYYY"
STATIONHARDWARE=""
# WeatherUnderground Station
WeatherUnderground_Present = False
WeatherUnderground_StationID = "KWXXXXX"
WeatherUnderground_StationKey = "YYYYYYY"
# Blynk configuration
USEBLYNK = False
BLYNK_AUTH = 'xxxxx'
BLYNK_URL = 'http://blynk-cloud.com/'
# AS3935 Lightning Configuration
# format: [NoiseFLoor, Indoor, TuneCap, DisturberDetection, WatchDogThreshold, SpikeDetection]
AS3935_Lightning_Config = [2,1,3,0,3,3]
# for barometeric pressure - needed to calculate sealevel equivalent - set your weatherstation elevation here
BMP280_Altitude_Meters = 328.0
# device present global variables
Camera_Present = False
TCA9545_I2CMux_Present = False
SunAirPlus_Present = False
AS3935_Present = False
DS3231_Present = False
BMP280_Present = False
BME680_Present = False
HDC1080_Present = False
SHT30_Present = False
AM2315_Present = False
ADS1015_Present = False
ADS1115_Present = False
OLED_Present = False
OLED_Originally_Present = False
WXLink_Present = False
Sunlight_Present = False
TSL2591_Present = False
#set this to true if you have the sensor, false if you do not
DustSensor_Present = True
# set Sunlight High Gain (indoors - 1) or Low Gain (outdoors - 0)
Sunlight_Gain = 0
# if the WXLink has stopped transmitting, == False
WXLink_Data_Fresh = False
WXLink_LastMessageID = 0
# Pin definitions
pixelPin = 21
#Dust Sensor
DustSensorPin = 19
DustSensorPowerPin = 26
#WeatherRack
anemometerPin = 20
rainPin = 13
#Temperature sensor
SHT30GSPIN = 6
AM2315GSPIN = 6
# for fan
GPIO_Pin_PowerDrive_Sig1 = 5
GPIO_Pin_PowerDrive_Sig2 = 5 # To avoid stepping on GPIO 6
#Watchdog
WATCHDOGTRIGGER = 4
#offsets
TempOffset = 0 #in Celcius
HumOffset = 0