Author Topic: Now available - a metar-display.php script for non-Saratoga template use  (Read 3567 times)

0 Members and 1 Guest are viewing this topic.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
I've taken a couple of the support scripts from the Saratoga AJAX/PHP template set that are used to provide the template wxmetar.php display, and packaged them with the needed images and a new metar-display.php script so folks can have METAR conditions displays on their websites too.

All the customization needed is in the metar-display.php sample page, so it should be relatively simple for you to port the active content to your existing website template (or just run the metar-display.php page as-is on your site).

Docs/download from http://saratoga-weather.org/scripts-metar.php#metar

Enjoy!

Ken
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 Farmtalk

  • Fitzweather
  • Forecaster
  • *****
  • Posts: 4745
    • WV Waterfalls
Re: Now available - a metar-display.php script for non-Saratoga template use
« Reply #1 on: January 09, 2013, 09:30:20 PM »
Awesome script! Working great here! Thanks Ken!!!! 8-)
Joe Fitzwater
Chief Meteorologist for WVNS-TV 59 in Beckley, WV

Work Page on Facebook -> www.facebook.com/meteojoe
Work Page on Twitter -> https://twitter.com/meteojoe
Waterfalls -> www.wvfalls.com

Offline dasman

  • Forecaster
  • *****
  • Posts: 491
    • Wx Peotone
Re: Now available - a metar-display.php script for non-Saratoga template use
« Reply #2 on: January 09, 2013, 10:17:14 PM »
Thanks Ken this is great!         http://www.peotoneweather.com/metar.php

There have been a few scripts that are for the template set that I've wished had a stand alone version so I could use them.

Thanks again!

Dave
Dave Sommerfed
Peotone Illinois USA
CW7762, KILPEOT1
NWS COOP, CoCoRaHS, Spotter Network

Offline katlon

  • LONNIE'S WEATHER STATION
  • Contributor
  • ***
  • Posts: 142
  • GO HEELS!!!
    • LONNIE'S WEATHER STATION
Re: Now available - a metar-display.php script for non-Saratoga template use
« Reply #3 on: January 09, 2013, 11:22:04 PM »
Thanks Ken! Another fantastic script.

Lonnie

Offline overlookcircle

  • Senior Member
  • **
  • Posts: 57
    • Overlook Circle Weather and Birds
Re: Now available - a metar-display.php script for non-Saratoga template use
« Reply #4 on: January 10, 2013, 10:51:47 AM »
Cool! I'll give that a try. I've pulled out a few things from the templates and embedded them in my blog, namely the ajax console, local forecast and weather underground history.

Offline Jumpin Joe

  • Forecaster
  • *****
  • Posts: 1073
    • Joe’s Weather
Re: Now available - a metar-display.php script for non-Saratoga template use
« Reply #5 on: January 19, 2013, 02:17:01 PM »
I wanted to add a few reports that are not in my nearest 20 and found a way to do it. It may not be the best.... but it works. I'm sure Ken could come up with a better solution.

Using Ken's scripts for finding local METAR Reports... http://saratoga-weather.org/wxtemplates/find-metar.php

You simply plug-in coordinates that are close to the report area that you want, then copy the locations you want and paste them into the weather-settings.php file and wxmetar.php files accordingly.

I did have to figure out the miles, km's and direction from my station to override what the "find-metar.php" provides to make it accurate, fairly, from/to my site.

check it out.... http://joesweather.info/wxmetar.php

 
https://joesweather.info
Davis Vantage Pro 2 Plus 24-FARS Wireless
WeatherLink Live

Offline cospringswx

  • Forecaster
  • *****
  • Posts: 4136
    • Colorado Springs Weather
Re: Now available - a metar-display.php script for non-Saratoga template use
« Reply #6 on: January 19, 2013, 02:29:16 PM »
Looks good Joe! Here is mine..

http://hayskansasweather.com/wxmetar.php




Ryan 

Colorado Springs, CO
www.cospringsweather.com
Davis Vantage Vue
Weather Display Software
Amcrest HD IP Camera

Offline Jumpin Joe

  • Forecaster
  • *****
  • Posts: 1073
    • Joe’s Weather
Re: Now available - a metar-display.php script for non-Saratoga template use
« Reply #7 on: January 19, 2013, 02:35:24 PM »
Awesome Ryan!

Did you add yours the same way?
Joe
https://joesweather.info
Davis Vantage Pro 2 Plus 24-FARS Wireless
WeatherLink Live

Offline cospringswx

  • Forecaster
  • *****
  • Posts: 4136
    • Colorado Springs Weather
Re: Now available - a metar-display.php script for non-Saratoga template use
« Reply #8 on: January 19, 2013, 02:36:23 PM »
Awesome Ryan!

Did you add yours the same way?
Joe

Thanks and Yes.




Ryan 

