Multiple Blocky events or one

Post Reply
poudenes
Posts: 246
Joined: Wednesday 08 March 2017 10:42
Target OS: Linux
Domoticz version: 3.7392
Location: Amsterdam
Contact:

Multiple Blocky events or one

Post by poudenes » Wednesday 21 June 2017 10:21

Hi All,

I have 7 different block events. All for some specific triggers and actions.
Is it ok the keep them separate or will it speedup to combine them together in 1 bog blocky file?

For easy editing and finetune separate ones are easier. Otherwise the list become very long.
But was curious if it will be better to combine them to 1 blocky
Raspberry Pi3 - OSMC - Domoticz - Dashticz - MiPow PlayBulb - Nanolead Aurora - KaKu - Logitech Hamony - Nest - RFLink

User avatar
heggink
Posts: 305
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi
Domoticz version: V3.7067
Location: NL
Contact:

Re: Multiple Blocky events or one

Post by heggink » Wednesday 21 June 2017 17:37

Interesting thought. When I converted my blockies into lua (due to the memory leak issue), I did them 1 by 1 and ended up with nearly 50 lua files that trashed my system performance. Once consolidated into 4 bigger scripts, my cpu was back to low single digits again (from 80+%). I can imagine that domoticz intelligently tracks what devices are used in the blocky. If not then a similar principle would apply...
Pi3, latest beta
RFXCOM, z-wave (AEOTEC, switches, temhum, pir, contacts),
Plugwise2py, P1 'smart'meter & solar panel
Alexa, Wifi Cams motion detection
ESP: relays, PIR & Temp/TempHum
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest

poudenes
Posts: 246
Joined: Wednesday 08 March 2017 10:42
Target OS: Linux
Domoticz version: 3.7392
Location: Amsterdam
Contact:

Re: Multiple Blocky events or one

Post by poudenes » Saturday 24 June 2017 20:36

heggink wrote:Interesting thought. When I converted my blockies into lua (due to the memory leak issue), I did them 1 by 1 and ended up with nearly 50 lua files that trashed my system performance. Once consolidated into 4 bigger scripts, my cpu was back to low single digits again (from 80+%). I can imagine that domoticz intelligently tracks what devices are used in the blocky. If not then a similar principle would apply...
Yes i read also that 1 lua script is better... Easier because its text so you can scroll faster true the whole list.
Block is graphical and when its very long there is a lag ... So i split up the blocky haha.

I don't see any cpu usage that is higher then with 1 blocky
Raspberry Pi3 - OSMC - Domoticz - Dashticz - MiPow PlayBulb - Nanolead Aurora - KaKu - Logitech Hamony - Nest - RFLink

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest