Author Topic: New Weather Alert Program  (Read 33363 times)

0 Members and 1 Guest are viewing this topic.

Offline mth

  • Member
  • *
  • Posts: 35
    • Relay, Maryland Weather
Re: New Weather Alert Program
« Reply #50 on: August 07, 2012, 09:32:27 AM »
Curly,

Many thanks for such a brilliant script.  Your continued sharing and support never goes unnoticed.  =D>

Michael
Michael Holden
Relay, Maryland Weather Station
http://www.relayweather.com
Davis Vantage Pro 2  -  Model 6153
 


Offline stormwatch

  • Senior Contributor
  • ****
  • Posts: 174
    • Carolina StormWatch Weather
Re: New Weather Alert Program
« Reply #51 on: August 09, 2012, 07:56:20 PM »
Thanks once again for a wonderful script!!! Glad to see you back providing this great work...hope you are feeling better! =D>

Offline Gordon

  • Senior Member
  • **
  • Posts: 79
Re: New Weather Alert Program
« Reply #52 on: August 10, 2012, 09:45:37 AM »
No surprises here...expected nothing but brilliance from Curly...

Thank you Sir!
Gordon

<iframe src='https://www.weatherlink.com/embeddablePage/show/3512bdb6075043fba2e0fbf66996d8f0/signature' width='760' height='200' frameborder='0'></iframe>

Offline Bunty

  • Forecaster
  • *****
  • Posts: 1951
  • Home of Oklahoma State University
    • Welcome to Stillwater Weather
Re: New Weather Alert Program
« Reply #53 on: August 18, 2012, 04:46:35 PM »
I had my first run with the program this morning.  I liked it, except when the alert page is finished loading, you have to scroll up to see the google map.  I'd rather the page open with google map visible to the viewer without scrolling.

Also the 2nd home page using modified AltDashboard 6.81 at http://stillwaterweather.com/wx/2ndhome.php

Offline Curly

  • Forecaster
  • *****
  • Posts: 724
    • Michiana Weather
Re: New Weather Alert Program
« Reply #54 on: August 18, 2012, 06:10:16 PM »
Quote
I'd rather the page open with google map visible to the viewer without scrolling.

Open nws-alerts-details-inc.php
Find and delete this line:
Code: [Select]
<a name="WA'.$aav[13].'" id="WA'.$aav[13].'"></a>
Save the file and upload it.

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1153
  • unnamed weather station, Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Re: New Weather Alert Program
« Reply #55 on: August 22, 2012, 11:13:18 AM »
Quote
I'd rather the page open with google map visible to the viewer without scrolling.

Open nws-alerts-details-inc.php
Find and delete this line:
Code: [Select]
<a name="WA'.$aav[13].'" id="WA'.$aav[13].'"></a>
Save the file and upload it.

I like that better, too.

Thanks, Curly!
John
W7JKG
BUY FROM AMAZON  HERE... Thank You! :-)

Offline jahuff

  • Member
  • *
  • Posts: 46
    • johnsnhweather
Re: New Weather Alert Program
« Reply #56 on: September 05, 2012, 12:10:05 AM »
Hi Curly,

Where do I permanently change the text in the advisory box on the index page from "No alerts" to "No Watches, Warnings or Advisories in Effect for Eastern Vermont, New Hampshire and Western Maine.". I had this working once but after an update I can't seem to find the location to change.  The index page can be seen at http://www.johnsnhweather.com/

Thanks for your help.

John

Offline Curly

  • Forecaster
  • *****
  • Posts: 724
    • Michiana Weather
Re: New Weather Alert Program
« Reply #57 on: September 05, 2012, 12:36:21 AM »
Quote
Where do I permanently change the text in the advisory box on the index page from "No alerts" to

That would be in the file nws-alerts.php
Find this line:
Code: [Select]
.'">No alerts</a></div>
Replace it with this:
Code: [Select]
.'">No Watches, Warnings or Advisories in Effect for Eastern Vermont, New Hampshire and Western Maine.</a></div>

Offline jahuff

  • Member
  • *
  • Posts: 46
    • johnsnhweather
Re: New Weather Alert Program
« Reply #58 on: September 05, 2012, 08:10:56 AM »
Thanks Curly, I have made the change, when the current SPECIAL WEATHER STATEMENT ends I should see my "No alert" message. John

Offline n7xrd

  • Forecaster
  • *****
  • Posts: 330
    • Beachhouse Weather
