mmm-wu-moon-phases - Moonphases from Weather Underground



  • 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



    • for default value Switzerland.
      ;)

    Nice module! Thanks for shareing.



  • 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’,

                }
        },
    

    ]



  • @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



  • @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


  • @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',
    	}
    },
    


  • @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



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



  • @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



  • 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


Log in to reply
 

Looks like your connection to MagicMirror Forum was lost, please wait while we try to reconnect.