Author Topic: Ken's Storm Forecast  (Read 345 times)

0 Members and 1 Guest are viewing this topic.

Offline East Cobb Weather

  • Signature
  • Contributor
  • ***
  • Posts: 130
    • East Cobb Weather
Ken's Storm Forecast
« on: April 09, 2018, 01:22:45 PM »
This question really is for Ken,

Ken - I love the Storm Forecast graph on your Saratoga Meteogram page. Do you share the code for that? I think it's great! I'm assuming you customized it from Nordicweather's original script. I run one of his WXSIM scripts, but I certainly don't have that storm forecast graph...

https://saratoga-weather.org/wxsim-meteogram.php

No worries if it's not public, but figured I would ask. As always, great site!

Thanks!
Eric
Eric
Marietta, GA
East Cobb Weather
http://www.eastcobbweather.com


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6745
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Ken's Storm Forecast
« Reply #1 on: April 09, 2018, 02:24:50 PM »
Hi Eric,
Yes, it's an older version of a Henkka script from Nordicweather tweaked and adjusted for my site.

Sure, I'm willing to share (see attached).  It does require the a calling page with
Code: [Select]
<!-- WXSIM HEAD START -->
<?php
include 'hc11/meteogram/highchart.wxsim.php';
print 
$wxsimhead;
?>

<!-- WXSIM HEAD END -->

<div id="main-copy">
 <noscript><h3>Note: JavaScript must be enabled to view the Meteogram graphs</h3></noscript>
<!-- WXSIM BODY START -->
<?php 
print $wxsimbody;
?>

<!-- WXSIM BODY END -->
<p>My thanks to Henkka at <a href="http://www.nordicweather.net/">NordicWeather.net</a> for developing and freely sharing this Meteogram
presentation script of <a href="http://www.wxsim.com/">WXSIM</a> forecast data.</p>

</div><!-- end main -->
to invoke it.  And the attached in the ./hc11/* directory on the website.

In ./hc11/meteogram/hichart.wxsim.php customize the code
Code: [Select]
date_default_timezone_set('America/Los Angeles');
$rawfile = "/home/mywebsite/httpdocs/latest.csv";
$lat = "37.27"; // Your latitude
$long = "-122.02"; // Your longitude
$offset = "-8";            // Offset from UTC (normal time), positive for east
$usedaylight = true;    // Do your place use daylightsaving time?
to your particular webserver and locale configuration.
The $rawfile needs to use a FULL PATH to the lastret.csv file from WXSIM that must be uploaded to your website.. it's the source of the data for the meteogram.  The script only works with WXSIM at this time, so you'll need to run WXSIM to create your data.


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

Offline East Cobb Weather

  • Signature
  • Contributor
  • ***
  • Posts: 130
    • East Cobb Weather
Re: Ken's Storm Forecast
« Reply #2 on: April 09, 2018, 04:23:59 PM »
Ken, as always, you are amazing! Thank you sir! I'm working on installing it as we speak, so far so good.

Thanks again!!!!!!
Eric
Eric
Marietta, GA
East Cobb Weather
http://www.eastcobbweather.com


Offline SkyBoy

  • Member
  • *
  • Posts: 1
    • San Diego Weather @ Mission Trails
Re: Ken's Storm Forecast
« Reply #3 on: April 19, 2018, 03:20:48 PM »
Thanks for sharing Ken. I always liked this meteogram, thanks for bringing it back to life!  =D&gt;

http://www.wx4mt.com/wxsimStorm.php

 

anything