Page 1 of 1
Webcam plugin and Webcam block problem
Posted: Thu Oct 26, 2023 8:35 am
by tobydude
Hello.
Trying to get some help with the webcam block and webcam plugin.
To show webcam on your weather page, you need 3 scripts.
You need Webcam block, Webcam plugin and WebcamRename plugin.
In sep. the image stopet updateing to a new image on the weather-page. It has been the same image since september.
My webcam is uploading images correct to the server. But somewhere on the line, something goes wrong.
The images in the "/public_html/template/plugins/webcamRename/images" folder is still the same and doesn´t change.
Putting in screenshots of the settings. Hope someone understand what I mean.
Webcam Block:
Webcam Plugin:
WebcamRename Plugin:

Re: Webcam plugin and Webcam block problem
Posted: Thu Oct 26, 2023 10:45 pm
by davidefa
I see you are on meteotemplate 19.0, I have setup a local test installation with ver 19.0, need to check in the next days.
Agreed, in general webcam configuration is not super easy.
Re: Webcam plugin and Webcam block problem
Posted: Thu Nov 02, 2023 11:54 am
by amonphi
Hi guys,
I also have the exact same problem, webcam image stopped at 04:02 on 01 November 2023 unfortunately but I confirm that ftp and camera are ok.
I also attach the settings.

- Webcam.jpg (377.51 KiB) Viewed 81319 times
I don't know the reason, I checked several times but I don't understand if it's really the new update to meteotemplate 19.0, strange that it only showed up now, in my case I've already updated for quite some time.

Re: Webcam plugin and Webcam block problem
Posted: Fri Nov 03, 2023 7:08 pm
by tobydude
amonphi wrote: ↑Thu Nov 02, 2023 11:54 am
I also attach the settings.
Webcam.jpg
I see you have about the same settings as I have.
I guess we just have to be patient and wait for a new update.

Re: Webcam plugin and Webcam block problem
Posted: Fri Nov 03, 2023 9:21 pm
by davidefa
@tobydude
You can try version 1.5 of the plugin ( only minor changes of few deprecated warnings of php 8 ).
In the dynamic directory text box insert ( I modified the note to better explain the format ):
/#YY#/#MM#/#DD#
P.S.
Remember to copy the awebcamRename.php script in your load/crons directory

- webcamrename01.png (725.87 KiB) Viewed 81303 times
Re: Webcam plugin and Webcam block problem
Posted: Fri Nov 03, 2023 9:28 pm
by davidefa
@tobydude
These are the settings I used ( the highlighted settings are different, but your settings are ok ):

- webcam1.jpg (29.31 KiB) Viewed 81303 times

- webcamrename02.png (165.59 KiB) Viewed 81303 times

