Page 1 of 1

LUA or Blocky

Posted: Tuesday 02 May 2017 9:35
by poudenes
Hi Guys,

Im using Domoticz now for a while and have some blocky scripts running. I was wonder whats better.. Change the blocky to a LUA way of script or is it ok to hold it what it is? I see that in LUA there are more options.

Re: LUA or Blocky

Posted: Tuesday 02 May 2017 11:52
by Egregius
Scripts give you complete control ;)
Keen in mind that there are other possibilities to use: Blockly, LUA, PHP, Shell, Python,...

Re: LUA or Blocky

Posted: Tuesday 02 May 2017 17:13
by poudenes
Egregius wrote:Scripts give you complete control ;)
Keen in mind that there are other possibilities to use: Blockly, LUA, PHP, Shell, Python,...
I know... But the reason to keep it with Blockly or Lua is when you create it within Domoticz, its also in the backup files when you have to restore :)

Re: LUA or Blocky

Posted: Tuesday 02 May 2017 17:49
by manjh
poudenes wrote:
Egregius wrote:Scripts give you complete control ;)
Keen in mind that there are other possibilities to use: Blockly, LUA, PHP, Shell, Python,...
I know... But the reason to keep it with Blockly or Lua is when you create it within Domoticz, its also in the backup files when you have to restore :)
When I started with Domoticz, I was impressed by Blockly. Easy to use (once you understand the basics), and quite nice graphically.
But after a while I ran into boundaries, and decided to use Blockly when possible, and move to LUA when necessary.
A while later I found that I was getting better in LUA and I moved away from Blockly all together.
Bottom line: there is no "better". Just "different". With an advantage for LUA, since you do have a lot more control (as stated earlier in this post).