Author Topic: WEATHER34-Template with Meteobridge & Webcam  (Read 552 times)

0 Members and 1 Guest are viewing this topic.

Offline zitterbacke

  • Member
  • *
  • Posts: 13
WEATHER34-Template with Meteobridge & Webcam
« 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
« Last Edit: February 17, 2019, 12:51:39 PM by zitterbacke »

Offline weather34

  • its just my hobby
  • Forecaster
  • *****
  • Posts: 890
    • Weather34 Meteobridge MB-SMART
Re: WEATHER34-Template with Meteobridge & Webcam
« Reply #1 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

« Last Edit: February 17, 2019, 12:35:43 PM by weather34 »
"It is better to fail in originality than to succeed in imitation."--Herman Melville

https://weather34.com/homeweatherstation/meteobridge-mb-smart.html

Offline zitterbacke

  • Member
  • *
  • Posts: 13
Re: WEATHER34-Template with Meteobridge & Webcam
« Reply #2 on: February 18, 2019, 12:12:14 PM »
Hi Brian,

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

Regards, Jens

Offline rosegeek

  • Member
  • *
  • Posts: 10
    • Wunderground
Re: WEATHER34-Template with Meteobridge & Webcam
« Reply #3 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



Offline weather34

  • its just my hobby
  • Forecaster
  • *****
  • Posts: 890
    • Weather34 Meteobridge MB-SMART
Re: WEATHER34-Template with Meteobridge & Webcam
« Reply #4 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">
"It is better to fail in originality than to succeed in imitation."--Herman Melville

https://weather34.com/homeweatherstation/meteobridge-mb-smart.html

Offline rosegeek

  • Member
  • *
  • Posts: 10
    • Wunderground
Re: WEATHER34-Template with Meteobridge & Webcam
« Reply #5 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">

 

anything