- webcamrename03.png (89.84 KiB) Viewed 81303 times
Re: Webcam plugin and Webcam block problem
Posted: Fri Nov 03, 2023 9:51 pm
by davidefa
@amonphi
It seems that your webcam is not sending new images.
Your WeatherCam/2023/11 directory is empty ( or at least, I can't see any 01, 02, 03... directory in it )
Re: Webcam plugin and Webcam block problem
Posted: Sat Nov 04, 2023 6:05 am
by tobydude
Thank you davidefa.
Webcam now works on the template front page.
I em still working on the webcam plugin settings.

Re: Webcam plugin and Webcam block problem
Posted: Sat Nov 04, 2023 10:23 am
by davidefa
I see your settings are ok now.
First part of day, till 7:28 still messy, then things went ok.
Re: Webcam plugin and Webcam block problem
Posted: Sat Nov 04, 2023 11:42 am
by tobydude
Yes it looks like it is up and running again.
Thanks for all help.
Unfortunately images and data before oct 6. is gone.
Again, thanks for help.

Re: Webcam plugin and Webcam block problem
Posted: Sat Nov 04, 2023 11:43 am
by amonphi
davidefa wrote: ↑Fri Nov 03, 2023 9:51 pm
@amonphi
It seems that your webcam is not sending new images.
Your WeatherCam/2023/11 directory is empty ( or at least, I can't see any 01, 02, 03... directory in it )
Hello sorry the delay...
last night I tried on the fly to update to the 1.5 version that you shared but, without a positive outcome.
As soon as I read that my Cam did not send images I went to check and in fact it gave me an error 451 but, I did not understand what it was sincerely due.

- Errore ftp.jpg (10.5 KiB) Viewed 81276 times
After various checks in the end I came to the head: failing to enter neither via WinSCP nor FileZilla (in addition to not recognizing the certificate ... it indicated that the name of the host did not correspond to the certificate), in the end I discovered that sending and access was blocked by the Nations filter set on Italy, on the Alervista.org portal, I had put it years ago for greater security and never created problems, now in white stitching everything.

- Filtro nazioni.jpg (37.27 KiB) Viewed 81276 times
Having said that, now it works again and access again, I just have to adjust some settings.
Thanks for the updates, effective
Re: Webcam plugin and Webcam block problem
Posted: Sat Nov 04, 2023 11:45 am
by amonphi
tobydude wrote: ↑Fri Nov 03, 2023 7:08 pm
amonphi wrote: ↑Thu Nov 02, 2023 11:54 am
I also attach the settings.
Webcam.jpg
I see you have about the same settings as I have.
I guess we just have to be patient and wait for a new update.
HI,
It is confirmed that more or less are the same ... luckily @davidefa keeps everything updated.
Thanks for the feedback
Re: Webcam plugin and Webcam block problem
Posted: Sat Nov 04, 2023 6:11 pm
by davidefa
I have updated also the webcam plugin so that images are saved at more regular intervals, and are 'aligned' for example at 0, 5, 10, 15... minutes ( if selecting to save images every 5 minutes ). Used the same algorithm used by api.php script.
But regularity of image savings depends also on cron job period and cron job jitter ( so YMMV ).
Not super tested ( so better backup old plugin first ), but works on my local test installation.
Re: Webcam plugin and Webcam block problem
Posted: Sun Nov 05, 2023 4:07 am
by tobydude
I have installed the updated plugin webcam_3.2.
The cron-job at cronjob-org is set to execute all scripts in the /public_html/template/load/crons folder every one minute.
I have set wbcam 3.2 to execute every 59 second.
So the image on the weather page changes every one minute.
Seems to work fine.
Re: Webcam plugin and Webcam block problem
Posted: Sun Nov 05, 2023 2:07 pm
by amonphi
davidefa wrote: ↑Sat Nov 04, 2023 6:11 pm
I have updated also the webcam plugin so that images are saved at more regular intervals, and are 'aligned' for example at 0, 5, 10, 15... minutes ( if selecting to save images every 5 minutes ). Used the same algorithm used by api.php script.
But regularity of image savings depends also on cron job period and cron job jitter ( so YMMV ).
Not super tested ( so better backup old plugin first ), but works on my local test installation.
Hi @davidefa,
now I also update the V3.2 plugin, but I wanted to ask you if formatting has also changed in the settings of the webcamRename plugins, because I can't show anything or only partially:
I enlarged Line Height at 50 (I couldn't see well);
I set font size at 30 (I wanted to try to see if I could better read the characters);
I left empty First Line Right Text (I don't care about the date because it already activates on the Cam);
In First Line Left Text I set #T#,#H#,#P#,#W#,#S# ;
In First Line Left Text Format I set Temp %0.1f - Hum %d%% - Pres %0.1f - Wind %0.1f - Sun %d (as indicated in your old post
viewtopic.php?t=2030&hilit=WebcamRename);
Since I want to view only one line, I left the second text field empty;
Finally, since I would like to be a possibly transparent color background, I set all the RGB values to 0 including the Alpha (which I seem to have understood that it serves for opacity).
I hope I have not made a slaughter!
Re: Webcam plugin and Webcam block problem
Posted: Sun Nov 05, 2023 2:31 pm
by davidefa
Could you pm me your settings.php file, as I can see your webcam.jpg is updated but not the webcam1.jpg ( and I can see no apparent error ), so I can test on my server
Re: Webcam plugin and Webcam block problem
Posted: Sun Nov 05, 2023 3:15 pm
by amonphi
davidefa wrote: ↑Sun Nov 05, 2023 2:31 pm
Could you pm me your settings.php file, as I can see your webcam.jpg is updated but not the webcam1.jpg ( and I can see no apparent error ), so I can test on my server
Ok I have you just sent it.
Thank you
Re: Webcam plugin and Webcam block problem
Posted: Sun Nov 05, 2023 5:38 pm
by davidefa
@amonphi
There is a small bug in the plugin ( if the left or right part of the first line is empty entire line is not displayed )
Ver 1.6 fixes it.
Re: Webcam plugin and Webcam block problem
Posted: Sun Nov 05, 2023 6:16 pm
by amonphi
davidefa wrote: ↑Sun Nov 05, 2023 5:38 pm
@amonphi
There is a small bug in the plugin ( if the left or right part of the first line is empty entire line is not displayed )
Ver 1.6 fixes it.
I just updated with the v1.6 and I confirm that it works now, just the transparency of the line background color I do not understand if it takes it or not but, tomorrow with the daylight I check, thank you very much. I work impeccable as always!
Re: Webcam plugin and Webcam block problem
Posted: Tue Nov 07, 2023 3:11 pm
by amonphi
davidefa wrote: ↑Sun Nov 05, 2023 5:38 pm
@amonphi
There is a small bug in the plugin ( if the left or right part of the first line is empty entire line is not displayed )
Ver 1.6 fixes it.
Hi,
today I experimented with the plugin and it works great again, except the transparency as mentioned above but I solved it by setting a black line with white font, it's not essential.
The biggest problem however is that the webcamTimelapse block no longer works and I can't find the reason...
- cronjob is active at 1min;
- in load/crons I put the "updateWebcam.php" and "awebcamRename.php" files copied respectively from the "webcam" and "webcamRename" plugins;
- in the attachment I insert cron.php and cron-error, if it helps to understand.
Thank you
Re: Webcam plugin and Webcam block problem
Posted: Wed Nov 08, 2023 6:12 pm
by davidefa
@amonphi
It seems your certificate has something to do with the problem.
If I configure my webcam plugin to get the image from your site using 'https' ( in image URL of the webcam setup ) the scripts gives this warning ( and the image is not loaded/saved )
Warning: file_get_contents(): Peer certificate CN=`angelonline.altervista.org' did not match expected CN=`meteopaparano.altervista.org'
If I use 'http' the script gives no error and the image is saved correctly ( so a quick fix is to modify the 'image URL' in the webcam plugin setup ).
In firefox I had to add an exception too, firefox ( Error code: SSL_ERROR_BAD_CERT_DOMAIN )
Re: Webcam plugin and Webcam block problem
Posted: Thu Nov 09, 2023 1:52 pm
by amonphi
davidefa wrote: ↑Wed Nov 08, 2023 6:12 pm
@amonphi
It seems your certificate has something to do with the problem.
If I configure my webcam plugin to get the image from your site using 'https' ( in image URL of the webcam setup ) the scripts gives this warning ( and the image is not loaded/saved )
HI,
I would never have understood that it was such a problem, once http was set everything was ok again.
Thanks again