WXforum.net

General Weather/Earth Sciences Topics => Severe Weather => Topic started by: WeatherHost on May 12, 2007, 04:02:18 PM

Title: Paging Carterlake, Paging Carterlake.......
Post by: WeatherHost on May 12, 2007, 04:02:18 PM
Two questions on your Severe Weather Alert script.


Could it be configured to play a .wav file when alerts are detected?  A different .wav file for each level of alert?

Can it be run locally on a PC or server rather than on a website?
Title: Re: Paging Carterlake, Paging Carterlake.......
Post by: carterlake on May 12, 2007, 06:32:40 PM
Oops... I wasn't logged in... so I wasn't seeing new posts...

You can program it to display any HTML you like... like HTML which plays a wav file. Yes.

The script is in PHP... so it behaves like PHP (server based, executed when the page loads).

I think what you're looking for is either a NOAA weather radio (mine works great!) or Interwarn.

Personally, I'd go with the radio.
Title: Re: Paging Carterlake, Paging Carterlake.......
Post by: kray1000 on May 12, 2007, 07:50:19 PM
Quote from: "WeatherHost"
Could it be configured to play a .wav file when alerts are detected?  A different .wav file for each level of alert?


I do something similar.  If the output for the script is a warning, I play my Weather Underground NOAA weather stream.

Something like...
Code: [Select]

if ($warning == '1') {
  $playradio = '1';
}

... you would then just need to add code to play the stream (like the embed tag in html)
Title: Re: Paging Carterlake, Paging Carterlake.......
Post by: WeatherHost on May 13, 2007, 12:37:44 AM
Quote
I think what you're looking for is either a NOAA weather radio (mine works great!)



Nope.  Got one of those also, but reception is flaky and warnings are sometimes delayed somewhat behind web based warnings.


Quote
Something like...



I don't know diddly 'bout no scriptin', so how would that look for a .wav file?  And do I need to run some local version of PHP?