• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 18.6k 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.
  • R Offline
    Raffaello
    last edited by Raffaello Nov 18, 2016, 9:29 PM Nov 18, 2016, 9:28 PM

    Hi, here is my first Magic Mirror module based on the module CurrentWeather. The module shows the current moon phase, a picture of the moon and the percentage of the illumination. You can find the module here.

    0_1479504319288_mmm-wu-moonphase.PNG

    1 Reply Last reply Reply Quote 3
    • T Offline
      tajno
      last edited by tajno Nov 20, 2016, 5:21 AM Nov 20, 2016, 5:20 AM

      • for default value Switzerland.
        ;)

      Nice module! Thanks for shareing.

      1 Reply Last reply Reply Quote 0
      • S Offline
        schlachtkreuzer6
        last edited by Dec 22, 2016, 10:37 AM

        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 Jan 28, 2017, 8:21 AM Reply Quote 0
        • K Offline
          kurt @schlachtkreuzer6
          last edited by Jan 28, 2017, 8:21 AM

          @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

          S 2 Replies Last reply Jan 28, 2017, 9:04 AM Reply Quote 0
          • S Offline
            schlachtkreuzer6 @kurt
            last edited by Jan 28, 2017, 9:04 AM

            @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
            • S Offline
              schlachtkreuzer6 @kurt
              last edited by Jan 28, 2017, 9:10 AM

              @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 Jan 28, 2017, 9:12 AM Reply Quote 0
              • K Offline
                kurt @schlachtkreuzer6
                last edited by Jan 28, 2017, 9:12 AM

                @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

                S 1 Reply Last reply Jan 28, 2017, 9:17 AM Reply Quote 0
                • S Offline
                  schlachtkreuzer6 @kurt
                  last edited by Jan 28, 2017, 9:17 AM

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

                  K 1 Reply Last reply Jan 28, 2017, 11:24 AM Reply Quote 0
                  • K Offline
                    kurt @schlachtkreuzer6
                    last edited by Jan 28, 2017, 11:24 AM

                    @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 Jan 28, 2017, 12:46 PM

                      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 Jan 28, 2017, 1:06 PM Reply Quote 1
                      • 1
                      • 2
                      • 3
                      • 1 / 3
                      • 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