summaryrefslogtreecommitdiff
path: root/main.lua
blob: 9b6c6b9da0bf5a5832abee4beae5dbd36eae893b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
if local_config.relay_present then
	-- Setup relay
	dofile("relay_switch.lua")(relay_pin_default_setting)
end

if local_config.display_present and  not local_config.relay_present then
	-- display and relay use the same pin
	-- so in the presence of relay display should be off to avoid sporadic runs
	dofile("display_setup.lua")
	--dofile("draw.lua")
	dofile("update_display.lua")
end

dofile("wifi_config.lua")
dofile("update_time.lua")
--dofile("update_weather.lua")

--s=dofile("httpserver.lc")(80)