WXforum.net

Weather Software => Meteohub/Meteobridge => Topic started by: zitterbacke on February 17, 2019, 11:17:11 AM

Title: WEATHER34-Template with Meteobridge & Webcam
Post by: zitterbacke on February 17, 2019, 11:17:11 AM
Hello, I’m using the Weather34 template with Meteobridge and everything works fine so far. Now I want to display my weather cam image on the Weather34 template but I cannot get it to work, maybe someone can help me here? What I have done so far is to insert the url to the external camera picture in the Meteobridge Weatherstation settings page.
In the Weather34 template I have „activated“ the webcamsmall.php module, but that is empty. What else do I have to do to see the webcam image on my Weater34 template?

BR, Jens
Title: Re: WEATHER34-Template with Meteobridge & Webcam
Post by: weather34 on February 17, 2019, 12:04:26 PM
hello im sorry should have done this months ago , now added option into easyweathersetup and added neccesary code in cam.php webcamsmall.php to read automatically from setup
..
Code: [Select]
<!-- HOMEWEATHER STATION TEMPLATE SIMPLE WEBCAM ' !!! -->
<img src="<?php echo $webcamurl?>?version=<?php echo filemtime($webcamurl);?>" alt="weathercam" class="webcamlarge">

https://weather34.com/homeweatherstation/  or https://github.com/weather34/Meteobridge-Weather34-Template

(https://res.cloudinary.com/brian-underdown/image/upload/v1550424906/mb1_afmlho.png)
Title: Re: WEATHER34-Template with Meteobridge & Webcam
Post by: zitterbacke on February 18, 2019, 12:12:14 PM
Hi Brian,

now it works. :grin: :grin: Thanks for your swift response and support.

Regards, Jens
Title: Re: WEATHER34-Template with Meteobridge & Webcam
Post by: rosegeek on April 10, 2019, 11:03:34 AM
It works fine but doesn't update after initial image.  Is there an update rate required somewhere or a {timestamp} required?

hello im sorry should have done this months ago , now added option into easyweathersetup and added neccesary code in cam.php webcamsmall.php to read automatically from setup
..
Code: [Select]
<!-- HOMEWEATHER STATION TEMPLATE SIMPLE WEBCAM ' !!! -->
<img src="<?php echo $webcamurl?>?version=<?php echo filemtime($webcamurl);?>" alt="weathercam" class="webcamlarge">

https://weather34.com/homeweatherstation/  or https://github.com/weather34/Meteobridge-Weather34-Template

(https://res.cloudinary.com/brian-underdown/image/upload/v1550424906/mb1_afmlho.png)
Title: Re: WEATHER34-Template with Meteobridge & Webcam
Post by: weather34 on April 10, 2019, 12:10:01 PM
hello

ive just pushed two files with a slightly different approach to bust the browsers from cacheing images.
tested with your url cam images period from 12:01 to 12:07 your local time overlaid on the images .



two files webcamsmall.php and cam.php

basically all it is using now is current date/time
Code: [Select]
<!-- HOMEWEATHER STATION TEMPLATE SIMPLE WEBCAM -add your url as shown below do NOT delete the class='webcam' !!! -->
<img src="<?php echo $webcamurl?>?v=<?php echo date('YmdGis');?>>" alt="weathercam" class="webcam">
Title: Re: WEATHER34-Template with Meteobridge & Webcam
Post by: rosegeek on April 10, 2019, 12:44:06 PM
Thanks!  It worked on my Android devices but not windows (Chrome in all cases).  What does 'YmdGis' do?  Should this be added permanently?

hello

ive just pushed two files with a slightly different approach to bust the browsers from cacheing images.
tested with your url cam images period from 12:01 to 12:07 your local time overlaid on the images .



two files webcamsmall.php and cam.php

basically all it is using now is current date/time
Code: [Select]
<!-- HOMEWEATHER STATION TEMPLATE SIMPLE WEBCAM -add your url as shown below do NOT delete the class='webcam' !!! -->
<img src="<?php echo $webcamurl?>?v=<?php echo date('YmdGis');?>>" alt="weathercam" class="webcam">