Author Topic: CPC Outlook and Drought Monitor - Old Style  (Read 832 times)

0 Members and 1 Guest are viewing this topic.

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2533
    • SouthEast Lincoln, NE Weather
CPC Outlook and Drought Monitor - Old Style
« on: July 19, 2019, 07:49:46 AM »
I looked for a topic devoted to this script, but couldn't find one.  So here it is.

This script has been on my scripts page since I set it up, but other than an oblique reference in other threads I couldn't find anything.

The script emulates the old CPC home page that was designed for narrower views with single graphical map displays rather than the current side-by-side display.  It better fits into the narrow Saratoga template.

The CPC once again changed the url's, this time three month outlook locations for the temperature and precipitation maps.  These links have been updated in the current script.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1140
  • BismarckWeather.net
    • BismarckWeather.net
Re: CPC Outlook and Drought Monitor - Old Style
« Reply #1 on: July 19, 2019, 12:26:18 PM »
One thing I've liked to do is add in another slot at the bottom for my state's drought.  But I don't have it quite working fully. 

I had copied the US Drought Information section and modified it for my state.  If you roll over my state, it shows the correct image.  But when you go above to Monthly Outlook, it keeps my ND image and adds in the US version below that.  What did I do wrong?

Thanks for all your work.

https://www.bismarckweather.net/wxdrought3.php
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1140
  • BismarckWeather.net
    • BismarckWeather.net
Re: CPC Outlook and Drought Monitor - Old Style
« Reply #2 on: July 19, 2019, 12:31:12 PM »
Nevermind.  I just figured it out.  I was missing adding in the document.getElementbyID section at the top.

Thanks for all of your work.
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2533
    • SouthEast Lincoln, NE Weather
Re: CPC Outlook and Drought Monitor - Old Style
« Reply #3 on: January 18, 2020, 11:46:10 AM »
There was a severe problem in this script with the logic to update the 'One Month Outlook' graphics on the third Thursday of each month.  I think this has been corrected in the new script a zip of which is available for download on my site.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1140
  • BismarckWeather.net
    • BismarckWeather.net
Re: CPC Outlook and Drought Monitor - Old Style
« Reply #4 on: January 18, 2020, 03:40:24 PM »
Would you consider a suggestion?  Make an option to add in a state drought info page.  Maybe even pull from the Settings to enable and point it?

https://www.bismarckweather.net/wxdrought3.php

I tried adding in my state like usual to your updated script.  For some reason, it kills the US Drought Information:Monitor section picture.  So I've left it to the previous version for now.

Thanks for your work.
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2533
    • SouthEast Lincoln, NE Weather
Re: CPC Outlook and Drought Monitor - Old Style
« Reply #5 on: January 26, 2020, 09:08:24 AM »
Another subtle bug in the script logic appeared this morning.  :-( #-o It was only present on Sundays and only with the UNL drought monitor graphic which was displaying the prior week's map.

This has been corrected in the latest zip of the script which is available on my scripts page.  I've left some comments in the script if you're interested in what went wrong every Sunday.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2533
    • SouthEast Lincoln, NE Weather
Re: CPC Outlook and Drought Monitor - Old Style
« Reply #6 on: January 27, 2020, 08:10:27 AM »
...and my fix bombed this morning by pointing to the week prior's drought map! :oops:

Another revised zip is up on my scripts page.  I'll see how the new script plays out this week, as it hopefully points to the correct, most recent drought map.  (I may just be getting too old for this because the proper logic has persistently eluded me.  :-(  Hope not!)
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline Big Sky Weather

  • Senior Member
  • **
  • Posts: 66
Re: CPC Outlook and Drought Monitor - Old Style
« Reply #7 on: January 27, 2020, 12:39:08 PM »
...and my fix bombed this morning by pointing to the week prior's drought map! :oops:

Another revised zip is up on my scripts page.  I'll see how the new script plays out this week, as it hopefully points to the correct, most recent drought map.  (I may just be getting too old for this because the proper logic has persistently eluded me.  :-(  Hope not!)

Thank you for your hard work and dedication to providing such useful scripts for us that are not versed in web development/scripts/coding.

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2533
    • SouthEast Lincoln, NE Weather
Re: CPC Outlook and Drought Monitor - Old Style
« Reply #8 on: January 29, 2020, 07:56:56 AM »
Another failed attempt yesterday manifested in today's missing drought map because the script pointed to this Tuesday instead of last Tuesday.  #-o The maps aren't generated until Thursdays, later in the day.  Someday I might get the logic working correctly, maybe...

A corrected zip is once again available on my scripts page.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2533
    • SouthEast Lincoln, NE Weather
Re: CPC Outlook and Drought Monitor - Old Style
« Reply #9 on: January 30, 2020, 09:26:45 AM »
The script once again contained an error in the logic such that it was pointing to last week's drought map when this week's map is now up.  A re-re-re...revised script is up on my scripts page.

Also, I think I may have a way to avoid all of this wailing and gnashing-of-teeth altogether.  :shock: I will test this revision and put it up after wringing it out for a week or so.  Here's hoping, anyway!
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2533
    • SouthEast Lincoln, NE Weather
Re: CPC Outlook and Drought Monitor - Old Style
« Reply #10 on: February 06, 2020, 08:20:59 AM »
The script fell over regarding the UNL Drought Monitor graphic again this morning :sad:, but the revised logic kept right on ticking :grin:.  Accordingly, the revised logic has become the new standard (until it in turn becomes dysfunctional.)
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2533
    • SouthEast Lincoln, NE Weather
Re: CPC Outlook and Drought Monitor - Old Style
« Reply #11 on: September 22, 2022, 08:42:00 AM »
The CPC has foregone week 1 and moved to week 2 and week 3 for their tropical hazards forecast graphic.  Accordingly, a revised script is once again available on my scripts page as 'wxcpcdrought.zip'.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline mikeym2m

  • Contributor
  • ***
  • Posts: 149
    • MikeyM's Thornhurst PA Weather
Re: CPC Outlook and Drought Monitor - Old Style
« Reply #12 on: September 24, 2022, 09:14:18 AM »
Thanks Jerry  [tup]

MikeyM
www.mikeymsweather.com