Re: New Weather Alert Program
« Reply #59 on: September 09, 2012, 12:09:30 PM »
Anyone have any idea why my IP on my server shows up on the who's online for hours at a time searching nws-alerts.php ?

Offline Curly

  • Forecaster
  • *****
  • Posts: 724
    • Michiana Weather
Re: New Weather Alert Program
« Reply #60 on: September 09, 2012, 12:40:29 PM »
Anyone have any idea why my IP on my server shows up on the who's online for hours at a time searching nws-alerts.php ?

I have no idea on this. The program is running like it should.
Are you using a cron job to run the program?

Offline n7xrd

  • Forecaster
  • *****
  • Posts: 330
    • Beachhouse Weather
Re: New Weather Alert Program
« Reply #61 on: September 09, 2012, 12:46:52 PM »
Anyone have any idea why my IP on my server shows up on the who's online for hours at a time searching nws-alerts.php ?

I have no idea on this. The program is running like it should.
Are you using a cron job to run the program?
Hi Curly thanks for the program!!!   As far as I can tell the program is working correctly just not sure why it stays connected I have Windows Scheduler set to every 10 minutes update!

Offline n7xrd

  • Forecaster
  • *****
  • Posts: 330
    • Beachhouse Weather
Re: New Weather Alert Program
« Reply #62 on: September 13, 2012, 01:10:50 PM »
Anyone have any idea why my IP on my server shows up on the who's online for hours at a time searching nws-alerts.php ?

I have no idea on this. The program is running like it should.
Are you using a cron job to run the program?
  Curly I noticed if I turn the Task Scheduler off my Guest goes offline...When I turn it back on to run the nws-alerts.php my Guest reappears and stays connected up to 80 hours one time so far..the Guest is MY servers IP  ?

Offline Curly

  • Forecaster
  • *****
  • Posts: 724
    • Michiana Weather
Re: New Weather Alert Program
« Reply #63 on: September 13, 2012, 05:54:47 PM »
Quote
I noticed if I turn the Task Scheduler off my Guest goes offline...When I turn it back on to run the nws-alerts.php my Guest reappears and stays connected up to 80 hours one time so far..the Guest is MY servers IP  ?

What time interval (in minutes) is set in the task scheduler to run the nws-alerts.php file?
What program is giving you the 80 hours?

Offline n7xrd

  • Forecaster
  • *****
  • Posts: 330
    • Beachhouse Weather
Re: New Weather Alert Program
« Reply #64 on: September 13, 2012, 05:59:33 PM »
Quote
I noticed if I turn the Task Scheduler off my Guest goes offline...When I turn it back on to run the nws-alerts.php my Guest reappears and stays connected up to 80 hours one time so far..the Guest is MY servers IP  ?

What time interval (in minutes) is set in the task scheduler to run the nws-alerts.php file?
What program is giving you the 80 hours?
10 minute interval and who's online was showing this...right now it's showing over 5 hours as I have been turning the interval on and off for testing today!
« Last Edit: September 13, 2012, 06:08:40 PM by n7xrd »

Offline Curly

  • Forecaster
  • *****
  • Posts: 724
    • Michiana Weather
Re: New Weather Alert Program
« Reply #65 on: September 13, 2012, 06:43:53 PM »
10 minute interval and who's online was showing this...

Manually running the program is working properly and it takes about 8 seconds run.
So the information, 80 hours, is the next possible source to look over.
How many days did it take to log the 80 hours ?   20 days?

Who's online has this:
Quote
2    Visitor(s) online (Considered inactive after 5 minutes. Removed after 15 minutes)

This is my theory since I don't use who's online.
I believe who's online is recognizing the nws-alerts.php file being ran every ten minutes and is continually cycling active and inactive for 24 hours a day.

Offline n7xrd

  • Forecaster
  • *****
  • Posts: 330
    • Beachhouse Weather
Re: New Weather Alert Program
« Reply #66 on: September 13, 2012, 07:34:05 PM »
10 minute interval and who's online was showing this...

Manually running the program is working properly and it takes about 8 seconds run.
So the information, 80 hours, is the next possible source to look over.
How many days did it take to log the 80 hours ?   20 days?

Who's online has this:
Quote
2    Visitor(s) online (Considered inactive after 5 minutes. Removed after 15 minutes)

This is my theory since I don't use who's online.
I believe who's online is recognizing the nws-alerts.php file being ran every ten minutes and is continually cycling active and inactive for 24 hours a day.
Thanks Curly I think I will increase the time between intervals and see what happens....maybe evey 30 minutes...

