Author Topic: How to add extra links using Weather34 template ?  (Read 1106 times)

0 Members and 1 Guest are viewing this topic.

Offline ik2rgt

  • Member
  • *
  • Posts: 3
    • Busto Arsizio Home Weather Station
How to add extra links using Weather34 template ?
« on: February 25, 2019, 10:48:48 AM »
Hello to all

First post here

I setup my Davis VP2 to load data using Weather34 Template and meteoBridge hardware
The site is : ik2rgt.altervista.org/

I' like to add some extra links on the webpage (for example local radar or satellite image) and, to do this, I checked YES in the screen attached


Now my question is : what file I have to modify to insert the url of the links I wannna show?

Thanks in advance for any answers

Emanuele
« Last Edit: February 26, 2019, 02:07:00 AM by ik2rgt »
http://ik2rgt.altervista.org/
Ham radio callsign: IK2RGT - W7RGT

Offline rosegeek

  • Member
  • *
  • Posts: 32
    • Laketown PWS
Re: How to add extra links using Weather34 template ?
« Reply #1 on: April 10, 2019, 04:04:46 PM »
By looking at your site, it looks like you figured it out.  Please share.

thanks!
Davis VP2, Meteobridge TPLink, PWS linked to Rachio Sprinkler System.
http://weather.gloryhomemi.com
http://weatherconsole.gloryhomemi.com

Offline txweather.org

  • Forecaster
  • *****
  • Posts: 1597
    • Texas Weather
Re: How to add extra links using Weather34 template ?
« Reply #2 on: April 10, 2019, 04:29:58 PM »
By looking at your site, it looks like you figured it out.  Please share.

thanks!

Second this! :D

----
Davis Vantage Pro2 Plus +FARS|Meteobridge Nano SD|Meteohub|Meteobridge MR-3020|WU KTXSPRIN75/PWS JRARGWX75/CWOP EW2972/WBB TXWDVUE75/Blitzortung ID: 1142|AWEKAS: 12095
Donations are welcome: https://paypal.me/ffuentesb

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5519
    • KomokaWeather
Re: How to add extra links using Weather34 template ?
« Reply #3 on: April 10, 2019, 05:15:51 PM »
You mean like on www.komokaweather.com/pws ?

Enjoy,
Paul

Offline dupreezd

  • Forecaster
  • *****
  • Posts: 512
Re: How to add extra links using Weather34 template ?
« Reply #4 on: April 10, 2019, 05:37:18 PM »
The file to modify is menu.php See snapshot. My WU API is still broken, so the radar maps are not working. Working on a WU replacement.
 [ You are not allowed to view attachments ]
« Last Edit: April 10, 2019, 05:41:38 PM by dupreezd »
Davis VP2 6163 | WiFi Logger
CWOP - FW0717
Blitzortung 2100

Offline rosegeek

  • Member
  • *
  • Posts: 32
    • Laketown PWS
Re: How to add extra links using Weather34 template ?
« Reply #5 on: April 10, 2019, 06:10:26 PM »
Wow, awesome sauce!   Love the Davis Console view!  I should have been a S/W guy instead of a H/W guy! 
I will look through your code (https://github.com/ktrue/CU-HWS/blob/master/menu.php).  Thanks for sharing.  I have a lot to learn!
Davis VP2, Meteobridge TPLink, PWS linked to Rachio Sprinkler System.
http://weather.gloryhomemi.com
http://weatherconsole.gloryhomemi.com

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9288
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: How to add extra links using Weather34 template ?
« Reply #6 on: April 10, 2019, 10:34:04 PM »
Thanks for the kind words.  The code was not my original code -- It was originally done by Brian (weather34) and then offered various versions supporting various weather software to some of us to care-and-feed for the future.

The version at https://github.com/ktrue/CU-HWS is for Cumulus realtime.txt (no DB, uses WU history)
Wim has a version for Weather-Display at https://wd34.weather-template.com/
Ian has a version for WeeWX at https://github.com/steepleian/WX-HWS
and Brian (weather34) has the main Meteobridge-only distribution at https://github.com/weather34/Meteobridge-Weather34-Template

While the appearance of each distribution is very similar, the distributions are not interchangable, so don't try to port a module you like from one to the other distribution -- the underbelly of the distributions (what makes it work) are mostly unique.
We do try to keep up with Brian's developments and adapt for our unique distributions. 
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: How to add extra links using Weather34 template ?
« Reply #7 on: April 11, 2019, 02:36:32 AM »
good morning

paulmy will be familiar with this file from 2017 was put together for cumulus users so it should still work its a file called wxcharts.php
basically you need to edit raw and insert your iframe,images etc into the file via an code editor.

idea is link from menu to this alternative page

frames should be 295(290 is better) width and 145 height to fit in each module cleanly .example of code and see screenshot

Code: [Select]
<!--Box 6 Insert link to source image or iframe keep width at 295px height 165px-->
 <iframe width="295" height="145" src="https://embed.windy.com/embed2.html?lat=<?php echo $lat ;?>&lon=<?php echo $lon ;?>8&zoom=6&level=surface&overlay=temp&menu=&message=true&marker=&forecast=12&calendar=now&location=coordinates&type=map&actualGrid=&metricWind=km%2Fh&metricTemp=%C2%B0C" frameborder="0"></iframe>
 <!--end Insert link to source image or iframe-->


« Last Edit: April 11, 2019, 02:38:53 AM by weather34 »

Offline rosegeek

  • Member
  • *
  • Posts: 32
    • Laketown PWS
Re: How to add extra links using Weather34 template ?
« Reply #8 on: April 11, 2019, 08:40:06 AM »
Thanks guys!  Two follow-up questions:
1) I was wondering if anyone has done a timelapse weathercam instead of the static image?  Ex. webcam.io directly or from Youtube?
2) Is there a php available for the virtual Davis Console?

Thanks again!!!
Davis VP2, Meteobridge TPLink, PWS linked to Rachio Sprinkler System.
http://weather.gloryhomemi.com
http://weatherconsole.gloryhomemi.com

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5519
    • KomokaWeather
Re: How to add extra links using Weather34 template ?
« Reply #9 on: April 11, 2019, 09:37:27 AM »
Quote
2) Is there a php available for the virtual Davis Console?
Brian (BCJKiwi) has modified from the original and is available here for Cumulus and WD https://silveracorn.nz/weather/wxscripts.php

Quote
paulmy will be familiar with this file from 2017 was put together for cumulus users so it should still work its a file called wxcharts.php
I had not carried forward this in the menu in the last few template updates, but have now added WXCHARTS.  Looks like a few blocks need looking at www.komokaweather.com/pws

Enjoy,
Paul