Почищен код определения ID устройства.
[weathermon.git] / bin / weathermon-iio
index df32c3ad5849bc90d793f4379aa76b61667f1da0..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)
 
@@ -188,6 +188,8 @@ if not delay then
   delay = 60
 end
 
+io.stdout:setvbuf('no')
+
 while true do
   if pcall(function () values = get_parameters(parameters) end) then
     records = {}