Hi all,
I use a tablet running Openremote as a universal remote.
Recently I added a page with a web view for a security camera.
As it turns out this drains the battery of the tablet in a few hours.
It seems to be active in the background.
Is there a way to avoid this?
I put a web view element in to view a HD security cam feed once.
Just opening up the android app sucked the life out of my mobile data allowance.
2GB used in less than 30 minutes.
So, I'll assume that the web viewer is live all the time.
My solution was fairly simply, again I'm sure someone else will provide a much better solution.
I created a set of in-memory commands that set any number of full URLs into the in-memory variable.
Then an In-memory sensor displayed the URL.
Linking the web view element to this sensor was enough to be able to set a NULL value to effectively stop the web view element from showing any live data.
As a fail Safe, (with help) I created a simple rule to watch the in-memory sensor every 30 seconds and set it back to NULL.