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.
@Wizards1234
I think it should. Just grab the url from wunderground and paste it in.
Would a link of (censored for obvious reasons)
rss.wunderground.com/auto/rss_full/US_2 Letter_State_Initials_Here/CITY_NAME.xml?units=english
work? I recall that being the link that the RSS button gave me. :)
@eternia16
Not likely to happen. I did see that someone picked up RealTime again recently though; you should be able to run that if you so desire.
Hey man,
So you were going to make a realtime mechanic? The plugin hasn't been updated for a while maybe you should update it or create your own? I would really appreciate your hard work.
)
I read every log of the weathersync plugin and it had an error! In the config file, on my "translated" version. I have used some accents and I forgot that minecraft doesn't accept that. Well, now it works! Thank you sir for your attention! Your plugin is AWESOME!
@guicoelho295
Okay, so this is a really strange problem, then. Literally the only things I can think of are to check that you are editing the correct file, and that it's in the correct place. Are you editing config.yml, and is this file in (your server directory)/plugins/WeatherSync/config.yml? If you rename this file, is a new one generated in the same place?
Also, if you could provide a startup log with any errors and especially any messages related to WeatherSync, that would be helpful.
@cppchriscpp
I already stopped and started the server, have restarted it a few times by the way. But it stills not working, doesn't recognize my changes on config.yml... I have no idea of what can be wrong. :X
@guicoelho295
There *is no way* to refresh the plugin. You will have to *restart* your server. Using /reload probably isn't going to cut it, as I hinted at in my last comment. I apologize, but if reload is not working, that's all I have to suggest.
I never tested this with the reload command, which I suppose was a mistake, but that's the reality of it. I didn't really expect many people to want to change the location of their server while it was running; that just did not occur to me as a valid use case.
If you still have this problem when you restart the server, a bigger problem is present, but from what I am reading, it sounds like you haven't tried that yet, and I expect that doing this will solve your problem.
Your config file looks perfectly fine by the way, so I wouldn't worry about that.
I'll see what I can do about the problem with reloading in a future release. If all else fails I'll add in a refresh command, but I would like to just get it to work correctly on a reload.
I tried all, reloading the plugin, changing to true the debug mode but nothing seems to change... it's like if the config.yml doesn't reload, it keeps the "default" config. Don't you have a command to force a refresh? Here, have my config code: http://pastebin.com/y5GcH878 I have set up for São Paulo - Brazil and translated some parts from english to portuguese. If you need any more information, please ask me. I'm really looking forward using this awesome plugin!
@guicoelho295
I would not be surprised to find out that you need to restart the server to get this plugin to work correctly.
Are you sure that you are updating the correct file, and more importantly that it is in the right location? I'd be surprised if you were able to set your location correctly using the RSS file but then were unable to set the units. I did double-check to make sure that I gave you the correct extensions, and i did, so that isn't the problem.
If you do not think the file is updating, try changing your location and restarting and see if that has any effect. If not, something is definitely wrong. You can also add the key debug: true to the config file to test it. This won't tell you anything useful in this case most likely; it will just add some additional output that you can use to verify that updating the yml file works.
Let me know what happens, and I hope it works out.
I had tried that but it does not work, all my units keep in english. It's really strange cause I noticed that the config.yml doesn't seem to work, I change the messages and RSS files and in game it doesn't show any changes. Obviously, I've tried to reload and close & open the server. Using Multiverse, Worldguard, PEX and Essentials.
@guicoelho295
See the ?units=english or ?units=metric at the end of your rss url? Change that. If it's not there, add it. Let me know if you have any further questions.
Hey, how can I change the units?
@RedMser
I can't change how the rss file is formatting, and I am not writing something to start parsing english out of the forecast to change problems with how they are reporting weather. Sorry.
I'm glad you like the plugin, and I hope it continues to serve you well otherwise.
It is really weird how it is showing the weather... "Light Rain Showers Rain. High:14 degrees C." I am german and I don't really know how weather is said in other languages, but perhaps add a way to change how it shows the weather. I took a look at the rss file and I see how it is build, but isn't it possible to remove that second "Rain" when it is raining and just show it like "Light Rain Showers. High:12 degrees C."? I don't know if that is that easy, but it is just a bit confusing for me. Anyway, it is a really great plugin, I am recommending it!
@cppchriscpp
That would be really awesome... Changing the biomes dynamically would be so much cooler than editing them directly. But I assume the amount of work it would take to implement that kind of functionality would be immense. Even so, it would be great to see it work out. As always, keep up the great work!
Just giving feedback:
It works whitout problem even on CB 1.2.4-R1.0. I've just upgraded to 1.2.5-R1.0, and it has been loaded correclty.
The only issue I've found so far is that wunderground.com weather information is sometimes inaccurate, but it's not the plugin's fault.
@Firewolf34
If I'm understanding you correctly, the idea I'm hoping might pan out would work for you.
What I'm thinking is that each chunk will have an original biome and a current biome - whenever a chunk is loaded, it will be set to the current biome, which will be dependant upon current weather. Whenever it is unloaded, it will be set back to its original biome. So if a user gets rid of this plugin, they won't see any difference in their world.
There are plugins out there to change biomes in general, however. If that's the functionality you're looking for, I recommend grabbing one of those now.
As of now, this feature is only a pipe dream. If I get a ton of time in the future, I'd like to implement it, but I see it being a lot of work and a TON of testing. I can't make any promises that this will happen, but I'd really like it to.
@cppchriscpp
Wow, that sounds like a great idea! I was hoping this plugin would end up changing biomes eventually. I hope it works out. Could you throw in an option to 'override' pregenerated desert biome weather patterns? We have patches of land in our server that get no rain or snow due to the seed changes in 1.0. Wiping the desert biomes to the closest biome type that has rain and snow would be nice, just so the server rains uniformly.
It may be a little out of your plugins scope, though. Keep up the good work, love this plugin.
This has been updated for the changed method name in R6.