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-wu-moon-phases - Moonphases from Weather Underground

    Scheduled Pinned Locked Moved Utilities
    moonphase
    25 Posts 9 Posters 22.7k Views 9 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.
    • T Offline
      tajno
      last edited by tajno

      • for default value Switzerland.
        ;)

      Nice module! Thanks for shareing.

      1 Reply Last reply Reply Quote 0
      • schlachtkreuzer6S Offline
        schlachtkreuzer6
        last edited by

        You need to change the name of the module in the example code, from ‘mmm-wu-moon-phases’ to ‘mmm-wu-moonphase’:

        wrong:
        modules: [
        {
        module: ‘mmm-wu-moon-phases’,
        header: ‘Current Moon Phase’, // optionally you can add a header to this block
        position: ‘top_right’, // this can be any of the regions.
        config: {
        // See ‘Configuration options’ for more information.
        apikey: ‘abcde12345abcde12345abcde12345ab’,
        country: ‘Switzerland’,
        city: ‘Bern’,
        apiLang: ‘EN’,

                    }
            },
        

        ]

        right:
        modules: [
        {
        module: ‘mmm-wu-moonphase’,
        header: ‘Current Moon Phase’, // optionally you can add a header to this block
        position: ‘top_right’, // this can be any of the regions.
        config: {
        // See ‘Configuration options’ for more information.
        apikey: ‘abcde12345abcde12345abcde12345ab’,
        country: ‘Switzerland’,
        city: ‘Bern’,
        apiLang: ‘EN’,

                    }
            },
        

        ]

        K 1 Reply Last reply Reply Quote 0
        • K Offline
          kurt @schlachtkreuzer6
          last edited by

          @schlachtkreuzer6
          Hi can you help me with the api key. Also I took an acount it’s to hard for me to find a way to the right datas for Vienna Austria.
          Can’t find a way to the right site, boring system.
          Thank you in Advance
          Kurt

          schlachtkreuzer6S 2 Replies Last reply Reply Quote 0
          • schlachtkreuzer6S Offline
            schlachtkreuzer6 @kurt
            last edited by

            @kurt Hey Kurt :) or servus! yeah sure i will help you!

            1. go to this site: https://www.wunderground.com/weather/api/
            2. klick on the explore my options button
            3. it doesn´t matter what package you´re choosing all 3 are free, only if you need more data requests as 500 a day (10 per minute)
            4. register to the site with your email etc.
              0_1485594273789_weatherundergroundapi.PNG
            1 Reply Last reply Reply Quote 0
            • schlachtkreuzer6S Offline
              schlachtkreuzer6 @kurt
              last edited by

              @kurt and in the config:

              {
              	module: 'mmm-wu-moonphase',
              	header: 'Aktuelle Mondphase',   // optionally you can add a header to this block
              	position: 'top_right',  // this can be any of the regions.   
              		config: {
              			// See 'Configuration options' for more information.
              			apikey: 'your api',
              			country: 'Austria',
              		city: 'Vienna',
              		apiLang: 'DL',
              	}
              },
              
              K 1 Reply Last reply Reply Quote 0
              • K Offline
                kurt @schlachtkreuzer6
                last edited by

                @schlachtkreuzer6
                Ahhh I looked for the country and city settings on the Weather U ground…but you have to do it in the config. Right?
                Thanks for quick help!
                Kurt

                schlachtkreuzer6S 1 Reply Last reply Reply Quote 0
                • schlachtkreuzer6S Offline
                  schlachtkreuzer6 @kurt
                  last edited by

                  @kurt yeah, you are right! all module specific changes and settings are in the main config ~/MagicMirror/config/

                  K 1 Reply Last reply Reply Quote 0
                  • K Offline
                    kurt @schlachtkreuzer6
                    last edited by

                    @schlachtkreuzer6
                    Danke ! I can see the New Moon, at least some shades of him or her :)
                    Thanks a lot ! works fine, only when I tell him middle_ rightthe screen stays black. But with top_right everythings works out fine.
                    kurt

                    1 Reply Last reply Reply Quote 1
                    • R Offline
                      Raffaello
                      last edited by

                      Hello Kurt

                      As first, thanks to @schlachtkreuzer6 for quickly answering the questions of Kurt.

                      Kurt, I hope it worked and yes, at the moment we have new moon and you see only a weak shadow.

                      If you need help, please contact me. I can also support you in your native language. :-)

                      Greetings from switzerland

                      K 2 Replies Last reply Reply Quote 1
                      • K Offline
                        kurt @Raffaello
                        last edited by

                        @Raffaello
                        Hi
                        Thank you and Dankeschön for the offer to help me in my native language.
                        Der Tag wird kommen :)
                        Oisdan bisdan
                        Kurt

                        1 Reply Last reply Reply Quote 0
                        • K Offline
                          kurt @Raffaello
                          last edited by

                          @Raffaello
                          Hallo Raffaello
                          The day has come…your moonphase doesn’t load anymore, and I don’t no why, because I havn’t changed a thing.
                          I updated the rpi some days ago, but the fault was also bevor the update.
                          I hope you can help, cause by now I miss the moon already.
                          And by the way Gratulation to the Swiss Tennis Finale. Love to watch both of them !
                          Liebe Grüße aus Wien

                          Starting MagicMirror: v2.1.0
                          Loading config ...
                          Loading module helpers ...
                          Initializing new module helper ...
                          No helper found for module: mmm-wu-moonphase.
                          Initializing new module helper ...
                          Initializing new module helper ...
                          No helper found for module: alert.
                          Initializing new module helper ...
                          No helper found for module: clock.
                          No helper found for module: compliments.
                          No helper found for module: currentweather.
                          No helper found for module: weatherforecast.
                          Initializing new module helper ...
                          All module helpers loaded.
                          Starting server op port 8080 ... 
                          Server started ...
                          Connecting socket for: internet-monitor
                          internet-monitor helper started ...
                          Connecting socket for: mmm-systemtemperature
                          Starting node helper: mmm-systemtemperature
                          Connecting socket for: MMM-WienerLinien
                          Starting module: MMM-WienerLinien
                          Connecting socket for: updatenotification
                          Connecting socket for: newsfeed
                          Starting module: newsfeed
                          Sockets connected & modules started ...
                          (node:6133) DeprecationWarning: sys is deprecated. Use util instead.
                          Launching application.
                          starting internet monitor node helper
                          Create new news fetcher for url: http://derStandard.at/?page=rss&ressort=Seite1 - Interval: 300000
                          
                          1 Reply Last reply Reply Quote 0
                          • R Offline
                            Raffaello
                            last edited by

                            Hello Kurt, have checked on two raspi the module and it works with both. Can you upload your config.js?

                            K 2 Replies Last reply Reply Quote 1
                            • K Offline
                              kurt @Raffaello
                              last edited by yawns

                              @Raffaello
                              Hallo Raffaello
                              this is my config.js
                              Thank you

                              /* Magic Mirror Config Sample
                               *
                               * By Michael Teeuw http://michaelteeuw.nl
                               * MIT Licensed.
                               */
                              
                              var config = {
                              	port: 8080,
                                      ipWhitelist: ["::fff:0.0.0.0/1", "::fff:128.0.0.0/2", "::fff:192.0.0.0/3", "::fff:224.0.0.0/4", "127.0.0.1", "::ffff:127.0.0.1", "::1"],
                              
                              	language: 'de',
                              	timeFormat: 24,
                              	units: 'metric',
                              
                              	modules: [
                                               {
                              		    module: 'internet-monitor',
                                          position: 'top_center',
                                          header: '',
                                          config:{
                                              type: '',
                                              maxTime: 20000,
                                              updateInterval: 0,
                                              verbose: false,
                                              displayStrength: true,
                                              displaySpeed: false,
                                              strengthIconSize: 80,
                                              maxGaugeScale: 100,
                                              }
                              	        },
                                              {
                              	         module: 'mmm-wu-moonphase',
                              	         header: 'Aktuelle Mondphase',   // optionally you can add a header to this block
                              	         position: 'bottom_right',  // this can be any of the regions.   
                              		config: {
                              			// See 'Configuration options' for more information.
                              			apikey: ' xxxxxx ',
                              			country: 'Austria',
                              		        city: 'Vienna',
                              		        apiLang: 'DL',
                              	        }
                                              },
                                              {
                              		module: 'mmm-systemtemperature',
                              		position: 'top_center',	// This can be any of the regions.
                              		classes: 'small dimmed', // Add your own styling. Optional.
                              		config: {
                              			// See 'Configuration options' for more information.
                              		}
                              	        },
                              	 	{
                                                        module: "MMM-WienerLinien",
                                                      position: "bottom_left",
                                              config: {
                                                       api_key: "xxxxxxx",
                                                       stations: ["141"],
                                          
                                              }
                                              },
                                              {
                              			module: 'alert',
                              		},
                              		{
                              			module: "updatenotification",
                              			position: "top_bar"
                              		},
                              		{
                              			module: 'clock',
                              			position: 'top_left'
                              		},
                              		
                              		{
                              			module: 'compliments',
                              			position: 'lower_third'
                              		},
                              		{
                              			module: 'currentweather',
                              			position: 'top_right',
                              			config: {
                              				location: 'Vienna',
                              				locationID: '2761369',  //ID from http://www.openweathermap.org
                              				appid: 'xxxxxxxx'
                              			}
                              		},
                              		{
                              			module: 'weatherforecast',
                              			position: 'top_right',
                              			header: 'Weather Forecast',
                              			config: {
                              				location: 'Vienna',
                              				locationID: '2761369',  //ID from http://www.openweathermap.org
                              				appid: 'xxxxxxx'
                              			}
                              		},
                              		{
                              			module: 'newsfeed',
                              			position: 'bottom_bar',
                              			config: {
                              				feeds: [
                              					{
                              						title: "Der Standard",
                              						url: "http://derStandard.at/?page=rss&ressort=Seite1"
                              					}
                              				],
                              				showSourceTitle: true,
                              				showPublishDate: true
                              			}
                              		},
                              	]
                              
                              };
                              
                              /*************** DO NOT EDIT THE LINE BELOW ***************/
                              if (typeof module !== 'undefined') {module.exports = config;}
                              
                              yawnsY 1 Reply Last reply Reply Quote 0
                              • yawnsY Offline
                                yawns Moderator @kurt
                                last edited by

                                @kurt
                                what do you mean by “doesn’t load any more” ? Do you see any error message? Did the whole mirror stop working? Or is it simply “gone” ?

                                K 1 Reply Last reply Reply Quote 1
                                • K Offline
                                  kurt @yawns
                                  last edited by

                                  @yawns
                                  I just see: Aktuelle Mondphase wird geladen...is loading

                                  K 1 Reply Last reply Reply Quote 0
                                  • K Offline
                                    kurt @kurt
                                    last edited by

                                    @yawns
                                    to completely answer your questions… sorry got a phone call…
                                    The whole mirror is working, the module isn’t gone, I do not see any error messages,
                                    Thank you
                                    0_1490619419778_Bildschirmfoto 2017-03-27 um 14.06.58.png

                                    1 Reply Last reply Reply Quote 0
                                    • J Offline
                                      JoeFranz
                                      last edited by

                                      Hi,
                                      In my display the state of the moon appears in english and the lighting down in German. Why is not this completely in German?
                                      Someone an idea?

                                      Jörg

                                      0_1490800716040_IMG_5203_resize.JPG

                                      G 1 Reply Last reply Reply Quote 0
                                      • G Offline
                                        geeflaxx @JoeFranz
                                        last edited by geeflaxx

                                        can i use the same api key what i use for my weather underground ? or should i edit something?
                                        because i have the same error like kurt. it always shows me “moonphase wird geladen”

                                        is the comma after the apiLang: correct ?
                                        apiLang: ‘DL’, <-------------------------------
                                        }
                                        },

                                        1 Reply Last reply Reply Quote 0
                                        • R Offline
                                          Raffaello
                                          last edited by

                                          Yes, you can use the same api key and yes, the comma to apiLang is correct.

                                          What happens if you enter the link directly in the browser?
                                          http://api.wunderground.com/api/“apikey”/astronomy/lang:“language”/q/“country”/“city”.json

                                          Replace the " "-placeholders accordingly.

                                          1 Reply Last reply Reply Quote 0
                                          • K Offline
                                            kurt @Raffaello
                                            last edited by

                                            @Raffaello
                                            Hi, I don’t know why, but your module is working fine by now, i put it on an other place and that’s it. I havn’t changed a bit on the modul or the config, just the moon didn’t liked the old place.:last_quarter_moon_with_face:
                                            So I just want to inform you about that. Sometimes it’s hard to find the reason, when there is none.

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