Author Topic: WXUSALERTS Clickable Alerts Map Script  (Read 14412 times)

0 Members and 1 Guest are viewing this topic.

Offline Silversword

  • --Stan Y.
  • Forecaster
  • *****
  • Posts: 439
    • Up Country Maui Weather
Re: WXUSALERTS Clickable Alerts Map Script
« Reply #25 on: January 30, 2013, 02:34:42 PM »
Hi,

Thanks Jerry for this page.  Looks good but, there is a but, for my layout.  See here http://www.dwayneyamato.com/wx/wxusalerts.php. How can I make it fit into my narrow format?

Thanks for any suggestions.

--Stan Y.
   Maui, Hawaii
Stan Y. - KH6HHG - Maui, Hawaii --- Blitzortung ID: 993 --- FlightRadar24 ID: F-PHOG1
Weather Display 10.37s Build 70
WDL 6.05
MS Windows 7 Pro
Dell Optiplex GX280-Intel Pentium 4 CPU 3.00GHz, 4 GB RAM
Davis Vantage Pro 2+ Wireless
1-Wire Lighting
Webcam: Axis 211

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 1979
    • SouthEast Lincoln, NE Weather
Re: WXUSALERTS Clickable Alerts Map Script
« Reply #26 on: January 30, 2013, 02:48:34 PM »
The clickable map has to be this size in order to be clickable.  Otherwise the hyperlinks on the map no longer point to the correct geographic location.  My apologies, but I quite some time ago abandoned any hope of keeping a strict 800px site width.  Hence the workarounds you see in wxusalerts and other overwide pages on on my site as well as the option  for a widescreen presentation.  Ken True, the author of our SaratogaWx templates, uses a dropdown menu system on his SaratogaWx site which displays wider pages without overflow.
Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline Silversword

  • --Stan Y.
  • Forecaster
  • *****
  • Posts: 439
    • Up Country Maui Weather
Re: WXUSALERTS Clickable Alerts Map Script
« Reply #27 on: January 30, 2013, 03:05:18 PM »
Thanks Jerry for the reply and will figure out on putting this page in a wide format and see what happens.  Will keep you posted on this.

Thanks again for this great page.

--Stan Y.
   Maui, Hawaii
Stan Y. - KH6HHG - Maui, Hawaii --- Blitzortung ID: 993 --- FlightRadar24 ID: F-PHOG1
Weather Display 10.37s Build 70
WDL 6.05
MS Windows 7 Pro
Dell Optiplex GX280-Intel Pentium 4 CPU 3.00GHz, 4 GB RAM
Davis Vantage Pro 2+ Wireless
1-Wire Lighting
Webcam: Axis 211

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 1979
    • SouthEast Lincoln, NE Weather
Re: WXUSALERTS Clickable Alerts Map Script
« Reply #28 on: January 31, 2013, 07:26:24 AM »
Today's updated zip, wxusalerts2a.zip, contains six new Legend items I added yesterday for a total of 54.  As more shades appear in the legend I'm finding it more and more difficult to match a legend item to the shade on the map.  Clicking on the map  to see the NWS Office's local legend is the best way I've found to resolve this problem, so I've included this suggestion in the explanatory text.
Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline Jumpin Joe

  • Forecaster
  • *****
  • Posts: 995
    • Joe's Live Weather
Re: WXUSALERTS Clickable Alerts Map Script
« Reply #29 on: January 31, 2013, 07:23:24 PM »
Thanks Jerry! =D>
Davis Pro 2 Plus Wireless D-FARS - Weather Link Serial 5.9.2
Weather Display Version10.37S Build 6
http://www.joesweather.info
Joe's Bloomsky 

CWOP: EW2334  Blitzortung ID: 791


Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 1979
    • SouthEast Lincoln, NE Weather
Re: WXUSALERTS Clickable Alerts Map Script
« Reply #30 on: February 01, 2013, 05:35:57 PM »
'Freeze Warning' showed up this afternoon, and is included in wxusalerts2b.zip at the top of this thread.
Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline Silversword

  • --Stan Y.
  • Forecaster
  • *****
  • Posts: 439
    • Up Country Maui Weather
Re: WXUSALERTS Clickable Alerts Map Script
« Reply #31 on: February 02, 2013, 04:55:00 PM »
Hi Jerry,

I got the wide format working for me, there is a couple more of those "buts".  Take a look here http://www.dwayneyamato.com/wx/wxusalerts.php.

I must be kinda brain challenged right now as to your tutorial as to the centering issue.  More guidance as to where to edit for centering.  I did the top.php line addition below the <head> and that did not help yet.

The other "but" is in the header or top is doing something weird because that one line on the top left, should be below the banner line.  Any guidance for this?

Thanks for your support and insight for this project.

--Stan Y.
   Maui, Hawaii
« Last Edit: February 03, 2013, 12:27:06 AM by Silversword »
Stan Y. - KH6HHG - Maui, Hawaii --- Blitzortung ID: 993 --- FlightRadar24 ID: F-PHOG1
Weather Display 10.37s Build 70
WDL 6.05
MS Windows 7 Pro
Dell Optiplex GX280-Intel Pentium 4 CPU 3.00GHz, 4 GB RAM
Davis Vantage Pro 2+ Wireless
1-Wire Lighting
Webcam: Axis 211

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 1979
    • SouthEast Lincoln, NE Weather
Re: WXUSALERTS Clickable Alerts Map Script
« Reply #32 on: February 02, 2013, 05:06:10 PM »
Right now I'm getting a 404 'not found' on that link, Stan.

There's an additional Legend item, 'Civil Emergency Message', that's posted in ND this afternoon due to blowing snow.  It's been added to wxusalerts2c.zip

Edit for Stan:  I found your page.  Just put the 'center' style above </head> on the wxusalerts.php like this:
Code: [Select]
<style type="text/css"> div.center {  width:100%;  margin-left: auto;  margin-right: auto; display:block }</style>
</head>
Hopefully this will resolve your header problems.  Then in the 'main-copy' <div>
Code: [Select]
<div id="main-copy" style=" border:inset; width:<?php echo ($_SESSION['CSSwidescreen']==? -806?>px">change it to
Code: [Select]
<div id="main-copy" style=" border:inset;">since you're not using the width selector.  The next <div> with a specified width:806px will then correctly center.
« Last Edit: February 02, 2013, 05:17:43 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline Silversword

  • --Stan Y.
  • Forecaster
  • *****
  • Posts: 439
    • Up Country Maui Weather
Re: WXUSALERTS Clickable Alerts Map Script
« Reply #33 on: February 03, 2013, 12:25:11 AM »
Hi Jerry,

Thank you for the reply and recommendations for those "buts".

The center is solved. "But" the header is still the same.  The "Aloha and Good !    Today is ,  February 02, 2013" and the temperature is supposed to go below the banner.  For some reason it is on the same line as the banner..

Otherwise it is much better centered and all the info is there.  That is the main thing that matters.

I also did a menu change to include the switcher module so people can choose the format they may like instead of what I have going.

Thanks again for all of your support and updates for your scripts.  I am currently using using your wxusaalerts-c version.

Found out why that 404 'not found' that you got.  Forgot about the wx portion.  Will edit that shortly.

--Stan Y.
   Maui, Hawaii
Stan Y. - KH6HHG - Maui, Hawaii --- Blitzortung ID: 993 --- FlightRadar24 ID: F-PHOG1
Weather Display 10.37s Build 70
WDL 6.05
MS Windows 7 Pro
Dell Optiplex GX280-Intel Pentium 4 CPU 3.00GHz, 4 GB RAM
Davis Vantage Pro 2+ Wireless
1-Wire Lighting
Webcam: Axis 211

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 1979
    • SouthEast Lincoln, NE Weather
Re: WXUSALERTS Clickable Alerts Map Script
« Reply #34 on: February 03, 2013, 08:36:45 AM »
Stan, I noticed that your header and subheader are similarly distorted on all pages whenever widescreen is enabled.  This is due to changes you have made in your header.php and possibly your top.php scripts.  Just restore your backup copies that you should have from before you began to modify them and all should be well.  If problems persist at that point modification should be fairly straightforward.  Do you have a 'localhos't server installed where you can test changes?
Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline Silversword

  • --Stan Y.
  • Forecaster
  • *****
  • Posts: 439
    • Up Country Maui Weather
Re: WXUSALERTS Clickable Alerts Map Script
« Reply #35 on: February 03, 2013, 02:05:16 PM »
Hi Jerry,

Thanks for the reply again and for your suggestions. I will take a look at my backups for the header and top scripts and see if there were changes there.  I will have to see if I have a "localhost" server.  If I do then I will have figure out how to use it for testing.  Thanks for that suggestion.

