cloudy

Author Topic: Storm Prediction Center - Report Script  (Read 5341 times)

0 Members and 1 Guest are viewing this topic.

curly

  • Guest
Storm Prediction Center - Report Script
« on: September 24, 2008, 12:38:05 AM »
The Storm Prediction Center issues a daily report of severe weather activity across the US. There are three categories of weather events, tornado, wind, and hail, that are reported in UTC time, or Zulu time, for a common time reference. If the US is getting hit with severe weather, these reports are hard to follow.
I have a script that makes it much easier to read and I would like to share it.
The weather events are combined and then sorted by the time in descending order. The report times are converted to your local timezone so the confusion of time offsets is eliminated. Also it has archived reports, a link back to the SPC web site, and is XHTML 1.0 strict.

The program can be viewed here  Click to view
Download it here  Download

This was tested on different servers with the help of Brian at http://www.nas-kan.org/Weather/    and   Beau at http://www.n9mfk.com/index.php


Curly
« Last Edit: January 14, 2010, 01:05:33 AM by curly »

Offline ALITTLEweird1

  • Mark
  • Posts: 3,858
  • Snoqualmie,WA
    • Snoqualmie Weather
Re: Storm Prediction Center - Report Script
« Reply #1 on: September 24, 2008, 12:43:29 AM »
Thanks Curly, Im also using this script..

http://www.snoqualmieweather.com/wxstormreport.php
« Last Edit: January 14, 2010, 01:20:51 AM by ALITTLEweird1 »
"Nature can do without man, but man cannot do without nature."

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

curly

  • Guest
Re: Storm Prediction Center - Report Script
« Reply #2 on: September 25, 2008, 10:17:42 PM »

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Storm Prediction Center - Report Script
« Reply #3 on: September 26, 2008, 12:40:28 AM »
That looks like a useful script, I might install it soon, thanks

Offline mth

  • Posts: 1,438
  • Baltimore, Maryland
    • Relay, Maryland Weather Source
Re: Storm Prediction Center - Report Script
« Reply #4 on: September 26, 2008, 08:55:35 PM »
Curly,

Got it working on my site but when a different date is selected it will not pull the new map. 
http://www.relayweather.com/wxspc.php

Michael


Update:  I got it to work by using the following code
Code: [Select]
<?php include("SPC.php"); ?>
I was previously using
Code: [Select]
<?php include("http://www.relayweather.com/SPC.php"); ?>
« Last Edit: September 26, 2008, 10:43:34 PM by mth »
Michael Holden
Relay, Maryland Weather Station
http://www.relayweather.com


Offline Stronghurst

  • You Are Never Alone With a Schizoid
  • Posts: 2,056
  • Stronghurst,IL USA
    • Burgus Computers
Re: Storm Prediction Center - Report Script
« Reply #5 on: February 13, 2009, 02:25:20 PM »
When I turned PHP5 on, this page stopped.  Any ideas?

Mark
http://www.burgus.org

Every day is a good day.  Just that some days are better than others.

Offline ALITTLEweird1

  • Mark
  • Posts: 3,858
  • Snoqualmie,WA
    • Snoqualmie Weather
Re: Storm Prediction Center - Report Script
« Reply #6 on: February 13, 2009, 02:34:17 PM »
try replacing <?php with <?php5 at the begginging of the script. Someone had me do that for somthing and it worked.
"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 Stronghurst

  • You Are Never Alone With a Schizoid
  • Posts: 2,056
  • Stronghurst,IL USA
    • Burgus Computers
Re: Storm Prediction Center - Report Script
« Reply #7 on: February 13, 2009, 03:36:00 PM »
I think Chuck is still working on my errors.  So I will not be able to make any new errors :)  until he is done.  As soon as I get the all clear I'll try this out.

Thank you
Mark
http://www.burgus.org

Every day is a good day.  Just that some days are better than others.

Offline andro700

  • Chuck
  • Posts: 3,208
  • Watford City, North Dakota
    • Chuck's Weather Page
Re: Storm Prediction Center - Report Script
« Reply #8 on: February 13, 2009, 08:29:43 PM »
That is strange e-rice uses php 5 and mine works just fine. Unless 1an1 has a setting set that is causing this issue.

Chuck

Offline andro700

  • Chuck
  • Posts: 3,208
  • Watford City, North Dakota
    • Chuck's Weather Page
Re: Storm Prediction Center - Report Script
« Reply #9 on: February 13, 2009, 08:34:29 PM »
It is working here Mark on Firefox.

Chuck

Offline Stronghurst

  • You Are Never Alone With a Schizoid
  • Posts: 2,056
  • Stronghurst,IL USA
    • Burgus Computers
Re: Storm Prediction Center - Report Script
« Reply #10 on: February 13, 2009, 08:35:36 PM »
Chuck I turned it off so as not to cause you any problems.

Mark
http://www.burgus.org

Every day is a good day.  Just that some days are better than others.

Offline ALITTLEweird1

  • Mark
  • Posts: 3,858
  • Snoqualmie,WA
    • Snoqualmie Weather
Re: Storm Prediction Center - Report Script
« Reply #11 on: February 13, 2009, 08:35:56 PM »
Im getting the same errors as Mark is running v5. Had to change back also.
"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 andro700

  • Chuck
  • Posts: 3,208
  • Watford City, North Dakota
    • Chuck's Weather Page
Re: Storm Prediction Center - Report Script
« Reply #12 on: February 13, 2009, 08:53:29 PM »
Mark,

Your SPC page is working and you have PHP 5 turned on right.

Chuck

Offline ALITTLEweird1

  • Mark
  • Posts: 3,858
  • Snoqualmie,WA
    • Snoqualmie Weather
Re: Storm Prediction Center - Report Script
« Reply #13 on: February 13, 2009, 08:54:03 PM »
lol..which Mark?
"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 Stronghurst

  • You Are Never Alone With a Schizoid
  • Posts: 2,056
  • Stronghurst,IL USA
    • Burgus Computers
Re: Storm Prediction Center - Report Script
« Reply #14 on: February 13, 2009, 08:58:37 PM »
Duh   I meant  Storm reports  :oops:

Mark
http://www.burgus.org

Every day is a good day.  Just that some days are better than others.

 

cumulus