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.

    MMM-Wunderground

    Scheduled Pinned Locked Moved Troubleshooting
    12 Posts 2 Posters 7.5k Views 2 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.
    • C Offline
      Chrispl2000
      last edited by

      Hello All,

      I am trying to get the Wunderground module to load on my mirror. When I start the mirror program from the command line it simply does not show up. I have cloned the data in the gitHub link and have added it to my config but it still does not show up.

      My Config:

      /* Magic Mirror Config Sample
       *
       * By Michael Teeuw http://michaelteeuw.nl
       * MIT Licensed.
       */
      
      var config = {
      	zoom: 1,
      	port: 8080,
      	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"],
      
      	language: 'en',
      	timeFormat: 12,
      	units: 'imperial',
      
      	modules: [
      		{
      			module: 'clock',
      			position: 'top_bar',
      			config: {
      					displaySeconds: false,
      					showDate: false
      					}
      		},
      		{
      			module: 'MMM-WunderGround',
      			position: 'top_third',
      			config: {
      					apikey: '--------------------',
      					pws: 'pws:KTXIRVIN10',
      					hourly: '1'
      					}
      		}
      	]
      
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== 'undefined') {module.exports = config;}
      
      

      When I start the Program in the terminal, it outputs this:

      pi@SmartScreen1:~/MagicMirror $ npm start

      magicmirror@2.1.0 start /home/pi/MagicMirror
      electron js/electron.js

      Starting MagicMirror: v2.1.0
      Loading config …
      Loading module helpers …
      No helper found for module: clock.
      Initializing new module helper …
      All module helpers loaded.
      Starting server op port 8080 …
      Server started …
      Connecting socket for: MMM-WunderGround
      MMM-WunderGround helper started …
      Sockets connected & modules started …
      Launching application.
      GET_WUNDERGROUND

      Thank you in advance for any help.

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

        @Chrispl2000

        You’re missing a comma on the second to last }. It should look like this }, Look how I changed it below

        {
        			module: 'MMM-WunderGround',
        			position: 'top_third',
        			config: {
        					apikey: '--------------------',
        					pws: 'pws:KTXIRVIN10',
        					hourly: '1'
        					}
        		},
        	]
        
        };

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • C Offline
          Chrispl2000
          last edited by

          The extra comma didn’t change anything. I thought you only used a comma when there is another item behind it?

          Mykle1M 2 Replies Last reply Reply Quote 0
          • Mykle1M Offline
            Mykle1 Project Sponsor Module Developer @Chrispl2000
            last edited by

            @Chrispl2000

            That is true, but you are closing out the config at this point. Here is the end of my config. Notice the comma.

            {
            						title: "New York Times",
            						url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
            					},
            					{
                                				title: "BBC World News",
                                				url: "http://feeds.bbci.co.uk/news/world/us_and_canada/rss.xml"
                            			},
            				],
            				showSourceTitle: true,
            				showPublishDate: true
            			}
            		},
            	]
            
            };
            
            /*************** DO NOT EDIT THE LINE BELOW ***************/
            if (typeof module !== 'undefined') {module.exports = config;}
            

            Create a working config
            How to add modules

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

              If everything else is working then the error lies in the config entry for WonderGround.

              Create a working config
              How to add modules

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

                Here is my entry for WunderGround.

                {
                			disabled: f,
                    			module: 'MMM-WunderGround',
                    			position: 'top_right',
                    			config: {
                        		apikey: 'YOUR API KEY', // private
                        		pws: 'pws:KNYNEWYO103',
                			currentweather: 0,
                        		coloricon: true,
                        		hourly: '1',
                        		fctext: '1',
                        		fcdaycount: "10",
                        		fcdaystart: "0",
                        		hourlyinterval: "2",
                        		hourlycount: "1",
                			animationSpeed: 5000,
                        		alerttime: 10000,
                        		alerttruncatestring: "english:",
                    			roundTmpDecs: 0,
                    			UseCardinals: 1,
                    			layout: "vertical",
                			windunits: "mph",
                    			sysstat: "0"
                			}
                		},
                

                Create a working config
                How to add modules

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

                  Wait! top_third is not valid. Try top_right

                  Create a working config
                  How to add modules

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

                    Hover your mouse over my avatar to the left of my name and click chat

                    Create a working config
                    How to add modules

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      Chrispl2000
                      last edited by

                      Great catch!!! I’m new to pretty much everything involved in programming this thing.

                      Mykle1M 2 Replies Last reply Reply Quote 0
                      • Mykle1M Offline
                        Mykle1 Project Sponsor Module Developer @Chrispl2000
                        last edited by

                        @Chrispl2000
                        No worries. If you have TeamSpeak I can help you more easily if you’d like

                        Create a working config
                        How to add modules

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

                          @Chrispl2000
                          This will definitely help you.
                          https://forum.magicmirror.builders/topic/286/regions
                          0_1491005416647_regions.png

                          Create a working config
                          How to add modules

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

                            @Chrispl2000 said in MMM-Wunderground:

                            The extra comma didn’t change anything. I thought you only used a comma when there is another item behind it?

                            You are absolutely right. That comma is NOT necessary in this case. However, it works with or without. I just removed mine and it still works :thumbsup_tone1:

                            Create a working config
                            How to add modules

                            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 / 1
                            • 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