Author Topic: Snow Script  (Read 1806 times)

0 Members and 1 Guest are viewing this topic.

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1308
  • BismarckWeather.net
    • BismarckWeather.net
Snow Script
« on: December 10, 2012, 10:09:42 AM »
Anyone running a script that retrieves the snow amounts from NWS to post on their site?  I manually enter into my Davis Console the melted snow amount that the NWS reported, just to keep my yearly rain fall amounts.

I was hoping for an automated way to get the data.  Worst case, I know of a simple text file I can get the snow amount.  I was thinking if I could enter in the snow amount into a text file I update on my website.  Then have some sort of script just read that text file and display the snow amount on my site.

Any help would be appreciated.
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline DaculaWeather

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3206
    • North Georgia Weather
Re: Snow Script
« Reply #1 on: December 10, 2012, 12:57:43 PM »
Weather-Display will do that.

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1308
  • BismarckWeather.net
    • BismarckWeather.net
Re: Snow Script
« Reply #2 on: December 10, 2012, 04:53:53 PM »
I have VWS...
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline JPB

  • Member
  • *
  • Posts: 28
Re: Snow Script
« Reply #3 on: December 10, 2012, 05:28:32 PM »
Yes, I have a script that will report snowfall amounts from the NWS for a set of periods from the present, broken typically into 12 hour segments. It returns a bunch of other stuff too. The goal of the script is to return a PHP 'array' of information to you, again broken into those 12 hour segments. You can see its output here: http://www.wxforum.net/index.php?topic=17430.0. My code is a work in progress, and I have not gotten it anywhere near to 'release ready'. But, if nobody else has something, I'd be happy to send you what I have, with a big 'caveat emptor' Please know it's more than one file (using some XML/SOAP support code), you'll need to create a bit of a directory structure on your website, there's no documentation (as it's a work in progress) and what is returns is a PHP array, not nice output for a web page.






Davis Pro 2, Meteohub