Will keep you posted on any improvements or otherwise..

--Stan Y.
   Maui, Hawaii

Stan Y. - KH6HHG - Maui, Hawaii --- Blitzortung ID: 993 --- FlightRadar24 ID: F-PHOG1
Weather Display 10.37s Build 70
WDL 6.05
MS Windows 7 Pro
Dell Optiplex GX280-Intel Pentium 4 CPU 3.00GHz, 4 GB RAM
Davis Vantage Pro 2+ Wireless
1-Wire Lighting
Webcam: Axis 211

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 1979
    • SouthEast Lincoln, NE Weather
Re: WXUSALERTS Clickable Alerts Map Script
« Reply #36 on: February 06, 2013, 02:32:07 PM »
'Hazardous Seas Warning' appeared today in the Pacific Northwest.  I've added it to wxusalerts2d.zip
Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 1979
    • SouthEast Lincoln, NE Weather
Re: WXUSALERTS Clickable Alerts Map Script
« Reply #37 on: February 07, 2013, 08:17:15 AM »
The Boston NWS Office has added 'Coastal Flood Watch', 'Hurricane Force Wind Watch', and 'Blizzard Watch' to the Legend entries this AM.  Let's hope things don't get that bad there.  The changes are in wxusalerts2e.zip
Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 1979
    • SouthEast Lincoln, NE Weather
Re: WXUSALERTS Clickable Alerts Map Script
« Reply #38 on: February 08, 2013, 09:48:52 AM »
The Nor'Easter has produced a 'Hurricane Force Wind Warning' off the New England coast today.  It's in wxusalerts2f.zip
Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 1979
    • SouthEast Lincoln, NE Weather
Re: WXUSALERTS Clickable Alerts Map Script
« Reply #39 on: February 08, 2013, 07:25:57 PM »
A Legend item, '911 Telephone Outage Emergency' has appeared without any associated text.  It's been added to wxusalerts2g.zip
Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 1979
    • SouthEast Lincoln, NE Weather
Re: WXUSALERTS Clickable Alerts Map Script
« Reply #40 on: February 15, 2013, 05:42:22 PM »
Another addition to the legend today was 'Hard Freeze Alert' for parts of Florida through Saturday night.  I added it in wxusalerts2h.zip
Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline ALITTLEweird1

  • Mark
  • Global Moderator
  • Forecaster
  • *****
  • Posts: 808
    • North Bend Weather
Re: WXUSALERTS Clickable Alerts Map Script
« Reply #41 on: February 17, 2013, 09:32:11 PM »
I got the page setup, but it seems the auto update isnt working correctly. On my page its showing     Maps update every two minutes.  ...

But on others its showing...       Maps update every two minutes.  Auto Update Active...

Mine is missing the auto update... Any ideas?

I also set this script up on my parents site, and the 3 dots ... blink green with the ajax, but mine doesnt seen to update.

http://www.northbendweather.com/wxusalerts.php

Thanks
Mark
« Last Edit: February 17, 2013, 09:33:51 PM by ALITTLEweird1 »
"Nature can do without man, but man cannot do without nature."


Software: WeatherDisplay
Hardware: Davis VP2 + VP2 Solar + VP2 UV + Lightning Detector + Logitech Webcam

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 1979
    • SouthEast Lincoln, NE Weather
Re: WXUSALERTS Clickable Alerts Map Script
« Reply #42 on: February 18, 2013, 08:32:59 AM »
I got the page setup, but it seems the auto update isnt working correctly. On my page its showing     Maps update every two minutes.  ...

But on others its showing...       Maps update every two minutes.  Auto Update Active...

Mine is missing the auto update... Any ideas?

I also set this script up on my parents site, and the 3 dots ... blink green with the ajax, but mine doesnt seen to update.

http://www.northbendweather.com/wxusalerts.php

