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.
I can't find the address of my city to put in the "rssfile" box, could you tell me where to find it? You talk about an RSS icon, but I don't see it. Somebody help me! Thanks.
In reply to Forge_User_49321885:
Forget it, wundergorund.com has killed their RSS feed, so this plugin won't work.
The developer would have to make it work with some other weather site's RSS feed.
@cppchriscpp Pls update for 1.8
In reply to Momito:
@crazytmonkey
I'm sorry, but no, I do not plan to implement that feature. It has been requested many times, but I just don't have the time/effort available to add that feature, and keep it maintained through every release. There is no simple API I can use for this kind of thing - it would add a ton of complexity to a relatively simple plugin.
I hope this isn't too disappointing. The source code is available on github if someone else wanted to use the existing code.
i would use them together but it is difficult to operate at the same rate
like this http://dev.bukkit.org/bukkit-plugins/skyoseasons/
can you have the temperature change biomes so if it is below 0 C it freezes water and snows
@ABCRic
Yeah... I suppose I hadn't thought through the failure case and how that was a bad practice. For now, going back to the previous version is the easiest option. (And I believe that was the only change)
Unfortunately I have limited access to a pc for the next few days, so I will not be able to address this (or the still-missing rss finder) for a little while. Time-permitting, I will try to get both of those done as soon as is possible.
Terribly sorry for the lack of maintenance folks! Will remedy it as soon as I can.
Hey there, thanks for making this plugin, I've been using it for the past couple years. Unfortunately, one of the changes in 2.1.5 completely breaks it in several cases. The change in question was making the weather synchronization task synchronous instead of asynchronous. This makes the networking request for weather data run on the main thread; that's a big no-no. This causes a massive server hang should the request fail.
Here's the relevant stack trace from a thread dump after one such hang:
@thegribben01
Try this: http://rss.wunderground.com/auto/rss_full/global/stations/03152.xml
No chance to work on that tool to extract them yet... still on my mind though. Perhaps the weekend will give me a few minutes.
@cppchriscpp
Hi, if possible could you get the "Source of the page" for Bonnybridge?
Thanks
Charles
@thegribben01
http://www.wunderground.com/blog/admin/comment.html?entrynum=5
Sure enough, you are right. Is there a particular location you're looking for? You can technically get the RSS feed URL by looking at the source of the page, but unless you feel comfortable I can do that for you. For anyone looking, look for this:
At some point over the next few days, I may try to make a tool to look this up. Terribly sorry for the inconvenience.
Hi,
Classic.wunderground.com doesn't work anymore :(. At least, I cant access the link.
@Mankin59
Afraid I have no plans of creating something like that right now. There have been a number of plugins that did that over the years, though. Here's one that's seen a bit of attention recently:
http://dev.bukkit.org/bukkit-plugins/real-time/
Sounds like newer versions of Spigot get a bit strange - see the last couple comments though - you might be able to get that to do what you want.
Love this plugin, maybe you could make a time sync plugin which works the same way? Maybe make them into one plugin, or seperate?
:P
@cppchriscpp
The bug has been fixed in the latest spigot build thanks!
@drew5494
So after updating to the latest spigot, I can reproduce the problem. But here's the strange thing: I can reproduce the problem without having WeatherSync installed.
I think you've isolated a problem with Spigot, not with this plugin. I think you'll need to file an issue with them. Their bug tracker is here: https://hub.spigotmc.org/jira/browse/
I did a quick search, and I didn't see anything like what you're experiencing. Sorry I can't be of more help!
@cppchriscpp
Yes even if I change weather manually it will change the weather in all worlds.
@cppchriscpp
Yes sorry I was just about to edit the comment World config: http://pastebin.com/chncmwj8 Plugins: http://pastebin.com/UXGBw7mc