Viewing 15 replies - 136 through 150 (of 207 total)
  • Had the same problem as Thomasso.
    What I did to solve it was to complete remove everything and get a fresh install. I then re-entered the parts that needed to be changed:
    $icon_location and $cache_path.
    Reinitialized and voila! it worked.
    Hope this helps
    Perogi.
    https://www.perogi.org/wordpress/

    I mean the actual metar file that is cached in the directory – I can’t remember what the error said and you have since removed the weather plugin, but it specified the actual file.

    Oh boy…. Ya, I removed it back on thursday, (July 22). I was getting too many complaints about people not being able to read the content. I just got a comment from Jeremiah as he sent me a link to a version that does not use the cache thingy…. (?) I haven’t treid it yet, I’m pretty swamped with exams and other things, however, I would like to play with it some more next week.
    @anonymous, ( aka perogi) I’m certainly going to give that a try also, but I did do a fresh install, but only with the newer updates not the older ones. I think what I’m going to do next time is load weather.php up, and send jeremiah a copy of that file if I run into more problems.
    I realy like this plug-in. Currently I have weather plug-in going that used Macro-media, but I would rather have the METAR information then just the icon and temp readout flashing all the time.
    I’ll give it another try and let you know what happens.

    I fugured out the solution to the
    Warning: fread(): Length parameter must be greater than 0. in /home2/bbenjami/public_html/wp-content/plugins/weather.php on line 229
    its becuase the station code

    I figured out the solution to the
    Warning: fread(): Length parameter must be greater than 0. in /home2/bbenjami/public_html/wp-content/plugins/weather.php on line 229
    its because the station code

    I figured out the solution to the
    Warning: fread(): Length parameter must be greater than 0. in /home2/bbenjami/public_html/wp-content/plugins/weather.php on line 229
    its because the station code

    is not being updated (or something).
    I tried to use the default code from texas after all of the same problems you had and it worked.
    What I did was go to https://weather.gov/tg/siteloc.shtml and just keep trying one until it worked and it was close enough.
    check my blog dansblog.freespeek.com i put the weather on the news/rss page (link at the top of page)

    anyone have any ideas why .weather_title won’t make the location bold?

    Great plugin, thanks!
    Does anyone have information what would be the most reliable station for northern Europe?
    KLFK gave merry good sunny weather when it’s actually raining like h*ll (not seen this kind of rain in many years) and thunder storming..

    nm, i went into the weather.php file and just made it bold in there. Prolly not the best way to do it, but it works for my layout.

    lawtai, put your li code in backticks so we can see it and it does not mess up the display.

    heh sorry about that

    I gotta tell ya, this plugin is terrific! I had it installed in short order, got the png transparency code implemented (from bobosola, earlier in the thread), and made short work of adding real-time(ish) weather to my site. Great stuff, Jeremiah — thanks for so much hard work on your part (as well as the other folks contributing to this thread).
    Colin
    https://www.phydeaux-deauxmayne.net

    I’ve noticed that the weather station I’m using (KSUS – Spirit of St. Louis Airport) is reporting a cloud status that appears to not be included in some of the code. It is called _VERTICAL in the code — I don’t exactly know what “vertical” clouds are!
    The problem with this cloud status is that the code is looking for an icon called “n_”, which of course, if can’t find.
    I started digging, and it looks like there’s not a stanza in process_metar to handle that cloud status, so I figured I’d look to see what it’s doing. The debug statement at the end of the big if returns “Cond status Cloud stat _VERTICAL Cond severity 0”
    Being the lazy guy I am, and until I figure out what vertical clouds are, I just duplicated the code for “overcast”, added the right cloud status to check for _VERTICAL and it seems to now be working. I chose the same icon that is used for “scattered clouds” as that’s what the sky looked like outside when we were experiencing “vertical clouds”.
    I bet there’s other weird codes the weather stations throw, but I thought I’d get that one out there for the masses.
    Colin
    https://www.phydeaux-deauxmayne.net

    Hello, Ijust installed the weather hack and all seemed OK until I tried to log in to WP. I noticed someone else had the same issue so I looked high and low for any unnessary spaces in my index.php or weather.php and couldn’t find anything. Here is a copy of the message I recieve when logging in:
    Warning: Cannot modify header information – headers already sent by (output started at /home/chris/public_html/wordpress/wp-content/plugins/weather.php:623) in /home/chris/public_html/wordpress/wp-login.php on line 149
    Here is a copy of where I inserted the weather station info. into the index.php:

      <?php WeatherIcon(‘CYOW’,’Ottawa, Ontario’) ?>
      <?php get_links_list(); ?>
      <li id=”categories”><?php _e(‘Categories:’); ?>
      <?php wp_list_cats(); ?>

    I only changed the station information, weather icon location and cahce path in weather.php. Any ideas? I’ll admit I’m new to this. The blog is located at https://declanmatthewryan.com.
    Thank you

Viewing 15 replies - 136 through 150 (of 207 total)
  • The topic ‘Weather Hack’ is closed to new replies.