Viewing 15 replies - 121 through 135 (of 207 total)
  • thanks for the png info. i was wondering if anyone knew how often the stations updated their info? cause i’m staring at rain/t-storms outside my window but all it says is overcast lol

    The metars usually update hourly but, on occasion, there are special observations.

    Too Good of a plug-in. Great job Jeremiah, and those who’ve helped out along the way.
    A question about the cache though. I seem to be getting the error below.
    Warning: fopen(https://127.0.0.1/wp-content/weather_cache/metar_cache_KSUU.txt): failed to open stream: HTTP wrapper does not support writeable connections. in /Library/WebServer/Documents/wp-content/plugins/weather.php on line 259
    I’m afraid I don’t know what a “wrapper” is.
    Any help’ll be much appreciated.

    Thread Starter jeremiah

    (@jeremiah)

    What do you have on this line:
    $cache_path = '/home/youruser/public_html/wordpress/wp-content/plugins/weather_cache';
    it looks as though you’re pointing it to an http address, but what you need is a filesystem path.
    –Jeremiah

    Oh… there you go. I did indeed have a web address there. I replaced it with the filepath and everything’s working just dandy. Thanks for the help!

    You need to be able to read and write to the directory

    I made wp-content and plugins both 777 and get the same results.

    I got that error when I was first messing with adding caching ability, but don’t remember exactly why. You have to chmod the directory in which you are saving the metar data. Check to see if you have set the cache path and station correctly and the caced metar file is where it should be.

    I got it working, I had to pick a weather station that was active.

    Yup, Anonymous, I’m have that same problem, I chmod the dir. to 777, I switched the dir. path around for the weather_cache.txt and I still can’t get it to read, or write? I double checked my dir. path to the weather_cache.txt and still seem to get the same warning. And yes, I checked, and tried several METAR stations. Could you have a look and see if you can figure out the prioblem?
    https://www.thomasso.com/
    Warning: fopen(/home/thomasso222/mainwebsite_html/wp-content/plugins/weather_cache/metar_cache_CYXX.txt): failed to open stream: No such file or directory in /home/virtual/site94/fst/var/www/html/wp-content/plugins/weather.php on line 259
    Other than that, the plug-in seems to be working. the icon shows up, all the information is there, just that cache problem.
    Thanks.

    thomasso: I couldn’t access a folder called weather_cache below the plugins folder. Do you have it somewhere else?

    Beel, good to hear from you… I took that folder out and shorten the dir. path by dropping the extra folder, “weather_cache.” Now, I have the dir. path going up to “plugins”in the weather.php, just to keep it simple. I made the “plugins” folder 777.
    still get the same errors ??
    I think the problem might be in the creating of the weather_cache.txt file when it tries to put the txt file in that folder?

    heh, how bout posting that updated weather script so none unix users can get to it?

    Thread Starter jeremiah

    (@jeremiah)

    Thomasso,
    have you tried pointing the cache here:
    /home/virtual/site94/fst/var/www/html/wp-content/plugins/
    rather than here:
    /home/thomasso222/mainwebsite_html/wp-content/plugins/
    ?
    I would assume that if your host is setup correctly, it should work either way, but I would try changing it and see what you get.
    –Jeremiah

    @ Jeremiah, I did what you said, and the resualt was the same… Stuart, also of Word-Press, asked me if I set the cache-debug back to “0” and see if that works, nothing, ?? I also put the “weather_cache” folder in the root of the website, and chemod it to 777. Still nothing. Stuart noticed that I’m still getting the weather info. from the METAR, so it is working, just not caching in for some reason? Maybe my server has a problem with the cache file?
    @beel, I’m not sure what you mean? Did you mean, “file” as in the weather.php, or did you mean the dir weather_cache?
    I can tell you some of the things I did. I tried renaming the dir weather_cache, and still the same error. I tried the HTML path, and instead of “fopen,” I get wrapper not found?
    So Jeremiah and BEEL, perhaps, could I run it with out the cache?

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