Author Topic: wx sticker question  (Read 984 times)

0 Members and 1 Guest are viewing this topic.

Offline cospringswx

  • Forecaster
  • *****
  • Posts: 4136
    • Colorado Springs Weather
wx sticker question
« on: June 26, 2013, 02:15:55 PM »
Does anyone know how to add the max gust for today on the wx sticker? The one in my signature says gust and I would like it to display the max gust so far today. The tag is $maxgst.




Ryan 

Colorado Springs, CO
www.cospringsweather.com
Davis Vantage Vue
Weather Display Software
Amcrest HD IP Camera

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: wx sticker question
« Reply #1 on: June 26, 2013, 05:08:06 PM »
Since you're using Weather-Display, the data is likely from clientraw.txt for the wx graphic.

Change wxgraphic.php from
Code: [Select]
   (float)$gust = round("$data[2]",$wind_prec);
to
Code: [Select]
   (float)$gust = round("$data[71]",$wind_prec);
to pick up the max gust for today from clientraw.txt which is field 71 (starting from the count of 0)

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 cospringswx

  • Forecaster
  • *****
  • Posts: 4136
    • Colorado Springs Weather
Re: wx sticker question
« Reply #2 on: June 26, 2013, 06:18:29 PM »
Thanks Ken. I will give this a shot when I get off work.




Ryan 

Colorado Springs, CO
www.cospringsweather.com
Davis Vantage Vue
Weather Display Software
Amcrest HD IP Camera

Offline cospringswx

  • Forecaster
  • *****
  • Posts: 4136
    • Colorado Springs Weather
Re: wx sticker question
« Reply #3 on: June 27, 2013, 12:04:06 PM »
Got it! I edited config.txt to change the wording from Gust to Max Gust Today.  :grin: \:D/




Ryan 

Colorado Springs, CO
www.cospringsweather.com
Davis Vantage Vue
Weather Display Software
Amcrest HD IP Camera