Thanks
Mark
Your ajaxindicator isn't working for some reason.  Try changing
Code: [Select]
function reloadImage() {
var now = new Date();
if (document.images && (ajaxUpdates < update.maxupdates)) {
document.images.us.src = 'http://forecast.weather.gov/wwamap/png/US.png?' + now.getTime();
document.images.alaska.src = 'http://forecast.weather.gov/wwamap/png/ak.png?' + now.getTime();
document.images.hawaii.src = 'http://weather.gov/wwamap/png/hi.png?' + now.getTime();
}
setTimeout('reloadImage()',120000);
}
setTimeout('reloadImage()',120000);
to
Code: [Select]
function reloadImage() {
var now = new Date();
if (document.images) {
document.images.us.src = 'http://forecast.weather.gov/wwamap/png/US.png?' + now.getTime();
document.images.alaska.src = 'http://forecast.weather.gov/wwamap/png/ak.png?' + now.getTime();
document.images.hawaii.src = 'http://weather.gov/wwamap/png/hi.png?' + now.getTime();
}
setTimeout('reloadImage()',120000);
}
setTimeout('reloadImage()',120000);
and see what happens.  The reloadImage function won't time out, but it also now isn't dependent upon ajaxUpdates and update.maxupdates which I suspect are the source of your problem.
Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline ALITTLEweird1

  • Mark
  • Global Moderator
  • Forecaster
  • *****
  • Posts: 808
    • North Bend Weather
Re: WXUSALERTS Clickable Alerts Map Script
« Reply #43 on: February 18, 2013, 11:15:34 AM »
That didnt seem to fix it

My site http://www.northbendweather.com/wxusalerts.php is on e-rice

 My parents site http://www.fernwoodweather.com/wxusalerts.php is on 1and1
"Nature can do without man, but man cannot do without nature."


Software: WeatherDisplay
Hardware: Davis VP2 + VP2 Solar + VP2 UV + Lightning Detector + Logitech Webcam

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 1979
    • SouthEast Lincoln, NE Weather
Re: WXUSALERTS Clickable Alerts Map Script
« Reply #44 on: February 18, 2013, 11:29:38 AM »
That didnt seem to fix it

My site http://www.northbendweather.com/wxusalerts.php is on e-rice

 My parents site http://www.fernwoodweather.com/wxusalerts.php is on 1and1

Your map DOES autoupdate, the page just doesn't show the ajaxindicator.  You will have to troubleshoot that problem or just delete the ajaxindicator by changing
Code: [Select]
    <h4 align="center">Maps update every two minutes.&nbsp;&nbsp;<span class="ajax" id="ajaxindicator"><?php langtrans('Auto Update Active'); ?>...</span></h4>
to
Code: [Select]
    <h4 align="center">Maps update every two minutes.</h4>

The ajaxindicator IS working on your dashboard, so I'm not sure what's going on with wxusalerts.php.
Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline ALITTLEweird1

  • Mark
  • Global Moderator
  • Forecaster
  • *****
  • Posts: 808
    • North Bend Weather
Re: WXUSALERTS Clickable Alerts Map Script
« Reply #45 on: February 18, 2013, 11:34:12 AM »
OK... Im fine with the way it is, least its working. Thanks for the script Jerry.
"Nature can do without man, but man cannot do without nature."


Software: WeatherDisplay
Hardware: Davis VP2 + VP2 Solar + VP2 UV + Lightning Detector + Logitech Webcam

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 1979
    • SouthEast Lincoln, NE Weather
Re: WXUSALERTS Clickable Alerts Map Script
« Reply #46 on: February 18, 2013, 11:58:27 AM »
OK... Im fine with the way it is, least its working. Thanks for the script Jerry.

You're welcome.  Just be sure you've modified the reloadImage() function as I've indicated above because you have no way of restarting the autoupdater after a timeout.
Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 1979
    • SouthEast Lincoln, NE Weather
Re: WXUSALERTS Clickable Alerts Map Script
« Reply #47 on: February 20, 2013, 07:46:43 AM »
North Central Arkansas is under an 'Ice Storm Warning'.  Added to wxusalerts2i.zip in first post of this thread.
Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 1979
    • SouthEast Lincoln, NE Weather
Re: WXUSALERTS Clickable Alerts Map Script
« Reply #48 on: February 24, 2013, 12:37:38 AM »
Upper Mississippi Valley is under a 'Freezing Fog Advisory'.  Added to wxusalerts2j.zip in first post in this thread.
Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline cospringswx

  • Forecaster
  • *****
  • Posts: 4062
    • Colorado Springs Weather
Re: WXUSALERTS Clickable Alerts Map Script
« Reply #49 on: February 24, 2013, 12:48:30 PM »
The wording at the bottom is not lining up correctly. How do I fix this?

http://hayskansasweather.com/wxusalerts.php




Ryan 

Colorado Springs, CO
www.cospringsweather.com
Davis Vantage Vue
Weather Display Software
Hikvision HD IP Camera