Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
louis970
Visitor

Adding Weather like National, Tropical, Watches & Warnings

I have worked with Meteorologist Jason Scott on adding US National Forecast, Tropical Forecast, Current SPC Watches and Life Threatening Weather Warnings to my Station. I wrote the Pal Scripts and assisted in how to Update The MP3 files as needed to Play on my station.. We were able to get this competed and I wanted to share this with anyone else who would like to add Weather Forecasts for FREE in your ON-Air Rotation. Jason updates the files at http://www.SevereWeatherForecast.com

Here are the Pal Scripts to get the Forecasts ON-AIR if anyone wants to add them

National & Travel at 20 Past The Hour

Code:
// BEGIN MAIN Jason Scott National & US Travel Play at Approx 20 Minutes Past The Hour
PAL.Loop := True;

PAL.WaitForTime(T['XX:18:00']);
Queue.AddURL('http://www.severeweatherforecast.com/jasonscott/NATIONAL.mp3',ipTop);

PAL.WaitForTime(T['XX:18:00']);
Queue.AddURL('http://www.severeweatherforecast.com/jasonscott/USTRAVEL.mp3',ipTop);




Tropical Forecast at 40 past the Hour

Code:
// BEGIN MAIN Jason Scott Tropical Play at Approx 40 Minutes Past The Hour
PAL.Loop := True;

PAL.WaitForTime(T['XX:38:00']);
Queue.AddURL('http://www.severeweatherforecast.com/jasonscott/TROPICAL.mp3',ipTop);


Current SPC WATCHES at the Top & Bottom of the HOUR

Code:
// BEGIN MAIN Jason Scott SPC WATCH, WATCH UPDATE & Discussion Play at Approx TOP & BOTTOM of HOUR!
PAL.Loop := True;

// WATCH WILL LOAD AT TOP OF QUEUE AROUND THE TOP OF THE HOUR!
PAL.WaitForTime(T['XX:02:00']);
Queue.AddURL('http://www.severeweatherforecast.com/jasonscott/WATCH.mp3',ipTop);



// WATCH WILL LOAD AT TOP OF QUEUE AROUND THE BOTTOM OF THE HOUR!
PAL.WaitForTime(T['XX:29:00']);
Queue.AddURL('http://www.severeweatherforecast.com/jasonscott/WATCH.mp3',ipTop);


Life Threatening Warnings Queue every 15 minutes

Code:
// BEGIN MAIN Jason Scott WARNINGS will Play every 15 MINUTES OR HOW YOU SET THE TIMES!
// WARNINGS WILL BE TURNED OFF WHEN NO WARNINGS ARE BEING DISCUSSED
PAL.Loop := True;

// WEATHER WARNINGS WILL NOT BE ALL WARNINGS IN THE COUNTRY, JUST SPECIFIC DANGEROUS WARNINGS SELECTED BY JASON!

// SELECT HOW YOU WANT TO AIR WARNINGS BY REMOVING OR ADDING THE //

//PAL.WaitForTime(T['XX:20:00']);
//PAL.WaitForPlayCount(3);
PAL.WaitForTime('+00:15:00');
Queue.AddURL('http://www.severeweatherforecast.com/jasonscott/WARNING.mp3',ipTop);


Anyway I just wanted to share this in case anyone else was interested... If anyone has any Ideas on this I would love input..
0 Kudos