Closed jimmyhartington closed 2 years ago
If I use the menu command "Refresh All Widgets" the image updates.
If I use an AppleScript to just refresh this widget nothing updates.
tell application id "tracesOf.Uebersicht" to refresh widget id "serverroom-widget-index-coffee"
What if you add a query string with a random number so that url changes each time it refreshes?
I do not know how to do that.
Try:
<img class="ch-image" src="https://files.skabertrang.dk/jk/webcams/serverrum/image.jpg?rnd="""+Math.floor(Math.random() * 999999)+"""">
Thanks. That seems to work consistantly.
I have a simple widget to display an image from a webcam. The image is located on a web-server I control and is always called the same name. Is overwritten every minute by my camera.
But the widget seems to cache the image, since it has the same name.
Is it possible to have a widget not cache elements?
Widget code: