Posts: 285
Threads: 25
Joined: Jul 2009
I figured out a way to display my cameras on my iPads via RIVA, but its basically a still of the camera(s). I'd like to update the image every couple of seconds automatically, would that put too much stress on the RIVA server, caching of images, etc...? If not, how would I go about doing so? The web image URL always is the same, it just needs to be reloaded.
I use Blue Iris Surveillance software. I'd like to keep an iPad in the theater to control things and to see if who's at the door. It's in a bonus room on the other side of the house, so it takes a bit of running to get to the door.
Posts: 40,483
Threads: 491
Joined: Aug 2002
How are you displaying the image?
Dean Roddey
Explorans limites defectum
Posts: 285
Threads: 25
Joined: Jul 2009
It's a web image widget with the URL of something like
"http://blueiris/camera1?time=0" for just 1 camera (not exact but mostly correct) or
"http://blueiris/view?time=0" for all cameras
The "?time=0" always loads the current image as a jpeg. I was hoping to be able to switch views by having a command button, having the command button change the GVar, and the GVar loaded into the SetImg. Not sure how I can continuously have it done in the background?
Posts: 40,483
Threads: 491
Joined: Aug 2002
It should be too abusive to update it, though I'd not do it too fast. How large are the images?
The web image widget doesn't have any sort of auto-update. If it's in a popup you could use the OnTimeout event to periodically update it, but you'd want to be careful not to just beat it to death if it's getting behind, i.e. it's never even getting an image loaded before you are asking it to load another.
Dean Roddey
Explorans limites defectum
Posts: 3,415
Threads: 158
Joined: Jan 2006
Does a RIVA client support the IV events? You could also setup a Timer in the timer driver and trigger an events on the event tab to refresh.
I refresh some web image widgets this way, based on field events.
Posts: 40,483
Threads: 491
Joined: Aug 2002
I don't think that they work when in RIVA mode.
Dean Roddey
Explorans limites defectum
Posts: 285
Threads: 25
Joined: Jul 2009
I wanted to just put the web image in the IV, rather than popup. Any other way to reload it automatically? All the ways I keep trying seem to lock everything up while it's processing.
Posts: 40,483
Threads: 491
Joined: Aug 2002
There isn't any good way to have it reload regularly. You could try the OnTimeout event on the template itself to try to reload it. But, as I said before, don't push it too fast or you'll just end up never actually loading anything and constantly bashing it to death, making it start reloading before it loads the last one.
Ultimately having it support a built in auto-update would be the best way to do it I guess.
Dean Roddey
Explorans limites defectum
Posts: 745
Threads: 33
Joined: Oct 2008
+1 to built in auto-update feature.
Dean Roddey Wrote:.
Ultimately having it support a built in auto-update would be the best way to do it I guess.
_______________
Denon 3808ci, 2112ci ,Sonos, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, Polk XRT12,
Honeywell Wi-Fi 9000, Caleo Wi-Fi Thermostats, Rainmachine