Webcam plugin and Webcam block problem

Post Reply
User avatar
tobydude
Forecaster
Forecaster
Posts: 206
Joined: Sun Jan 07, 2018 6:43 pm
Location: Norway
Station model: Netatmo
Software: Weatherdiaplay
Contact:

Webcam plugin and Webcam block problem

Post by tobydude » Thu Oct 26, 2023 8:35 am

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:
Image

Webcam Plugin:
Image

WebcamRename Plugin:
Image
Last edited by tobydude on Sat Nov 04, 2023 12:01 pm, edited 4 times in total.

davidefa
Expert
Expert
Posts: 888
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Webcam plugin and Webcam block problem

Post by davidefa » Thu Oct 26, 2023 10:45 pm

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.
Image

User avatar
amonphi
Advisor
Advisor
Posts: 64
Joined: Mon Sep 10, 2018 12:52 pm
Location: Italy
Station model: Ecowitt GW1003
Software: WU
Contact:

Re: Webcam plugin and Webcam block problem

Post by amonphi » Thu Nov 02, 2023 11:54 am

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
Webcam.jpg (377.51 KiB) Viewed 52664 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. :(
Image

User avatar
tobydude
Forecaster
Forecaster
Posts: 206
Joined: Sun Jan 07, 2018 6:43 pm
Location: Norway
Station model: Netatmo
Software: Weatherdiaplay
Contact:

Re: Webcam plugin and Webcam block problem

Post by tobydude » 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. :)

davidefa
Expert
Expert
Posts: 888
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Webcam plugin and Webcam block problem

Post by davidefa » Fri Nov 03, 2023 9:21 pm

@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
webcamrename01.png (725.87 KiB) Viewed 52648 times
Attachments
webcamRename_1.5.zip
(347.21 KiB) Downloaded 1246 times
Last edited by davidefa on Fri Nov 03, 2023 9:32 pm, edited 4 times in total.
Image

davidefa
Expert
Expert
Posts: 888
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Webcam plugin and Webcam block problem

Post by davidefa » Fri Nov 03, 2023 9:28 pm

@tobydude

These are the settings I used ( the highlighted settings are different, but your settings are ok ):

webcam1.jpg
webcam1.jpg (29.31 KiB) Viewed 52648 times
webcamrename02.png
webcamrename02.png (165.59 KiB) Viewed 52648 times
webcamrename03.png
webcamrename03.png (89.84 KiB) Viewed 52648 times
Image

davidefa
Expert
Expert
Posts: 888
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Webcam plugin and Webcam block problem

Post by davidefa » 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 )
Image

User avatar
tobydude
Forecaster
Forecaster
Posts: 206
Joined: Sun Jan 07, 2018 6:43 pm
Location: Norway
Station model: Netatmo
Software: Weatherdiaplay
Contact:

Re: Webcam plugin and Webcam block problem

Post by tobydude » Sat Nov 04, 2023 6:05 am

Thank you davidefa.
Webcam now works on the template front page.
I em still working on the webcam plugin settings.

Image

davidefa
Expert
Expert
Posts: 888
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Webcam plugin and Webcam block problem

Post by davidefa » Sat Nov 04, 2023 10:23 am

I see your settings are ok now.
First part of day, till 7:28 still messy, then things went ok.
Attachments
webcam01.png
webcam01.png (817.51 KiB) Viewed 52623 times
Image

User avatar
tobydude
Forecaster
Forecaster
Posts: 206
Joined: Sun Jan 07, 2018 6:43 pm
Location: Norway
Station model: Netatmo
Software: Weatherdiaplay
Contact:

Re: Webcam plugin and Webcam block problem

Post by tobydude » Sat Nov 04, 2023 11:42 am

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. :)
Last edited by tobydude on Sat Nov 04, 2023 11:55 am, edited 2 times in total.

