MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    weather forecast and current weather modules

    Scheduled Pinned Locked Moved Unsolved General Discussion
    22 Posts 8 Posters 10.3k Views 7 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • popeye2002P Offline
      popeye2002 @Mykle1
      last edited by

      @Mykle1
      I believe that there may be a new issue. I’ve spent the last few days with the same problem. Current weather does not show but forcast does… I’m also very new… just started MM2 this weekend from knowing nothing to knowing very little … anyway from the very first try the forcast was working but not the current weather.

      	{
      		//disabled: true,
      		module: "currentweather",
      		position: "top_right",
      		config: {
      			location: "Silverdale",
      			locationID: "5810490", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
      			appid: "getyourownapikey"
      		}
      	},
      	{	//disabled: true,
      		module: "weatherforecast",
      		position: "top_right",
      		header: "5-Day Weather Forecast",
      		config: {
      			location: "Silverdale",
      			locationID: "5810490", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
      			appid: "getyourownapikey",
      			colored:'true',
      			roundTemp:'true',
      			maxNumberOfDays:'14',
      			initialLoadDelay: '1000',
      			iconTable: {
      				    '01d': 'wi-day-sunny',
      				    '02d': 'wi-day-cloudy',
      				    '03d': 'wi-cloudy',
      				    '04d': 'wi-cloudy-windy',
      				    '09d': 'wi-showers',
      				    '10d': 'wi-rain',
      				    '11d': 'wi-thunderstorm',
      				    '13d': 'wi-snow',
      				    '50d': 'wi-fog',
      				    '01n': 'wi-night-clear',
      				    '02n': 'wi-night-cloudy',
      				    '03n': 'wi-night-cloudy',
      				    '04n': 'wi-night-cloudy',
      				    '09n': 'wi-night-showers',
      				    '10n': 'wi-night-rain',
      				    '11n': 'wi-night-thunderstorm',
      				    '13n': 'wi-night-snow',
      				    '50n': 'wi-night-alt-cloudy-windy'
      				}
      		}
      	},
      

      I am using Geany for an editor on my RPI4 … it just showed up… like magic.
      thanks for any help you may have

      Mykle1M 1 Reply Last reply Reply Quote 0
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @popeye2002
        last edited by

        @popeye2002 said in weather forecast and current weather modules:

        it just showed up… like magic.

        Are you saying it’s working now? I just copied your entry, put in my api key, and both fired right up for me

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • popeye2002P Offline
          popeye2002
          last edited by popeye2002

          sadly no, only the forecast works, not the current weather :( that’s why jumped in this thread because it should work but the current weather does not so there may be a problem elsewhere. That’s where i don’t know where to begin to troubleshoot since it’s a brand new install.
          BTW, I ran your current weather code for NY and that did not work either

          1 Reply Last reply Reply Quote 0
          • popeye2002P Offline
            popeye2002
            last edited by

            wow… RESOLVED… smart me somewhere along the way I entered my location into the currentweather.js file… that was a mistake I made and I shall remember!! @Mykle1 Thank you for your patients and I give to you something to smile and laugh about… betting you may have touched something you shouldn’t have as well… but that was a tough lesson!

            Mykle1M ? 2 Replies Last reply Reply Quote 1
            • Mykle1M Offline
              Mykle1 Project Sponsor Module Developer @popeye2002
              last edited by

              @popeye2002

              Perfect! Learning is the reason I am here, too. Enjoy yourself

              Create a working config
              How to add modules

              1 Reply Last reply Reply Quote 0
              • R Offline
                ramanasha @Mykle1
                last edited by

                @Mykle1 hi how to get appid for current weather module

                Mykle1M 1 Reply Last reply Reply Quote 0
                • Mykle1M Offline
                  Mykle1 Project Sponsor Module Developer @ramanasha
                  last edited by

                  @ramanasha said in weather forecast and current weather modules:

                  hi how to get appid for current weather module

                  From the readme:

                  ‘API key, which can be obtained by creating an OpenWeatherMap account.’

                  Create a working config
                  How to add modules

                  1 Reply Last reply Reply Quote 0
                  • ? Offline
                    A Former User @popeye2002
                    last edited by A Former User

                    This post is deleted!
                    S 2 Replies Last reply Reply Quote 0
                    • S Offline
                      sdetweil @Guest
                      last edited by

                      @hango DO NOT EDIT the module files…

                      edit the config.js and put setting in the module config block

                      {
                          module: ???? ,
                          position: .....  ,
                          config: { 
                              xyz: iiiii,   < ---- stuff goes here 
                          }
                      }
                      

                      the value in the config will replace the ones in the code

                      you NEVER have to edit the actual module source code

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 1
                      • S Offline
                        sdetweil @Guest
                        last edited by

                        @hango in your post of 'config, you put it in the global section,

                        not in the little config:{} section related to each module

                        this is why u are having trouble…

                        https://forum.magicmirror.builders/topic/4231/how-to-add-modules-for-absolute-beginners?_=1592416623888

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        ? 1 Reply Last reply Reply Quote 0
                        • ? Offline
                          A Former User @sdetweil
                          last edited by A Former User

                          This post is deleted!
                          S lavolp3L 2 Replies Last reply Reply Quote 0
                          • S Offline
                            sdetweil @Guest
                            last edited by

                            @hango its NOT supposed to go in the global section…

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            ? 1 Reply Last reply Reply Quote 0
                            • ? Offline
                              A Former User @sdetweil
                              last edited by

                              This post is deleted!
                              S 1 Reply Last reply Reply Quote 0
                              • S Offline
                                sdetweil @Guest
                                last edited by

                                @hango because it specific to ONE module, and should go in the ONE module config:{}

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                ? 1 Reply Last reply Reply Quote 0
                                • ? Offline
                                  A Former User @sdetweil
                                  last edited by A Former User

                                  This post is deleted!
                                  S 1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    sdetweil @Guest
                                    last edited by

                                    @hango ok, maybe YOU know what your getting yourself into… most users don’t…

                                    follow the rules, talk about how you are SUPPOSED to do things… teach them the RIGHT way.

                                    i’m here because I want to be, help users, we have enough problems with old docs written and not maintained, old code written and not maintained, we don’t need special instructions that are fragile.

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    1 Reply Last reply Reply Quote 2
                                    • ? Offline
                                      A Former User
                                      last edited by A Former User

                                      This post is deleted!
                                      1 Reply Last reply Reply Quote 1
                                      • lavolp3L Offline
                                        lavolp3 Module Developer @Guest
                                        last edited by

                                        @hango this way you’ll always have problems updating the respective modules. You would have to reset all of your local changes and fill them in after an update.

                                        How do you deal with that?

                                        How to troubleshoot modules
                                        MMM-soccer v2, MMM-AVStock

                                        1 Reply Last reply Reply Quote 0
                                        • ? Offline
                                          A Former User
                                          last edited by A Former User

                                          This post is deleted!
                                          1 Reply Last reply Reply Quote 0

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          • 1
                                          • 2
                                          • 2 / 2
                                          • First post
                                            Last post
                                          Enjoying MagicMirror? Please consider a donation!
                                          MagicMirror created by Michael Teeuw.
                                          Forum managed by Sam, technical setup by Karsten.
                                          This forum is using NodeBB as its core | Contributors
                                          Contact | Privacy Policy