Viewing 15 replies - 16 through 30 (of 56 total)
  • Assuming the metar data doesn’t change before you do this, try finding the line:
    $wxInfo[‘CONDITIONS_SEVERITY’]==’0′) && $wxInfo[‘CLOUDS_STATUS’]==’1′)
    and change the severity to ==” and see if an image pops up. This is not a fix, just a test.

    Thread Starter zoblue

    (@zoblue)

    I changed it, and still got nothing. This is getting to be very strange. *cue twilight zone music*
    blog.zoblue.com/a-weather.php
    Let me check it again when I get home from work just in case. I’ll edit this post either way.

    What’s really odd to me is that Weather Icon, and Get Weather are both failing here.
    As far as I know there’s not any code shared between the two.
    Strange.
    (Actually, I just took a look at the code for get weather, and it’s pretty impressive, and definitely not borrowing code from weather icon)
    –Jeremiah

    Thread Starter zoblue

    (@zoblue)

    What’s really odd to me is that Weather Icon, and Get Weather are both failing here.

    I know! That’s why I’m trying both over here, cuz I wanted to see if it was just one plugin that didn’t work, but both of them don’t work.
    GetWeather doesn’t have a debug mode from what I can tell.
    I put the ‘0’ back in that line you asked me to change. Should I just give up?

    whether you want to give up or not is your call.
    I would like to try and figure this out, but it’s just Dependant on your tolerance for frustration.. lol
    I do have a slightly newer version you can try if you want to.
    there are quite a few things I would like to change about the way the plugin works, but I haven’t had time to make the changes lately.
    I’ve changed the Icon Alt and title tags to reflect the Cloud Status, and I’m wondering if those will work correctly on your server.
    I’ll have a link to the new code in just a sec.
    –Jeremiah

    here you go:
    http://www.sonicpling.net/weather/weather.phps
    version 1.1.3
    I got rid of some redundancy in the code that I had introduced with the addition of the $icon_extension bit. (I don’t know what I was thinking there. now it only appears in 2 places instead of 10+)
    made the condition status debug part of the full debug group and controlled by the cache_debug variable.
    Made the Icon Alt and Title tags reflect the icon that should be chosen rather than a generic status.
    no real substantial changes, and I doubt that it will make a difference, but it might be worth a try anyway.
    –Jeremiah

    I’ve udpated the weather.php file and I still get no icon. But I’m going to give it a few hours, just in case.
    I do get the title attribute to show up:
    <img src='http://blog.zoblue.com/wp-images/wicons/.png' alt='' title='mostly cloudy'/> So at least that works. :-S
    Like I said, I’m going to wait a few hours to see if it fixes itself (I can wish can’t I?).

    Thread Starter zoblue

    (@zoblue)

    The above post was made by me, just forgot to log in.

    I suspect you are going to have to look elsewhere for solving your problem – like some setting in php.ini

    I wonder why just that one bit of code is failing though.
    It’s really not doing anything that the rest of the code isn’t doing.
    this (to my untrained eye) is a very odd case.
    maybe we can put some debug information into the icon choosing code and give that a shot.
    let me see what I can come up with.
    –Jeremiah

    Thread Starter zoblue

    (@zoblue)

    Ok, cool. Thanks πŸ˜€

    Try this:
    http://www.sonicpling.net/weather/weather.phps
    version 1.1.4
    I’ve changed the way it writes out the icon info and added a little more debug information.
    –Jeremiah

    are any of these 2 versions worth using if you currently don’t have any problems and are using an older version?

    No

    Beel is far more industrious than I πŸ˜‰
    I’m just a hack. (know just enough to get myself into trouble).. lol
    –Jeremiah

Viewing 15 replies - 16 through 30 (of 56 total)
  • The topic ‘weather plugin icon’s not working’ is closed to new replies.