blob: 6764f12e7cec5689a70b98820d286323634a6e3e (
plain)
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
|
-- wifi config start
myIP = ""
AP_name = "beamhome"
AP_password = "C930F921D7F672A23C55638F3B"
-- time sync
ntp_server = "192.168.2.17"
uts_offset = -4*60*60 -- EST time zone, use 4 for summer and 5 for winter
-- timers
tmr_tmp = 0
tmr_time = 1
tmr_display = 2
tmr_weather = 3
tmr_server = 4
-- weather station setup
weather_update_interval = 5000
display_update_interval = 1000
time_update_interval = 500
-- PINS
dht_pin = 4
relay_pin = 1
relay_pin_default_setting = 0; -- gpio.LOW
-- Display defaults
lineH = 10
dstr = ""
tstr = ""
wstr = ""
IPstr1 = "IP1:unknown"
IPstr2 = "IP2:unknown"
-- Some stats
dht_data={}
dht_data.temperature = ""
dht_data.humidity = ""
dht_data.status = "Unknown"
dht_data.temp_max = -100000000; -- should be crazy small to be overwritten by first read
dht_data.temp_min = 100000000; -- should be crazy big to be overwritten by first read
dht_data.humi_max = -100000000; -- should be crazy small to be overwritten by first read
dht_data.humi_min = 100000000; -- should be crazy big to be overwritten by first read
dht_data.last_checked_time = 0;
relay_data={}
relay_data.switched=0;
relay_data.switch_time=relay_pin_default_setting;
relay_data.status="OK"
nodemcu_data={}
|