• Resolved alwiggins

    (@alwiggins)


    I currently upload my webcam images to a weather site which then then creates time lapse videos. I can embed the link to display the most recent image but am unable to find the method to auto-refresh that image on my site. I have seen some old plugins but nothing new or working, so I imagine that I need to add some coding for this task. Searching the net has not yielded much that’s helpful.

    I would be grateful if someone could point me in the right direction.

    Apologies if I have posted this request in the wrong forum.

    • This topic was modified 5 years, 10 months ago by alwiggins.
Viewing 2 replies - 1 through 2 (of 2 total)
  • If your linking to a specific image then you’ll always get that particular image or its replacement. If it’s some kind of widget or dynamic link then it should update on its own.

    If the widget or dynamic link then it might be a meta refresh set for every few minutes in the header will force an update. Probably not if the page is cached as there’s nothing telling it to refresh the image itself.

    You might find there’s a way to not cache that certain page itself. That might not be a good idea if it’s your most popular page though.

    There’s a plugin for adding meta refresh and even cache control headers to a single page or post.

    https://www.ads-software.com/plugins/addfunc-head-footer-code/

    https://www.ads-software.com/plugins/per-page-add-to/

    Either of the above works with my sites running up to 5.0.3 and using the Classic Editor but they may show a warning message about their last update being old.

    The code you need will look something like the below.

    <meta http-equiv="refresh" content="5;url=https://example.com/" />

    The number is in seconds and the refresh URL will be your page you wish to ‘revisit’!

    Thread Starter alwiggins

    (@alwiggins)

    Perfect. Thanks for the help.
    I used the per-page-ad-to and added the code you provided (tweaked for my site) and am now getting my feed updated.

    The updated feed was always available but since the page wasn’t refreshing the image wouldn’t. Now I’m fixed.

    This thread can be closed
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Refresh Embedded Image from another site’ is closed to new replies.