cloudy

Author Topic: * Severe Weather Summary Program  (Read 14859 times)

0 Members and 1 Guest are viewing this topic.

curly

  • Guest
* Severe Weather Summary Program
« on: February 08, 2011, 12:24:09 AM »
Get alerts for your area without using an ATOM or RSS feed.
This program will display each individual NWS Weather Forecast Office map of severe weather and details.

  • Selectable locations
  • Clickable map
  • Alert legend
  • Alert details
  • Alert box


Requirements:
PHP 5+
cURL support

Local Page
National Page
Download the SWSP program

« Last Edit: March 20, 2011, 10:36:44 AM by curly »

Offline CNYWeather

  • Professional Trophymaker!
  • Posts: 1,440
  • Rome, New York
    • CNYWeather.com
Re: * Severe Weather Summary Program
« Reply #1 on: February 08, 2011, 12:27:26 AM »
Awesome!!



Tony

CNYWeather.com
CWOP: CW2352
WeatherUnderground: KNYWESTM1


http://www.CNYWeather.com

I Make Trophies Too!
http://www.speedyawards.com

Offline ALITTLEweird1

  • Mark
  • Posts: 3,984
  • Snoqualmie,WA
    • Snoqualmie Weather
Re: * Severe Weather Summary Program
« Reply #2 on: February 08, 2011, 12:29:48 AM »
Awesome work Curly... Thanks for sharing.
"Nature can do without man, but man cannot do without nature."

Davis VP2 + 1-Wire Solar + 1-wire Lightning + 1-Wire UV + Logitech Webcam

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 22,157
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
    • http://www.realweatherstation.com
Re: * Severe Weather Summary Program
« Reply #3 on: February 08, 2011, 12:37:11 AM »
Awesome is the word =D>

Offline ALITTLEweird1

  • Mark
  • Posts: 3,984
  • Snoqualmie,WA
    • Snoqualmie Weather
Re: * Severe Weather Summary Program
« Reply #4 on: February 08, 2011, 01:23:23 AM »
"Nature can do without man, but man cannot do without nature."

Davis VP2 + 1-Wire Solar + 1-wire Lightning + 1-Wire UV + Logitech Webcam

Offline saratogaWX

  • Posts: 4,672
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
    • Saratoga Weather
Re: * Severe Weather Summary Program
« Reply #5 on: February 08, 2011, 03:12:18 AM »
I agree, that is awesome!

Thanks for sharing, Curly!!

Best regards,
Ken

Edit: my page is now up too http://saratoga-weather.org/NWS-alerts.php
« Last Edit: February 08, 2011, 09:16:06 PM by saratogaWX »
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

mth

  • Guest
Re: * Severe Weather Summary Program
« Reply #6 on: February 08, 2011, 12:52:06 PM »
Yet another fantastic script from Curly!  Your continued sharing is much appreciated  :D

Cheers!
Michael

Offline CNYWeather

  • Professional Trophymaker!
  • Posts: 1,440
  • Rome, New York
    • CNYWeather.com
Re: * Severe Weather Summary Program
« Reply #7 on: February 08, 2011, 02:18:12 PM »
Tony

CNYWeather.com
CWOP: CW2352
WeatherUnderground: KNYWESTM1


http://www.CNYWeather.com

I Make Trophies Too!
http://www.speedyawards.com

Offline jpmorgan49

  • JP
  • Posts: 316
  • Joliet, Il
    • jolietwx.com
Re: * Severe Weather Summary Program
« Reply #8 on: February 08, 2011, 02:25:37 PM »
Very Nice....
jp


Davis Vantage Pro2 Plus Wireless
WeatherLink Serial Datalogger
Iogear Serial to USB adapter
Acer Revo 3610 Nettop computer
Windows 7 64-bit

Offline rrrick8

  • Posts: 325
  • Danville, Illinois
    • Vermilion County Weather
Re: * Severe Weather Summary Program
« Reply #9 on: February 08, 2011, 03:26:24 PM »
Nice work as always Curly.

Of course, had to put my own style on the page.  8)
http://vermilionweather.com/nationaladvisorysummary.php
----------------------
Rick
EMA Severe Weather Manager
CWOP-CW9931 -  KILDANVI5

Blackjack52

  • Guest
Re: * Severe Weather Summary Program
« Reply #10 on: February 08, 2011, 06:56:24 PM »
This is a great script.

I'm having a problem though.

When I include it in my template pg I have a blank map; no default wfo. Settings are set.
Exactly what is the code to have the pg load (not from a link) with the map set to my default wfo of hsv?
Thanks.

Offline BigOkie

  • Posts: 623
  • Tulsa, OK
    • East Tulsa (Douglas)
Re: * Severe Weather Summary Program
« Reply #11 on: February 08, 2011, 08:25:33 PM »
This is a great script.

I'm having a problem though.

When I include it in my template pg I have a blank map; no default wfo. Settings are set.
Exactly what is the code to have the pg load (not from a link) with the map set to my default wfo of hsv?
Thanks.

As long as your template page is in the same folder as the SWS settings page, you should use:

Code: [Select]
<?php include ("SWSalerts.php");
?>

 I believe this is correct (without looking right now).

Blackjack52

  • Guest
Re: * Severe Weather Summary Program
« Reply #12 on: February 08, 2011, 09:02:18 PM »
Thanks,
That's what I'm using.
http://www.knology.net/~blackjack52/wxadvisorynew.php

I think I should be using
Code: [Select]
SWSalerts.php?WFO=hsv
somewhere, but not sure how. I've tried multiple code configs; nogo.

Config files are root w/ web templates.

Also, is cron only required for the alert box? If always required, what url suffix should I be using w/ vbs for task scheduler?


I'm missing something.

curly

  • Guest
Re: * Severe Weather Summary Program
« Reply #13 on: February 08, 2011, 09:56:08 PM »
Quote
When I include it in my template pg I have a blank map; no default wfo.

A "no map" condition would either be the map is not on the NWS page or an incorrect WFO ID is entered at  $myWFOnws.
What location is displayed in the drop down menu?  What do you have listed at $myWFOnws?  hsv?   
The script works for the WFO's listed in the drop down menu or in the SWS-core.php file in the $locList array and 'hsv' is not listed.

Quote
Exactly what is the code to have the pg load (not from a link) with the map set to my default wfo of hsv?

To get the map marked with the default location with the current alert details, just use the web page file name. example SWSalerts.php
When you add ?WFO=abc to the end of the file name, it shows the map with instructions.  example SWSalerts.php?WFO=lot

Offline BfdWx

  • Posts: 1,586
  • Branford Connecticut
    • Branford Weather
Re: * Severe Weather Summary Program
« Reply #14 on: February 08, 2011, 10:03:25 PM »
Curly,

First things first....great job and thank you!

I think I have a similar problem that Lee is having. If I put
Code: [Select]
<?php include("http://stillweather.com/SWSalerts.php?WFO=okx") ; ?> the map will show but clicking on any location will show nothing and going to a different NWS site takes me away from my page. Without the
Code: [Select]
?WFO=okx the map shows but will only show my default location.

Link to page = http://stillweather.com/numap.php

Thanks,

Jack

 

cumulus