User avatar
amonphi
Advisor
Advisor
Posts: 64
Joined: Mon Sep 10, 2018 12:52 pm
Location: Italy
Station model: Ecowitt GW1003
Software: WU
Contact:

Re: Webcam plugin and Webcam block problem

Post by amonphi » Sat Nov 04, 2023 11:43 am

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
Errore ftp.jpg (10.5 KiB) Viewed 52621 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
Filtro nazioni.jpg (37.27 KiB) Viewed 52621 times
Having said that, now it works again and access again, I just have to adjust some settings.

Thanks for the updates, effective
Image

User avatar
amonphi
Advisor
Advisor
Posts: 64
Joined: Mon Sep 10, 2018 12:52 pm
Location: Italy
Station model: Ecowitt GW1003
Software: WU
Contact:

Re: Webcam plugin and Webcam block problem

Post by amonphi » Sat Nov 04, 2023 11:45 am

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
Image

davidefa
Expert
Expert
Posts: 888
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Webcam plugin and Webcam block problem

Post by davidefa » 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.
Attachments
webcam_3.2.zip
(14.79 KiB) Downloaded 1066 times
Image

User avatar
tobydude
Forecaster
Forecaster
Posts: 206
Joined: Sun Jan 07, 2018 6:43 pm
Location: Norway
Station model: Netatmo
Software: Weatherdiaplay
Contact:

Re: Webcam plugin and Webcam block problem

Post by tobydude » Sun Nov 05, 2023 4:07 am

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.

User avatar
amonphi
Advisor
Advisor
Posts: 64
Joined: Mon Sep 10, 2018 12:52 pm
Location: Italy
Station model: Ecowitt GW1003
Software: WU
Contact:

Re: Webcam plugin and Webcam block problem

Post by amonphi » Sun Nov 05, 2023 2:07 pm

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!
Attachments
webcamRename settings.jpg
webcamRename settings.jpg (176.96 KiB) Viewed 52555 times
Image

davidefa
Expert
Expert
Posts: 888
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Webcam plugin and Webcam block problem

Post by davidefa » 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
Image

User avatar
amonphi
Advisor
Advisor
Posts: 64
Joined: Mon Sep 10, 2018 12:52 pm
Location: Italy
Station model: Ecowitt GW1003
Software: WU
Contact:

Re: Webcam plugin and Webcam block problem

Post by amonphi » Sun Nov 05, 2023 3:15 pm

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
Image

davidefa
Expert
Expert
Posts: 888
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Webcam plugin and Webcam block problem

Post by davidefa » 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.
Attachments
webcamRename_1.6.zip
(347.56 KiB) Downloaded 765 times
Image

User avatar
amonphi
Advisor
Advisor
Posts: 64
Joined: Mon Sep 10, 2018 12:52 pm
Location: Italy
Station model: Ecowitt GW1003
Software: WU
Contact:

Re: Webcam plugin and Webcam block problem

Post by amonphi » Sun Nov 05, 2023 6:16 pm

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!
Image

User avatar
amonphi
Advisor
Advisor
Posts: 64
Joined: Mon Sep 10, 2018 12:52 pm
Location: Italy
Station model: Ecowitt GW1003
Software: WU
Contact:

Re: Webcam plugin and Webcam block problem

Post by amonphi » Tue Nov 07, 2023 3:11 pm

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.
load-cron & error.zip
(55.05 KiB) Downloaded 783 times
Thank you
Image

davidefa
Expert
Expert
Posts: 888
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Webcam plugin and Webcam block problem

Post by davidefa » 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 )
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 )
Image

User avatar
amonphi
Advisor
Advisor
Posts: 64
Joined: Mon Sep 10, 2018 12:52 pm
Location: Italy
Station model: Ecowitt GW1003
Software: WU
Contact:

Re: Webcam plugin and Webcam block problem

Post by amonphi » Thu Nov 09, 2023 1:52 pm

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
Image

Post Reply