-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathconfig.py
113 lines (78 loc) · 2.19 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
#
#
# configuration file - contains customization for exact system
#
#
mailUser = "yourusename"
mailPassword = "yourmailpassword"
notifyAddress ="[email protected]"
fromAddress = "[email protected]"
#############
# Debug True or False
############
DEBUG = False
############
# Blynk configuration
############
USEBLYNK = False
BLYNK_AUTH = 'xxxxx'
BLYNK_URL = 'http://blynk-cloud.com/'
############
# PubNub configuration
############
USEPUBNUB = False
Pubnub_Publish_Key = "pub-c-xxxxxx"
Pubnub_Subscribe_Key = "sub-c-xxxxxx"
############
#MySQL Logging and Password Information
############
enable_MySQL_Logging = False
MySQL_Password = "password"
############
# Feature Enable/Disable
############
manual_water = True
############
# Moisture Sensor and Pump Count
############
plant_number = 1
moisture_sensor_count = plant_number
USB_pump_count = plant_number
# R1 - Grove Reliable Resistive Moisture Sensor - SwitchDoc Labs
# R2 - HONG111 TE215 Dual Mode Resistive Moisture Sensor - Amazon.com
# C1 - Grove Capacitive Moisture Sensor - SwitchDoc Labs
SensorType = ["C1","C1","C1","C1","C1","C1","C1","C1","C1"]
# for resistor1: first number is for 100%, second number is 65%
Resistor1SensorCalibration = [480,380]
# for resistor2: first number is for 0%, second number is 100%
Resistor2SensorCalibration = [460,131]
# for capacitance1: first number is for 0%, second number is 100%
Capacitor1SensorCalibration = [ [363,150], [363,150], [363,150], [363,150], [363,150], [363,150],[363,150], [363,150], [363,150]]
# if your pumps stick up too high, adjust this value so tank will still ready empty
Tank_Pump_Level = 15.0
############
# device present global variables
############
Lightning_Mode = False
SolarPower_Mode = False
SunAirPlus_Present = False
ADS1115_Present = False
ADS1115_Ext1_Present = False
ADS1115_Ext2_Present = False
GroveDigital_Ext1_Present = False
GroveDigital_Ext2_Present = False
ADS1115_Ext2_Present = False
OLED_Present = False
Sunlight_Present = False
hdc1000_Present = False
UltrasonicLevel_Present = True
############
#pin defines
############
UltrasonicLevel = 4
USBControl = 16
USBEnable = 19
AirQualityADPin = 0
moistureADPin = 1
moisturePower = 6
pixelPin = 21