Author Topic: Storm Rain setup  (Read 1108 times)

0 Members and 1 Guest are viewing this topic.

Offline larryf

  • Member
  • *
  • Posts: 28
Storm Rain setup
« on: February 16, 2012, 11:05:46 AM »
I just upgraded to V3 of the Carterlake templates, the old site was so messed up I just deleted everything and started from scratch...

I'm having some trouble with Storm Rain, it's not updating on the website. I set up genstormrain in testtags, but it looks like I need to edit something else in settings. Should I replace vpstormrain with genstormrain?

When I looked at testtags.php this morning, I saw this:
$genstormrain =  '0.04 02/16/12';   // generic storm rain, hope it works
and this:
$vpstormrainstart = '0/0/0';  //Davis VP Storm rain start date
$vpstormrain = '0.00 .in';           //Davis VP Storm rain value


settings-weather.php has this line
$SITE['DavisVP']      = false;  // set to false if not a Davis VP weather station

The site is www.butlercountyweather.com

Any help or pointers would be appreciated!

Larry


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9244
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Storm Rain setup
« Reply #1 on: February 16, 2012, 02:15:52 PM »
Hi Larry,

You might try changing index.php page from
Code: [Select]
<?php if(isset($SITE['ajaxDashboard']) and file_exists($SITE['ajaxDashboard']))
to
Code: [Select]
<?php if(isset($genstormrain) and $genstormrain <> '') {
    list(
$vpstormrain,$vpstormrainstart) = explode(" ",$genstormrain);
    
$vpforecasttext '';
  }
?>

<?php if(isset($SITE['ajaxDashboard']) and file_exists($SITE['ajaxDashboard']))

That should set the variables needed to display the storm rain and suppress the Davis VP forecast.

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 larryf

  • Member
  • *
  • Posts: 28
Re: Storm Rain setup
« Reply #2 on: February 16, 2012, 05:20:50 PM »
Ken,

Thanks, that fixed it!

Really appreciate the help and the templates....

Larry

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9244
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Storm Rain setup
« Reply #3 on: February 16, 2012, 06:24:39 PM »
You're welcome :)

I've added your site to the list of websites too...

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

 

anything