Почищен код определения ID устройства.
authorRoman Bazalevsky <rvb@rvb.name>
Fri, 16 Nov 2018 18:45:08 +0000 (21:45 +0300)
committerRoman Bazalevsky <rvb@rvb.name>
Fri, 16 Nov 2018 18:45:08 +0000 (21:45 +0300)
bin/weather-display
bin/weathermon-iio

index ef210ff5a68c17c383e07d64e25d992978d149cd..1c6a6fc793694872b155990d96275cbb5cef9116 100755 (executable)
@@ -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
index cbf21f0c996fc984e7fe9c5fc20466c233ab00b3..f6e979f1c50939497b0c3234ff0452a1fe7c2d2f 100755 (executable)
@@ -173,7 +173,7 @@ if not config_name then
   config_name = "weathermon"
 end  
 
-web_id = uci.get(config_name,"web","devid")
+web_id = get_devid(config_name)
 
 parameters = init(config_name)