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='https://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 = 'https://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.
- The topic ‘Weather Plug- incomplete img src’ is closed to new replies.