I have a shape in Visual Overview that should show a thumbnail of a JPG that updates every 5 seconds. The URL stays the same, but the image changes. I'm using 'Link' shape data with the following value:
#http://<DMA IP>/VideoThumbnails/Video.htm?type=Generic Images&source=https://UrlToMyImage.com/myImage.jpg&proxy=false&refresh=5000
I see the image, but it's not refreshing. My source URL is not hard-coded like above, but comes from a parameter value. If I change the URL to something like myImage.jpg?1, it updates once. I think this is cached by the browser.
How can I properly refresh my image without having to update my parameter every 5 seconds, please?
There might be better solutions, but if you want a quick one:
In the Visio shape, replace the ?1 in your URL with ?[DataMinerTime]
That placeholder will updated every second. As the URL is each time unique, caching should no longer be an issue.
Note: In case 1-second updates are too fast, it's probably possible to manipulate the DateTime string trough RegexReplace in order to force a different update rate.
The workaround with [DataMinerTime] seems to work, but like Sebastiaan mentioned it’s not really nice for the eye. It refreshes the entire page and shows a white page for a fraction of a second…
This is indeed a workaround for the problem but do note that this comes at a performance cost (updating the url will cause a full navigation to be done).