jeremiah
Forum Replies Created
-
Forum: Plugins
In reply to: Weather HackBeel,
Just for you! ;-P
https://www.sonicpling.net/weather/weather.phps
–JeremiahForum: Plugins
In reply to: Weather HackI should probably make that an option.
does anyone else think that they’d like to see an option to set the sunset and sunrise times?
–JeremiahForum: Plugins
In reply to: Weather HackLook for these lines:
// if night, icon is different
if((intval($now)>='18' && intval($now)<='24' || intval($now)>= '0' && intval($now)<='6') && !$no_night) $wxInfo['ICON']= "n_".$wxInfo['ICON'];
It works in military time (24 hours)..
It says basically:
If the time is between 18 and 24 (hours) or if the time is between 0 and 6 (hours) then use the night icon.
If you want to see the moon at 9pm then simply change the ’18’ to: ’21’
–JeremiahForum: Plugins
In reply to: Weather HackThanks To Pericat for pointing out a flaw in the conversion from meters to miles for the visibility. Fixed that.
I’ve also changed the script to use gmdate so that the time offset works correctly. and added a debug so that you can see what it thinks the hour actually is.
I’ve also started actually using the version number!
so, version 1.1 is now available… same location:
https://www.sonicpling.net/weather/weather-plugin.zip
–JeremiahForum: Plugins
In reply to: Weather Hackdoh!
I keep forgetting to take multiple stations into account.
–JeremiahForum: Plugins
In reply to: Weather HackI just discovered that some called “slurdge” sent me a caching function. I’ve added it to the zip file until I get something better.
https://www.sonicpling.net/weather/weather-plugin.zip
it caches to a file in the plugins folder named “weather.txt”
–JeremiahForum: Plugins
In reply to: Weather HackSounds pretty nifty.
I look forward to seeing it.
–JeremiahForum: Plugins
In reply to: Weather HackBeel, is it caching to a file or to the wordpress db?
If we could get it to keep a cache in the database for each ICAO station then, that would pretty much finish every feature that I personally am wanting from this plugin.
And while you may be a novice, you obviously know more than I do, so if you get it working, then please send it my way and we’ll update the zip file!
I was playing with pericat’s weather plugin, and I didn’t see a speed difference when loading the same station a second time, so I didn’t pursue that very far. (I probably had something configured incorrectly.)
Using either this or pericat’s weather plugin seems, on average, to add about 1.2 seconds to the page load time for me.
–JeremiahForum: Plugins
In reply to: Weather HackBoy, I wish I had the time to sit down and really learn what I’m doing.. lol
Final update for now, (unless someone finds a bug)
Same location, new file:
https://www.sonicpling.net/weather/weather-plugin.zip
Changed the description of $local_time to reflect that it’s an offset from the server time, not from GMT.
Changed the way I was styling the weather item to be more semantically correct. (Thanks Beel!)
Updated the instructions to reflect the new style sheet changes needed.
That is all.
–JeremiahForum: Plugins
In reply to: Weather HackUpdated the zip file.. same location:
https://www.sonicpling.net/weather/weather-plugin.zip
Thanks to Beel, you can now have multiple stations showing on one page!
–JeremiahForum: Plugins
In reply to: Weather HackHere’s a good place to look for the ICAO METAR codes:
https://weather.gov/tg/siteloc.shtml
It doesn’t look as though the Wu-Chi Observatory does hourly reporting.
Maybe CNN has their own observation station?
–JeremiahForum: Plugins
In reply to: Weather HackBeel, I got the file.
I’ll try and get it into the zip this evening!
Many Thanks!
I sent you an e-mail BTW.
–JeremiahForum: Plugins
In reply to: Weather HackUpdated the zip file.. same location:
https://www.sonicpling.net/weather/weather-plugin.zip
I added an option to set the icon extension and also added Beel’s icons.
–JeremiahForum: Plugins
In reply to: Weather HackHere’s the link:
https://www.sonicpling.net/weather/weather-plugin.zip
Note; you still cannot have two locations displayed at one time, and I’m too lazy to try and fix it right now. if someone wants to do that and send me the updated file, I’ll host it.
I’m also thinking it would be nice to swipe some of pericat’s code to get it to keep a cache, but thats another thing I’m too lazy for.. lol
Beel: are you wanting me to include the gifs in the zip?
–JeremiahForum: Plugins
In reply to: Weather HackAnyone interested in testing this as a plugin?
I’ve got it working here, but I have a history of forgetting pieces.. lol
Link in a moment…