Author Topic: Tweaking Weather Graphic  (Read 1743 times)

0 Members and 1 Guest are viewing this topic.

Offline wxcrw

  • Member
  • *
  • Posts: 36
    • Castle Rock Weather.org
Tweaking Weather Graphic
« on: September 20, 2008, 12:07:27 AM »
My weather graphic need adjusting. When conditions call for windchill or heatindex, my temperature collides with the index or chill. I've played around bit with the script, but can't figure out how to separate those 2. It looks like they are part of a single variable. Anyone run into this same problem? Here is an example.
Castle Rock Weather
www.castlerockweather.org

Offline mackbig

  • Forecaster
  • *****
  • Posts: 4128
    • Mackie's Main Street, Unionville, ON Canada Weather
Re: Tweaking Weather Graphic
« Reply #1 on: September 20, 2008, 07:36:05 AM »
Try reducing the y value (the 54) in this statement in the config.txt file
imagecenteredtext(75, 54, "$temp$degree_units", 5, 18, $color4, 0);

in the function write_default() { section

windchill and dex are at 62, I guess that's too close

Andrew

Andrew - Davis VP2+ 6163, serial weatherlink, wireless anemometer, running Weather Display.  Boltek PCI Stormtracker, Astrogenic Nexstorm, Strikestar - UNI, CWOP CW8618, GrLevel3, (Station 2 OS WMR968, VWS 13.01p09), Windows 7-64

Offline Anole

  • Forecaster
  • *****
  • Posts: 585
    • http://pineislandweather.com
Re: Tweaking Weather Graphic
« Reply #2 on: September 20, 2008, 07:39:36 AM »
Wind chill and heat index locations are defined is a slightly different way in config.txt. They are found above the rest of the data locations and look like this:
Code: [Select]
// this section does the heat index and wind chill
  // it figures out what to show, wind chill, heatindex or nothing
  // depending upon your settings
  switch (TRUE){
  // if windchill is <= $wind_chill_threshold we'll output it
  case ($windchill <= $wind_chill_threshold):
       $feelslike = "Wind Chill: $windchill$degree_units";
       imagecenteredtext(75, 65, "$feelslike", 2, 7, $color3, 0);
  break;
  // if heat index >= $heat_index_threshold we'll output it
  case ($heatindex >= $heat_index_threshold):
       $feelslike = "Heat Idx: $heatindex$degree_units";
       imagecenteredtext(75, 65, "$feelslike", 2, 7, $color1, 0);
  break;
  } // end switch

Offline WeatherHost

  • Forecaster
  • *****
  • Posts: 3649
Re: Tweaking Weather Graphic
« Reply #3 on: September 20, 2008, 07:54:35 AM »
Are you asking about what it displays in values, or the vertical position overlap?


Offline wxcrw

  • Member
  • *
  • Posts: 36
    • Castle Rock Weather.org
Re: Tweaking Weather Graphic
« Reply #4 on: September 20, 2008, 07:23:25 PM »
Uhg, it was so easy to fix! i should have found that.  #-o Thanks for the help guys.  =D&gt; =D&gt; =D&gt;

Adjusted the temp up and the index/chill down. Looks great.

Regards,
Shawn
Castle Rock Weather
www.castlerockweather.org

 

anything