Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Increment web image widget
#1
Looking for some suggestions on how to accomplish something.

I have a number of cameras, and on my interface homepage, I'd like to have a single web image that automatically increments between the six cameras, perhaps once ever 2 seconds ...there isn't enough space on the home page to display all the cameras simultaneously.

A few ideas I had:

1. Use a field based web image widget, and write another driver whose only task is to update a field with the URL every few seconds.
2. Use a timer to accomplish the same thing.
Both seem wasteful, as I don't see a way to reliably start the then stop the events triggering...starting the event triggering is easy on loading the interface viewer, but I don't see a way to reliably stop it.

3. Have another small lightweight external webserver gather and increment the images and then provide a single URL to serve to CQC.

Other ideas?

thanks
NF
Reply
#2
You definitely wouldn't want a streaming thingie changing ever few seconds. That would be a lot of overhead. Or do you really mean just an image, snapshot type thing?

If the latter you could do a simple driver that supports the Driver Image widget.

https://www.charmedquark.com/Web2/CQCDoc...riverImage

Just have the driver load the images on some schedule, changing the trigger field every time it does, which makes the widget grab the new image. Keeping in mind that this will be constantly sucking over images, so I wouldn't make it change really quickly, though it depends somewhat on the size of the images.

You would have to be able to get the images somewhere under [cqc]\CQCData\MacroFileRoot, or have the driver pull them over via HTTP or some such.
Dean Roddey
Explorans limites defectum
Reply
#3
Yup...it's just a snapshot from each camera (a small jpeg file).

I didn't know about the driver image widget...that could work.

On the other hand, it just seems wasteful to have a driver pulling images from the cameras around the clock, when I would only want the driver doing that if there was a widget that needed the images...any ideas to deal with that issue.
Reply
#4
You would be writing the driver, so you can use whatever you want to trigger it to start and stop doing its thing. When some field is true or at some particular times of the data or whatever it is.
Dean Roddey
Explorans limites defectum
Reply
#5
In my mind, the issue was stopping the driver.
It's easy to start the driver when the interface viewer loads.
But is there a way to know when the viewer has lost connection...with the webriva, instead of exiting out of the viewer, I suspect you would normally just close the browser window...is there a way to track that?
Reply
#6
Not really. You could of course do some sort of dead man switch. I.e. the client periodically sets a variable driver field. The driver periodically clears it. If it stays clear from some period of time, the driver stops doing images until it is set again. Something like that.
Dean Roddey
Explorans limites defectum
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  URL vs WebURL in Camera Widget gReatAutomation 1 963 12-31-2020, 08:36 AM
Last Post: Dean Roddey
  Camera Widget - URL, WebURL and Viewing While Not on Local network gReatAutomation 5 1,723 10-26-2020, 03:47 PM
Last Post: Dean Roddey
  Widget color and states bryanb 10 3,003 08-14-2020, 03:29 PM
Last Post: Dean Roddey
  Possible Bug in Web Browser Widget or SetURL kblagron 8 2,869 04-29-2020, 06:58 PM
Last Post: kblagron
  I cant enter parameters for sizing into the webcam widget. I get errors about invalid ghurty 2 1,550 04-29-2020, 04:01 PM
Last Post: Dean Roddey
  Is there a way to have an image displayed that is not imported? ghurty 3 1,271 04-28-2020, 04:22 PM
Last Post: Dean Roddey
  Check Box widget on WebRIVA vs Interface Viewer bryanb 1 1,293 04-23-2020, 06:15 AM
Last Post: bryanb
  Timers Driver / Field Time Image / Seconds gReatAutomation 1 1,383 03-16-2020, 05:48 PM
Last Post: Dean Roddey
  Issues after Acronis True image clone Ron Haley 4 2,061 02-14-2020, 03:44 PM
Last Post: Dean Roddey
  Widget: Web Browser simplextech 4 2,425 01-12-2020, 12:47 PM
Last Post: simplextech

Forum Jump:


Users browsing this thread: 1 Guest(s)