[MISC] WeatherSync v2.0_1 - The real-world weather - Now with multiworld and more! [1337-1597]

Discussion in 'Inactive/Unsupported Plugins' started by cppchriscpp, Apr 22, 2011.

  1. Offline

    cppchriscpp

    Moving to BukkitDev! Click here!

    WeatherSync - The real-world weather in Minecraft
    Version: 2.0_1

    Important note for those upgrading from 1.2: Your old configuration files will not work as-is. You'll need to copy over the new config file, and move over any old settings that still apply.

    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!

    RSS feeds are now the only way to synchronize with this plugin. Old location information will be ignored by the plugin as of version 1.3.

    You can now 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.

    As a warning, I have not been able to test this to the level I test most things due to the nature of it. Please let me know if/when you have issues.

    Download (Source code is in there too!)

    Future Features:
    • Heavy/severe thunderstorms? (Sorry guys, there's no chance I'm going to have time for this. Maybe another plugin can hook into thunderstorms and make this happen, if it doesn't already exist.)
    • unit selection (determined by rss feed; see the ?units=metric/english at the end? change that)
    • None; I implemented everything else here! :)
    Time synchronization:

    Some people in this thread 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 by Mechestrial for this!

    FINDING THE RSS FEED

    How to find your RSS feed (open)
    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://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:
    Code:
    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.


    FOR ALL ISSUES AND BUG REPORTS

    Due to how this thread has been going, I am going to require all reports to include this information, or your bug report may be ignored.
    • An extremely detailed description of the problem.
    • That you have turned debug mode on in the config file, and then caused the problem to happen-- this will provide me with helpful insights into what is going wrong.
    • Your configuration file
    • The major error that occurred
    • The rest of the server.log surrounding that error. If you aren't sure, just give me the whole thing.
    • Any errors a client might have seen
    • Anything you think might have gone wrong -- your insights often lead me to the problem quickly; even if you are wrong.
    • Your build of craftbukkit
    • Any changes in your setup that preceeded the problems (installed plugins, mainly)
    • Your system information (Some of this is in /debug info)
      • (Ideally, just include all output from these two commands.)
      • Operating system
      • Java version
      • Any wrapper software you might be using
      • A list of plugins you use (As reported by /plugins or "plugins" at the server command line)
    • Any other details that could be relevant.
    Yeah, I know it's a lot and it's kind of a pain in the rear. Some of it won't be useful in some situations, but I only get a very little time to work on this now, and I really don't like having to put that time to waste just because I don't have all the information I could about what went wrong.

    Changelog:

    Version 2.0_1
    • Fixed a dumb mistake causing some users to get the forecast for the last day available instead of the first.
    Version 2.0
    • Multiworld support!!!!111 (Sorry; had to do it.)
    • Re-enabled messages to users on the weather changing
    • Redid the configuration file for multiworld and some other stuff
    • Customization options for messages; you can now set what the plugin sends to users!
    Version 1.3
    • Never existed; I jumped straight to 2.0. Not sure what I was on when I put this version here. >_>
    Version 1.2
    • Fixed (hopefully) the bug with weather not updating once and for all. The weather will be FORCIBLY updated every time the weather is checked.
      • Note that client desynchronization issues may still occur. If you disconnect and reconnect and the weather is correct again, there is nothing I can do to fix this, sorry.
    • Changed the default method of specifying location to an RSS feed. Let's see how this can break things D:
    • Accidentally removed the show-forecast option which shows when the weather changes in chat. Did anyone actually use this? Redoing it for multiworld is going to be a massive pain if people want it.
    • Fixed broken forecasts
    Version 1.1_3
    • Fixed debug mode -- anyone who had problems please try again and report your issues again. Sorry for the inconvenience; it was my fault.
    Version 1.1_2

    • Fixed the weather randomly changing bug. Really this time! (I think)
    Version 1.1_1

    • Program now accepts blank configuration options correctly
      • (This fixes the null pointer issues.)
    Version 1.1

    • Weather forecasting (w/ forecast command)
    • Ability to show forecast on join
    • Debug mode that will display what the weather is on start and when it changes (new config option -- use this to report bugs!)
    • More failure-checking in the forecast changes.
    • Support for weather stations
    • Fixed threading/recursion..
    • Clarified config files.
    • Fixed various bugs
      • Weather duration not being set (cause of random weather at times)
      • Improper string conversion (That boolean bug that someone had on page 4)
      • (More that have been forgotten since being fixed..)
    Version 1.0

    • Initial release
     
    JonasD, zhuowei, Stoepsel and 5 others like this.
  2. Offline

    Aramillio

    the biomes are server side. and so is the weather. and so is block data like whether or not something is covered in snow. I can force my players to see lightning with the right plugin and essentials makes it so i can cover an area with snow. What made you think that data is on each users computer? how about you make sure what you say is correct before you say it? ;)
     
  3. Offline

    Skrolan

    OMG this is Amazing how can u do that!!!???:O ima try it right now! Thanks ill write back and see how it goes

    Hey it is Zip file and when i click it there is 1 jar file can i just copy that into my plugins and it will work?? and how do i change it to Europe please answe!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 14, 2016
  4. Offline

    cppchriscpp

    This may be true, but messing with biomes is kind of iffy. I had not thought of that idea, so maybe it is possible, however I would be reluctant. Covering an area with snow is easy; it's just a block change. Falling snow is another story, and is what this plugin does. That is NOT easily possible. I might look into the biome thing, but I'm more than a little nervous about corrupting worlds/biomes within them.

    Have you never installed a Bukkit plugin before? As it says in the readme file and also all over the forum, copy the jar file into the plugins folder alongside the folder with the plugin's name. (WeatherSync)

    As for your last question, a little more information would be helpful. You have to configure it using the config.yml file in that folder I told you to copy, and put information in that. If you've got a zip/postal code to use, put it as zipcode; otherwise set city to the name of your city, and state to the COUNTRY name. (I know this is unintuitive; it'll be updated.) If both of these fail, someone detailed a hack to use the code for a local weather station on page 3; you can use that. This will be a regular option when the next version comes out. (Really close now guys; I just need to test it a bit and check one or two little things.)

    As a warning, the next version will NOT have multiworld support, and it will also not have the heavy storms. These features are too big to code in any reasonable amount of time. They're coming, but I don't want to delay the release of a fully-working version any longer; particularly when people actually like this.
     
  5. Offline

    Skrolan

    Hey it says when i run the server it says weathersync:could not read your configuration file. try Reinstalling the plugin
     
  6. Offline

    cppchriscpp

    Please follow the directions I just posted that are also in the readme file. You actually do need the WeatherSync folder with the configuration files in it.
     
  7. Offline

    PatrickFreed

    Small question: If you put a zip code in, do you just leave the city/state blank?
     
  8. Offline

    Skrolan

    ahh ok but where should i put the Postal cod in config or Plugins sry i am bad at computer:(
     
  9. Offline

    cppchriscpp

    That or comment them out; both should work. Best to comment them out for now though; I believe I made a goof in the code that has since been changed.

    I'm editing the configuration file distributed with it to make this more clear.
     
  10. Offline

    Skrolan

    Can't u just make a fast Tutorial:xD would be great becus i dont know where to put my postal code
     
  11. Offline

    cppchriscpp

    Okay, I'm doing to dumb this down as much as is possible; if you cannot get it from this, you'll want to ask someone you can talk face-to-face with to help you sort this out. That's not to say you're dumb; but if you have this much of a problem with computers it will be more-or-less impossible to help you fix it over a forum.

    First, open a text editor. Wordpad will suffice; notepad may work but might have issues with line endings. (If you're not on windows, find an appropriate text-only editor for your operating system)

    Next, use this to open the file (your minecraft server directory)/plugins/WeatherSync/config.yml -- to do this you will need to set the file type to: "All documents (*.*)" -- this option is in the lower right corner of the open dialog.

    In the file, you will see a line similar to this (The wording has changed slightly from this.)
    Code:
    # The zip or postal code of the location to sync with.
    # You need either this or a city and state. You do not need both.
    # If you are not using one, comment it out with a # sign.
    zipcode: 94101
    
    Change 94101 to the postal code you want to use. If you want to change any other settings in the file, do so now. You should not need to, however. Save it, close it, and restart your server.

    Edit: hey you changed your post entirely ;p Oh well I did it anyway. Hope it works out for you.
     
  12. Offline

    Skrolan

    nvm reading it gonna try
     
  13. Offline

    cppchriscpp


    No errors or anything, right? You should be good; the next version will give you much more output which will actually make you sure that it's working. (The forecast feature will make this most obvious, though I added a bunch of extra debugging features if things go wrong too.)
     
  14. Offline

    Skrolan

    K i think it works now i dont get any error:p and well the Weather i dont know about it is morning in eu so but how do i know if it worksxD? and what happens if i go to bed in minecraft it get light but???
     
  15. Is this working for b733?
     
  16. Offline

    Skrolan

  17. Offline

    MG127

    i realy would love to see dynamic fog, so like the "f"-button but from the weather, each client has its own minimum fog, but with the weather-fog it can be even more.
     
  18. Offline

    cppchriscpp

    Since virtually no breaking changes have been made since the late 600 builds, yes, it should be.

    Just test it people; seriously. You should be testing your plugins before you try them live anyway, even if they're compatible. It's just good practice to make sure everything works first; what if two of your plugins have compatibility issues with each other that have not been discovered yet?

    Uh... your idea is really unclear and would require a client-side mod, which I do not do. This also has absolutely nothing to do with what the plugin does right now. As such, I'm going to pass.
     
  19. Offline

    afmiller

    I get this error http://pastebin.com/gU9XNstK

    config file http://pastebin.com/DpAcTSnk
     
  20. I did add it to my server. But it snowed in the server... Its possible that it did snow or hail or something, but I doubt it.
     
  21. Offline

    BlueFireGaming

    Where did it snow? When it's in a snowy biome: it can snow there without the pluging doing anything (as far as I know). I'm not sure, but I think it's because of that. :)
     
  22. Offline

    cppchriscpp

    Try using Ontario rather than on. The error you got is unusual - I'll see if I can do something about that.

    Probably duration-related. The fix for that should be coming out soon -- update when it does and tell me if you have that problem again.

    Update: it's out.
     
  23. Offline

    afmiller

    Hey, want to report some issues. I tried what you said, it stopped the errors from happening, but I'm not getting the correct weather. Its currently rainy, and I confirmed it with weather underground as light showers.

    You might wanna check the file in the zip, I downloaded it again to get 1.1, its loading as 1.0 though still
     
  24. Offline

    cppchriscpp

    Thanks for the heads up; you're indeed right. I updated the source and the config file and everything else, then forgot to update the .jar Redownload and tell me how it goes.
     
  25. Well I'm assuming its not a snowy biome because the snow wasn't there before weather was added.
     
  26. Offline

    cppchriscpp

    The plugin doesn't even touch biomes. If the biome is snowy, it drops snow; if the biome is rainy, it drops rain. Plugin developers don't even have the ability to change what kind of precipitation falls unless they change the biome.

    There's really not much I can do about that, sorry.
     
  27. Offline

    afmiller

    updated, no dice, im getting the sync commands, but its not updating the weather, its sayin location north bay Ontario

    where on the site do I get the weather station ID

    getting error, Could not read weather, check my settings
     
  28. Offline

    cppchriscpp

    That generally means there's something wrong with your settings file; if you can't figure out what is wrong, paste it here. Please also turn debugging on, and post the full error message.
     
  29. Offline

    scalbane

    Code:
    22:53:28 [SEVERE] null loading WeatherSync v1.1 (Is it up to date?)
    java.lang.NullPointerException
            at net.cpprograms.minecraft.WeatherSync.WeatherSync.onEnable(WeatherSync.java:102)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:632)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
            at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:287)
            at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:201)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:247)
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:394)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:379)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    I keep getting this error. I've tried reinstalling it a couple times and fooling around in the config file, it also doesn't seem to work very well, the weather is very random even when taking biomes into account, the weather just kinda changes every 5 minutes at random. I'm using craftbukkit RB #733
     
  30. Offline

    cppchriscpp

    It would have been really nice if you'd posted your config file as requested. Please comment out the city=(blank) line in your config, as well as the state=(blank) in your config.

    I'm not sure why the config file is returning nulls for those rather than blank strings; I guess it's another of the wonderful surprises of yml. I'll create a patch for this problem later today.

    Also your weather issue is most likely related to the fact that the plugin kind of does not even load if it can't read your location.
     
  31. Offline

    azunai

Share This Page