Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Automatically refresh web image widget in RIVA?
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.
How are you displaying the image?
Dean Roddey
Explorans limites defectum
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?
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
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.
My Home Theater/Automation Website

[THREAD=5957]BlueGlass CQC Config[/THREAD]
[THREAD=10624]Wuench's CQC Drivers[/THREAD]
I don't think that they work when in RIVA mode.
Dean Roddey
Explorans limites defectum
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.
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
+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

Possibly Related Threads…
Thread Author Replies Views Last Post
  Riva ellisr63 2 1,199 01-27-2020, 01:20 PM
Last Post: ellisr63
  Video Widget znelbok 67 40,909 04-12-2017, 04:08 PM
Last Post: Dean Roddey
  An idea for a new widget Dean Roddey 5 4,587 03-13-2017, 02:47 PM
Last Post: potts.mike
  Web browser widget Trioxide 7 5,840 02-25-2017, 06:30 AM
Last Post: Trioxide
  Slider Widget potts.mike 1 2,234 04-19-2016, 04:59 PM
Last Post: Dean Roddey
  Image Pack from 2006 jkmonroe 20 6,262 11-20-2015, 03:15 PM
Last Post: Dean Roddey
  Field Incr/Decr Button Widget khill 15 8,268 05-17-2015, 01:04 PM
Last Post: dlmorgan999
  Overlay in an Overlay triggered by Widget Deane Johnson 4 4,038 11-09-2014, 10:29 AM
Last Post: Deane Johnson
  Export an image? Sendero 3 2,586 10-26-2013, 08:34 PM
Last Post: Dean Roddey
  popup moves image over ellisr63 3 2,651 06-04-2013, 12:24 PM
Last Post: Dean Roddey

Forum Jump:

Users browsing this thread: 1 Guest(s)