Page 1 of 1
Image webcam old in webcam block and plugin
Posted: Mon Dec 17, 2018 10:33 am
by Meteofabro
I purchased an IP CAM WanScam HW-0022, and I insert the various snapshots inside the directory (/ photo) with a single file name (/photo/photo.jpg), and this is where the problem arises.
Every time I call my site (
http://meteofabro.it) the image of the cam is in the block of the home page and in the plugin it remains in the browser cache, and therefore the image is old.
After 10 minutes and following calls, return with the current date and time.
How can I solve the thing? and because after 10 minutes the image regenerates without problems?
Is it possible to correct the code?
Re: Image webcam old in webcam block and plugin
Posted: Mon Dec 17, 2018 9:20 pm
by Jachym
What is the URL of the webcam you used? The block has some mechanisms for preventing this, but your image must not have any parameters in the URL already
Re: Image webcam old in webcam block and plugin
Posted: Thu Dec 20, 2018 11:23 am
by Meteofabro
Re: Image webcam old in webcam block and plugin
Posted: Fri Dec 21, 2018 10:31 am
by andyk1
Hello!!!
Not really seeing you're problem as it may have been solved as I see a new image when looking at your site. I know this may be false as an image would regenerate with an older one. If you haven't yet check the webcam block and plugin for the correct settings. Also are you using meteobridge to feed or? as I can't tell what weather array you are using. Is FTP and you're cron job set correctly? More information is needed.
Andy
Re: Image webcam old in webcam block and plugin
Posted: Sat Dec 22, 2018 11:00 am
by Meteofabro
For the webcam block I solved by putting a direct link. but for the webcam plugin it still does not work for the preview of the image, and that is the plugin works and saves the images, but the initial preview displays an image of a few days ago.
I think it's enough to insert as you already did a random number at the end of the link:
x = Math.round (Math.random () * 10000;
newURL <? php echo $ i?> = newURL <? php echo $ i?> + "& randomize =" + x;
It's right?
Re: Image webcam old in webcam block and plugin
Posted: Sun Dec 23, 2018 11:27 am
by Meteofabro
As mentioned on the block I inserted a direct link to the webcam. For the plugin instead I have to display the image deposited every 5 minutes in my site.
The link I use is this:
http://meteofabro.altervista.org/mfwebc ... /photo.jpg
It works for loading images every 20 minutes, but the image of the preview that is next to the calendar is the old one loaded from the first view and not the last one.
http://meteofabro.altervista.org//plugi ... /index.php
the photo.jpg file is generated by the Weather Display software every 5 minutes and uploaded directly to FTP on my site.
How can I solve this problem?