Support » Plugins » Weather Plug- incomplete img src

  • I’m having a weird issue with the weather plugin (the one started by Jeremiah)
    The images are not being displayed because the src attribute is incomplete. The output for the imaeg element is always this:
    <img src='http://leftjustified.net/images/wicons/' alt='Current Conditions'/>
    The appropriate weather icon isn’t being output for some weird reason…
    I haven’t changed anything besides the related settings, which are:

    $temperature = 'C'; //C|F (Temperature in Celsius or Fahrenheit)
    $display_temperature = 'yes'; //yes|no Whether to display the temp in the output
    $display_humidity = 'yes'; //yes|no Whether to display the Humidity in the output
    $display_wind = 'yes'; //yes|no Whether to display the Wind Speed and Direction in the output
    $display_dew_point = 'no'; //yes|no Whether to display the Dew Point in the output
    $display_visibility = 'no'; //yes|no Whether to display the Visibility in the output
    $display_clouds = 'yes'; //yes|no Whether to display the Cloud Conditions in the output
    $display_barometer = 'yes'; //yes|no Whether to display the Barometer in the output
    $display_wind_chill = 'yes'; //yes|no Whether to display the Wind Chill in the output
    $display_heat_index = 'yes'; //yes|no Whether to display the Heat Index in the output
    $local_time = '+10'; //X difference in hours from GMT - remember that if you observe daylight savings time you need to set it here.
    $sunrise_hour = '6'; //Hour to start using the Daylight icons instead of nightime (reccomend using a number between 3 and 10)
    $sunset_hour = '18'; //Hour to start using the Nightime Icons instead of daytime (reccomend using a number between 16 and 23)
    $use_icon_status = 'yes'; //yes|no Whether to display the Weather Icon in the output
    $wind_unit = 'km/h'; //km/h|mph|kt (kilometers, miles or knots)
    $visibility_unit = 'km'; //km|miles (kilometers or miles)
    $icon_location = 'http://leftjustified.net/images/wicons/'; //path to the icons.. this can be a sub-folder, but works better if it's a full http address
    $icon_extension = '.png'; //the three letter extension for your wicon's (usually '.png' or '.gif')
    $icon_alt_text = 'Current Conditions'; //The alt text for the icon display
    $cache_path = '/home/httpd/vhosts/leftjustified.net/httpdocs/weather_cache'; // absolute path & no trailing slashes | make sure you set write access to this folder.
    $cache_timeout = '1800'; //Time in seconds before we try to update the weather info
    $cache_debug = '0';

    Caching is working fine, it’s just the damn image!
    Thanks for your time 🙂
    Andrew.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Mark (podz)

    (@podz)

    Support Maven

    I just checked your site, and I see no styling ?

    Keep in mind that the img src path is generated on the fly. You can sorta see how it works if you look under:
    // icon
    In weather.php.
    Also keep in mind that some weather combinations won’t call an image (ie non has been assigned). For example, Heavy Drizzle is absent of an image everytime.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Weather Plug- incomplete img src’ is closed to new replies.