Online gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 1979
    • SouthEast Lincoln, NE Weather
Re: New Weather Alert Program
« Reply #67 on: September 22, 2012, 09:46:07 AM »
I just encountered a problem with nws-alerts, Curly.  We have a freeze warning issued locally, but it isn't showing up in my alerts.  Have I misconfigured something?

Atom Alerts displays it while nws-alerts doesn't.  (Don't click the links unless you have a fast broadband connection!)
Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline DaculaWeather

  • It's a Jeep thing... you wouldn't understand.
  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3159
  • SCCA EM #156
    • North Georgia and US Weather
Re: New Weather Alert Program
« Reply #68 on: September 22, 2012, 09:50:58 AM »
Makes sure that both zone and county codes are correct.

Offline Curly

  • Forecaster
  • *****
  • Posts: 724
    • Michiana Weather
Re: New Weather Alert Program
« Reply #69 on: September 22, 2012, 10:03:48 AM »
I just encountered a problem with nws-alerts, Curly.  We have a freeze warning issued locally, but it isn't showing up in my alerts.  Have I misconfigured something?

Atom Alerts displays it while nws-alerts doesn't.  (Don't click the links unless you have a fast broadband connection!)

The file nws-alerts.php wasn't updating.
After I manually ran the file, the Freeze Warnings showed up.
How is the nws-alerts.php file called and at what intervals? Cron? Task Scheduler? Every 10 minutes?

Online gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 1979
    • SouthEast Lincoln, NE Weather
Re: New Weather Alert Program
« Reply #70 on: September 22, 2012, 11:14:56 AM »
Thanks, Curly!

I had a CRON job set up under System Scheduler, but somehow while I was fiddling around recently with WD and other CRON jobs on that computer the CRON job got hosed because while the minutes to run (every 10) were still there, the hours to run (every hour) had gone missing.  #-o All fixed now, and thanks again! :-)
Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline n7xrd

  • Forecaster
  • *****
  • Posts: 330
    • Beachhouse Weather
Re: New Weather Alert Program
« Reply #71 on: October 02, 2012, 10:48:20 PM »
Is there a way to limit which alerts show in the top box om the site and still have all the warnings on the menu?

Offline Curly

  • Forecaster
  • *****
  • Posts: 724
    • Michiana Weather
Re: New Weather Alert Program
« Reply #72 on: October 03, 2012, 06:02:37 AM »
Is there a way to limit which alerts show in the top box om the site and still have all the warnings on the menu?

The alert box shows all.
Removing duplicate events is the only option to limit the amount of alerts.

Offline n7xrd

  • Forecaster
  • *****
  • Posts: 330
    • Beachhouse Weather
Re: New Weather Alert Program
« Reply #73 on: October 03, 2012, 08:31:17 AM »
Thanks Curly wasn't sure before you could just show your main county!! 

Offline Stetson1

  • Stetson Hills Weather
  • Forecaster
  • *****
  • Posts: 353
    • Stetson Hills Weather
Re: New Weather Alert Program
« Reply #74 on: October 28, 2012, 05:09:38 PM »
I must be stupid because I cannot get the errors at the top of my site to clear. This is what I am getting, not sure if it is permissions or I have screwed up the config. Any help is appreciated.

Todd


Warning: fopen(./cache/nws-alertsMainData.php) [function.fopen]: failed to open stream: Permission denied in /virtual/users/e16607-17912/web/nws-alerts.php on line 264

Warning: fopen(./cache/nws-alertsBoxData.php) [function.fopen]: failed to open stream: Permission denied in /virtual/users/e16607-17912/web/nws-alerts.php on line 426

Warning: fopen(./cache/nws-alertsIconData.php) [function.fopen]: failed to open stream: Permission denied in /virtual/users/e16607-17912/web/nws-alerts.php on line 515

Warning: fopen(nws-rssfeed.xml) [function.fopen]: failed to open stream: Permission denied in /virtual/users/e16607-17912/web/nws-alerts.php on line 582

Warning: fopen(./cache/nws-notes.txt) [function.fopen]: failed to open stream: Permission denied in /virtual/users/e16607-17912/web/nws-alerts.php on line 932

Warning: fputs(): supplied argument is not a valid stream resource in /virtual/users/e16607-17912/web/nws-alerts.php on line 933

Warning: fclose(): supplied argument is not a valid stream resource in /virtual/users/e16607-17912/web/nws-alerts.php on line 934
  
Weather Underground PWS KCOCOLOR131
MADIS ID: D4524