Colorado Springs, CO
www.cospringsweather.com
Davis Vantage Vue
Weather Display Software
Amcrest HD IP Camera

Offline weatherforyou

  • Forecaster
  • *****
  • Posts: 545
  • My weather is on WeatherForYou.com. Is yours?
    • http://www.weatherforyou.com
Re: Now available - a metar-display.php script for non-Saratoga template use
« Reply #9 on: January 21, 2013, 01:36:10 AM »
Would you have a problem with me making a modification to the script I use on my local site (GrantsPassWeather.com) so I can also display RAWS and other personal weather station data in addition to METAR?  There are very few METAR stations with data relevant to areas around here but a number of RAWS stations and, of course, all the stations that send data to PWSweather.com.
Joe Torsitano


Offline dasman

  • Forecaster
  • *****
  • Posts: 491
    • Wx Peotone
Re: Now available - a metar-display.php script for non-Saratoga template use
« Reply #10 on: January 21, 2013, 08:56:26 AM »
Getting PWS data in this script would be cool!
Dave Sommerfed
Peotone Illinois USA
CW7762, KILPEOT1
NWS COOP, CoCoRaHS, Spotter Network

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Now available - a metar-display.php script for non-Saratoga template use
« Reply #11 on: January 21, 2013, 10:17:15 AM »
Would you have a problem with me making a modification to the script I use on my local site (GrantsPassWeather.com) so I can also display RAWS and other personal weather station data in addition to METAR?  There are very few METAR stations with data relevant to areas around here but a number of RAWS stations and, of course, all the stations that send data to PWSweather.com.

Absolutely ok with me, Joe .. feel free to modify the code as you desire and redistribute if you wish.

Best regards,
Ken
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 pwdiver

  • Beach Area Weather
  • Senior Contributor
  • ****
  • Posts: 255
  • My 1972 Challenger
Re: Now available - a metar-display.php script for non-Saratoga template use
« Reply #12 on: January 21, 2013, 06:32:28 PM »
Is there a web builder 101 site, I just reaquired my old claremontvaweather.com through 1and1 web hosting Im not sure where to start. I have never done web pages to the degree that I see on this site that look great mine where just generic weather sticker from wunderground. Any suggestion would be helpful thanks :???:

Offline flc85

  • Member
  • *
  • Posts: 17
    • Météo Fontenay
Now available - a metar-display.php script for non-Saratoga template use
« Reply #13 on: January 09, 2014, 01:41:35 AM »
Has anybody translated the script in another language?

Resolved for me in French

here the metar in french to my website
« Last Edit: March 28, 2014, 02:08:28 PM by flc85 »
Fontenay le Comte West France
Vantage Pro2 WL,WD,VVP,WXSIM
Blitzortung station id:559
French Blitzortung forum: www.blitzortung.fr

Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2297
    • CNYWeather
Re: Now available - a metar-display.php script for non-Saratoga template use
« Reply #14 on: January 09, 2014, 07:39:12 AM »
Getting PWS data in this script would be cool!


As far as the PWS data, I've got a ton around me. Can you grab more than one WU XML file at once to show their data?

 :grin:
« Last Edit: January 09, 2014, 12:22:38 PM by CNYWeather »
Tony




Offline Russell797

  • Senior Member
  • **
  • Posts: 81
    • Lowell Highlands Weather
Re: Now available - a metar-display.php script for non-Saratoga template use
« Reply #15 on: August 25, 2022, 07:54:46 AM »
php8.1 is throwing this error and display will not work.

 PHP Warning:  Undefined array key "RAW-METAR" in /var/www/html/metar_dsp/include-metar-display.php on line 243


http://lowellhighlandsweather.duckdns.org/metar_dsp/metar-display.php
« Last Edit: August 25, 2022, 08:03:51 AM by Russell797 »
Lowell Highlands Current Weather Conditions


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Now available - a metar-display.php script for non-Saratoga template use
« Reply #16 on: August 25, 2022, 11:27:19 AM »
I'm running PHP 8.1 on my site with no issues.. make sure you have the latest files from https://saratoga-weather.org/scripts-metar.php#metar  V1.19 of get-metar-conditions-inc.php
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 Russell797

  • Senior Member
  • **
  • Posts: 81
    • Lowell Highlands Weather
Re: Now available - a metar-display.php script for non-Saratoga template use
« Reply #17 on: August 25, 2022, 01:57:48 PM »
Mysteriously the gremlins decidend to let go of their hold on the script after 3 days of pullin my hair out and finally asking for help. It works now with no error messages and I did nothing but read your reply.  ](*,)

Thanks Ken!
Lowell Highlands Current Weather Conditions


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Now available - a metar-display.php script for non-Saratoga template use
« Reply #18 on: August 25, 2022, 03:46:10 PM »
It was obviously a case of "script fear of the author"  :roll:  :lol:
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

 

anything