This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

LUA Script - Control humidity in bathroom
#5
You should also check if the storage value is not a table otherwise the script will produce an error. Corrected version:
Code:
-- Creating database for global variables and initialized to ZERO only first time of script use
HumidDB = storage.get('Humid')

if type(HumidDB) ~= 'table' or next(HumidDB) == nil then
Reply


Messages In This Thread
RE: LUA Script - Control humidity in bathroom - by admin - 22.02.2021, 11:20

Forum Jump: