Search found 2 matches

by Shunt
Friday 15 November 2013 8:02
Forum: Other questions and discussions
Topic: Blocky code events or LUA script?
Replies: 5
Views: 2695

Re: Blocky code events or LUA script?

I agree that lua is the way to go. It has its quirks, but is fairly simple to learn. There are loads of lua examples and tips online, and the Domoticz-specific commands aren't that many so you'll learn them fast.

If you take a simple Blockly example and "convert" it to lua, you'll learn as you go ...
by Shunt
Wednesday 06 November 2013 14:29
Forum: LUA
Topic: Weather Underground Upload script
Replies: 112
Views: 47587

Re: Weather Underground Upload script

Thanks for the script. Good work!

I use this to run every 5 minutes:

-- Current date as date.year, date.month, date.day, date.hour, date.min, date.sec
date = os.date("*t")
if (date.min % 5 == 0) then
--script
end


Unfortunately the lua execution time seems to drag about a second per hour ...