WeatherSync
WeatherSync
This plugin keeps the weather in the worlds on your server synchronized with the real-world weather in a location you specify. It does this by connecting to weather underground every few minutes (configurable; 5 minutes by default) and parsing the weather. This means if it's raining outside, it will be raining in minecraft. This is also true of thunderstorms.
You will want to configure it before you try to use it; otherwise it will synchronize your default world (named "world") with the weather in San Francisco, California. (Used for testing.)
This should work for any place you can get an RSS feed with weather in it from WeatherUnderground. See the directions below for how to find this, and if it does not work, feel free to ask for help. Please be sure to provide the URL you are using!
You can view the forecast with the /forecast command, which is available to all users. It will also show the current weather. This command can be disabled, if desired.
Download (This could be more recent than the version on this site if they have not approved the latest version yet. I strongly suggest using this link instead.)
Time synchronization:
Some people have expressed interest in having the real world time on their servers alongside this. I was going to code this myself, however there is something out there already that can do this. Check out RealTime for this!
FINDING THE RSS FEED
This plugin now asks you to provide the URL to an RSS feed to get the weather. The old method will not work past version 1.2. The method to get the URL to your RSS feed is as follows:
Navigate to http://classic.wunderground.com, and find your location.
Around the height of the title of the page on the far right is an RSS icon. You need to get the URL of this - right click it and copy the link address. It should look like:
http://rss.wunderground.com/auto/rss_full/global/somestuff.xml?units=english
Take this entire thing, and put it in the worlds section of your config file.
If you have problems finding this, just ask. My explanation here is not that good.
Alright cool. =3
@eternia16
I didn't even think of that when I saw the stuff about the next update. I am not sure if this is realistic or not, but it is at least a possibility. (There's probably a bit of overhead involved with converting over chunks, though it is possible that I could change them on the fly as chunks load, then change it for all existing chunks when the weather is changed.)
Thanks for pointing this out to me, and I'll see what I can do once I find the time. I'd really like to make this plugin work in that way.
In the next version of minecraft biomes are saved in the save filed and are no longer based on the seed of the world. So I would want to suggest if you would reconsider adding the freezing of water during frost.
It would be so awesome! =D
@Fluffgar
That's kind of a cool idea, though it seems very similar to the functionality of another plugin that is referenced in the description. Still, I suppose I could consider it; it's not quite the same thing.
Could a plugin set sunrise/set times to server lat/long sunrise/set times using wunderground.com?
Long days in summer/long nights in winter.
@eternia16
I have no plans for that feature at current, and do not expect to implement it. I'd prefer stick with how Minecraft naturally deals with that. This starts to poke at the issues with making it snow everywhere.
Sorry about that; you're stuck with the weather in whatever biome you're currently in, at least for now.
Can you make water freeze when the temperature drops below 0?
@calebstein
Yes. I can't control whether it rains or snows. That's controlled by the biome you're currently in. It will rain in some biomes, snow in others, and do nothing in desert biomes. (Theoretically, it could be done, but it would be insane amounts of work, and anything that went wrong would have the possibility of corrupting your world, etc...)
Is this meant to work with snow? It's snowing outside, /forecast says it's snowing, but in game it's only raining. Is that what's supposed to happen?
@bpiltz
That does not always work though, since some locations use weather stations, or city/state, or sometimes some stuff related to countries instead of zip codes. The admittedly more confusing way works every time, however.
A simple way to get the correct RSS is by inserting your zip code in the URL in the config like the following example (Chicago is 60623) : http://rss.wunderground.com/auto/rss_full/60623.xml?units=english
@Mal0ne
That seems more than plausible. Glad that your problems have subsided; let me know if you have any more issues!
Sure I'll do that in the future
However it seems to of stopped :/
Perhaps the rss was having issues on wunderground's part..
Happy new year!
@Mal0ne
Well, uh, it sounds like your server isn't able to connect to the weather underground site. See if you can connect to the site from your server manually.
If that works, there might be a problem with the plugin, and I ask you to please file a bug report. Please turn on debugging mode (debug: true at the bottom of the configuration file) and give me all output from the server that includes WeatherSync in any way, shape, or form.
@cppchriscpp
ah thanks man!
I'm using this throughout my worlds and its a nice touch
I find myself using it as a forecast for the weather outside as I'm too lazy to open a browser window lol
I'm getting this error lately though it was working fine up to this point:
2011-12-31 03:24:35 [WARNING] [WeatherSync] Could not read the weather; connection error. 2011-12-31 03:24:56 [WARNING] [WeatherSync] Could not read the weather; connection error.
@cky2250
The weather is based on the current conditions. The forecast is merely there as a convenience. If the weather (current conditions) and the forecast (string shown with the forecast command) are the same as shown on wunderground, the plugin is working.
ok it is acting odd. does it only pull from Rest of Today, it says 100% chance rain. Only problem is in minecraft it is not raining. Then in current conditions, it says 0% rain.
@Mal0ne
I'm not making those dev builds. They're automatic. Just use the release builds. Dev builds aren't even guaranteed to work.
The short answer, don't use them. A new RELEASE build just came out. Use that.
Update: I've disabled and removed the dev builds you saw. If you really want the dev code, the git repo does have the source.
Buddy you're driving me crazy with your dev builds :P
I love this plugin but I'm not sure how to use these zips you're providing hehe
Thank you for your hard work, but what do I do with the archives
YAY! This plugin finally made it to BukkitDev! This has to be one of my favorite plugins. Donate link?