update sys info widget and move to main scripts

This commit is contained in:
Evgeny
2021-09-21 14:55:59 +03:00
parent 78e5abffe5
commit ee3a4abd36

View File

@@ -1,4 +1,8 @@
-- name = "System info" -- name = "System info"
-- description = "Device information in real time"
-- type = "widget"
-- author = "Evgeny Zobnin (zobnin@gmail.com)"
-- version = "1.0"
ticks = -1 ticks = -1
@@ -24,6 +28,8 @@ function stringify_table(tab)
table.insert(new_tab, capitalize(k):replace("_", " ")..": "..tostring(v)) table.insert(new_tab, capitalize(k):replace("_", " ")..": "..tostring(v))
end end
table.sort(new_tab)
return new_tab return new_tab
end end