forked from switchdoclabs/SDL_Pi_SkyWeather
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
129 lines (88 loc) · 2.7 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
#
#
# 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.
SWDEBUG = False
SWVERSION = "000" # set in SkyWeather.py
import uuid
# printing the value of unique MAC
# address using uuid and getnode() function
MACADDRESS = hex(uuid.getnode())
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"
# 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
# WeatherSTEM configuration
USEWEATHERSTEM = False
INTERVAL_CAM_PICS__SECONDS = 60
STATIONMAC = MACADDRESS
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
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
DustSensorPin = 19
DustSensorPowerPin = 26
#WeatherRack
anemometerPin = 20
rainPin = 13
SHT30GSPIN = 6
AM2315GSPIN = 6
# for fan
GPIO_Pin_PowerDrive_Sig1 = 5
GPIO_Pin_PowerDrive_Sig2 = 5 # To avoid stepping on GPIO 6
WATCHDOGTRIGGER = 4