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
  Display of an Extended Wait for User Image kblagron 4 236 09-20-2019, 02:21 PM
Last Post: kblagron
  Button Click changes button image? gReatAutomation 6 301 08-05-2019, 03:53 PM
Last Post: Dean Roddey
  Image Browser? gReatAutomation 8 665 06-26-2019, 06:12 PM
Last Post: gReatAutomation
  Image Pack Previews Not Available gReatAutomation 4 453 05-22-2019, 04:51 PM
Last Post: gReatAutomation
  Web Camera Widget Questions znelbok 4 659 01-03-2019, 03:27 PM
Last Post: sic0048
  Passing URL to a Web Widget kblagron 2 1,003 10-03-2018, 10:15 PM
Last Post: kblagron
  Widget table doesn't update Attributes tab rbroders 6 1,620 09-11-2018, 07:52 PM
Last Post: Dean Roddey
Question Boolean image is in error state ghurty 4 1,513 05-24-2018, 09:04 PM
Last Post: ghurty
  Using Overlay and Static Image Browser kblagron 2 1,400 03-11-2018, 11:59 PM
Last Post: kblagron
  Has there been changes to Slider Widget? pjgregory 11 4,101 03-10-2018, 10:32 AM
Last Post: Dean Roddey

Forum Jump:


Users browsing this thread: 1 Guest(s)