DB "canary" added - with fail/restart when connection dropped
[weathermon.git] / bin / weather-display
index ef210ff5a68c17c383e07d64e25d992978d149cd..58b8ae528266457d7f74677f1ccc71022066a96c 100755 (executable)
@@ -98,7 +98,7 @@ if not config_name then
   config_name = "weathermon"
 end
 
-print("loading config...")
+web_id = get_devid(config_name)
 
 local a_levels, a_engage, a_engage_mode, a_disengage_mode, levels_idx = get_levels_list(config_name)
 
@@ -152,8 +152,6 @@ if not alarmstr_len then
 end
 alarmstr_len=tonumber(alarmstr_len)
 
-web_id = uci.get(config_name,"web","devid")
-
 while true do
 
   onoff = not onoff