projects
/
weathermon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
24b943a
)
Основной цикл отображения - в защищенный вызов на случай неурядиц.
author
Roman Bazalevsky
<rvb@rvb.name>
Thu, 23 Jan 2020 05:31:08 +0000
(08:31 +0300)
committer
Roman Bazalevsky
<rvb@rvb.name>
Thu, 23 Jan 2020 05:31:08 +0000
(08:31 +0300)
bin/weather-lcd
patch
|
blob
|
history
diff --git
a/bin/weather-lcd
b/bin/weather-lcd
index 9ecadfa0ee3f37e191d82ad288250322807118d7..9abd84fac3d9cad802fe0c0e454ba0d62ff55723 100755
(executable)
--- a/
bin/weather-lcd
+++ b/
bin/weather-lcd
@@
-251,14
+251,19
@@
setup_pages(conn)
while true do
- vals = process_file()
- process_vals(vals)
+ pcall( function ()
- if log_con then
- process_graphs()
- end
+ vals = process_file()
+ process_vals(vals)
+
+ if log_con then
+ process_graphs()
+ end
- os.execute("inotifywait -e MODIFY \""..weather_file.."\"")
- socket.sleep(3)
+ os.execute("inotifywait -e MODIFY \""..weather_file.."\"")
+
+ end)
+
+ socket.sleep(3)
end