|Recommended update strategy of channels in binding [message #1780536]
||Tue, 23 January 2018 19:01
| Martin Eskildsen
Registered: January 2018
In the openHAB ZoneMinder Binding I am trying to optimize and also add new functionality. The main issue right now is that some users requires a lot of features (frequent updates of data, images and even a video stream), where other users run their ZoneMinder server on a rather small machine, all this will slow down thier ZoneMinder Server considerably.|
Many things can be fixed by optimizing code.
In this process one idea crossed my mind, and I would like to hear if this is a good idea or if it is a no go.
My thought is that since all channels must be linked to a item before it can be used, I was thinking of overriding the channelLinked / channelUnlinked and only update channels that has something attached to it.
Would this approach be acceptable in a Binding?
Right now I have added the option to enabled / disable refresh of selected channels, that would be an alternative way to go.
I have no considerations regarding openHAB, it seems to do very well even when refreshing often. It is the ZoneMinder Server I am worried about.
EDIT: Sorry for double posting, don't know how to delete one of them :-(
[Updated on: Tue, 23 January 2018 19:06]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02848 seconds