Author Topic: Saratoga Wx's Drought Page  (Read 1688 times)

0 Members and 1 Guest are viewing this topic.

Offline txweather.org

  • Forecaster
  • *****
  • Posts: 1597
    • Texas Weather
Saratoga Wx's Drought Page
« on: July 03, 2013, 05:59:32 PM »
Hello All,

Where can I find the script for Saratoga Wx's Drought?

TIA! :)

----
Davis Vantage Pro2 Plus +FARS|Meteobridge Nano SD|Meteohub|Meteobridge MR-3020|WU KTXSPRIN75/PWS JRARGWX75/CWOP EW2972/WBB TXWDVUE75/Blitzortung ID: 1142|AWEKAS: 12095
Donations are welcome: https://paypal.me/ffuentesb

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9298
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Saratoga Wx's Drought Page
« Reply #1 on: July 03, 2013, 10:41:27 PM »
It's not a 'script' as much as it is HTML in a copy of wxnewpage.php

Code: [Select]
<?php
############################################################################
# A Project of TNET Services, Inc. and Saratoga-Weather.org (Canada/World-ML template set)
############################################################################
#
#   Project:   Sample Included Website Design
#   Module:   sample.php
#   Purpose:  Sample Page
#   Authors:  Kevin W. Reed <kreed@tnet.com>
#                  TNET Services, Inc.
#
#   Copyright:  (c) 1992-2007 Copyright TNET Services, Inc.
############################################################################
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
############################################################################
# This document uses Tab 4 Settings
############################################################################
require_once("Settings.php");
require_once(
"common.php");
############################################################################
$TITLE langtransstr($SITE['organ']) . " - " .langtransstr('Drought monitor');
$showGizmo true;  // set to false to exclude the gizmo
include("top.php");
############################################################################
/////////////////////////////////////////////////////////////////////////////
//SETTINGS START HERE////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
//
// For State Drought setup
//
$state="ca"//enter your State using small letters.
//
$showregiona false;  //Set to true if you also want to show a regional map. If AK, HI, or PR, keep false.
$regiona="southwest"//If you want to show a regional drought map, enter
// west
// high_plains
// south
// midwest
// southest
// northeast
//
$showregionb true;  //Set to true if you also want to show an adjoining regional map. If AK, HI, or PR, keep false.
$regionb="west"//If you want to show an adjoining regional drought map, enter
// west
// high_plains
// south
// midwest
// southest
// northeast
//
$showus=true//Set to true if you also want to show the US Drought map.
//
/////////////////////////////////////////////////////////////////////////////
//END SETTINGS///////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
?>

</head>
<body>
<?php
############################################################################
include("header.php");
############################################################################
include("menubar.php");
############################################################################
?>


<div id="main-copy">
 <p>
<img style="width: 620px; height: 461px;" alt="State Drought"
 src="http://droughtmonitor.unl.edu/data/pngs/current/current_<?php echo $state?>_trd.png" /><br />
<br />
 <a href="http://www.usda.gov/oce/weather/pubs/Weekly/Wwcb/wwcb.pdf"
title="Weekly Bulletin">
Weekly Weather and Crop Bulletin</a><br/>
<?php
  
if ($showregiona) {  //  Shows Regional Map
?>

<br />
<img style="width: 620px; height: 461px;" alt="Regional Drought 1"
 src="http://droughtmonitor.unl.edu/data/pngs/current/current_<?php echo $regiona?>_trd.png" /><br />
<?php // end $showregiona  ?>

<?php
  
if ($showregionb) {  //  Shows 2nd Regional Map
?>

<br />
<img style="width: 620px; height: 461px;" alt="Regional Drought 2"
 src="http://droughtmonitor.unl.edu/data/pngs/current/current_<?php echo $regionb?>_trd.png" /><br />
<?php // end $showregionb  ?>
<?php
  
if ($showus) {  //  Shows US Map
?>

<img style="width: 620px; height: 477px;" alt="US Current Status"
 src="http://droughtmonitor.unl.edu/data/pngs/current/current_total_trd.png" />
<br />
<?php // end $showus  ?>
<br />
<img style="width: 620px; height: 477px;" alt="US Drought Outlook"
 src="http://www.cpc.ncep.noaa.gov/products/expert_assessment/season_drought.gif" />
</p> 
</div><!-- end main-copy -->

<?php
############################################################################
include("footer.php");
############################################################################
# End of Page
############################################################################
?>

Best regards,
Ken

Edit: corrected typos .. thanks to nincehelser :)

Edit: 5-Jan-2014 with updated URLs for the drought images.
« Last Edit: January 05, 2014, 12:14:58 PM by saratogaWX »
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline txweather.org

  • Forecaster
  • *****
  • Posts: 1597
    • Texas Weather
Re: Saratoga Wx's Drought Page
« Reply #2 on: July 03, 2013, 10:57:37 PM »
Thank you very much Ken!

----
Davis Vantage Pro2 Plus +FARS|Meteobridge Nano SD|Meteohub|Meteobridge MR-3020|WU KTXSPRIN75/PWS JRARGWX75/CWOP EW2972/WBB TXWDVUE75/Blitzortung ID: 1142|AWEKAS: 12095
Donations are welcome: https://paypal.me/ffuentesb

Offline nincehelser

  • Forecaster
  • *****
  • Posts: 3337
Re: Saratoga Wx's Drought Page
« Reply #3 on: July 03, 2013, 11:07:56 PM »
I see what looks like a couple of typos or bugs due to changes.

highplains should be high_plains

The US map URL is now http://droughtmonitor.unl.edu/drmon.gif

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9298
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Saratoga Wx's Drought Page
« Reply #4 on: July 03, 2013, 11:20:01 PM »
Thanks for spotting those, nincehelser .. I've updated the script with the corrections above.

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline txweather.org

  • Forecaster
  • *****
  • Posts: 1597
    • Texas Weather
Re: Saratoga Wx's Drought Page
« Reply #5 on: July 03, 2013, 11:21:04 PM »
I see what looks like a couple of typos or bugs due to changes.

highplains should be high_plains

The US map URL is now http://droughtmonitor.unl.edu/drmon.gif

Thanks for the pointer! :)

----
Davis Vantage Pro2 Plus +FARS|Meteobridge Nano SD|Meteohub|Meteobridge MR-3020|WU KTXSPRIN75/PWS JRARGWX75/CWOP EW2972/WBB TXWDVUE75/Blitzortung ID: 1142|AWEKAS: 12095
Donations are welcome: https://paypal.me/ffuentesb

Offline night

  • Senior Contributor
  • ****
  • Posts: 156
Re: Saratoga Wx's Drought Page
« Reply #6 on: January 05, 2014, 12:07:32 PM »
This script does not work for me?

Mark

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9298
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Saratoga Wx's Drought Page
« Reply #7 on: January 05, 2014, 12:15:40 PM »
Right... the source website changed the URLs for the images.  I've updated the source in the post above.

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline night

  • Senior Contributor
  • ****
  • Posts: 156
Re: Saratoga Wx's Drought Page
« Reply #8 on: January 05, 2014, 08:18:40 PM »
I used the post from July 03, 2013, 09:41:27 PM

Mark

 

anything