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

Weather-underground config.js

Scheduled Pinned Locked Moved Utilities
3 Posts 2 Posters 2.3k 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.
  • A Offline
    amosh83
    last edited by Jul 10, 2017, 9:07 PM

    Re: Weather Underground Forecast (wuforecast)
    Hello, as soon as I add this module to config.js, my mirror won’t start saying that there’s an error in the file, if I remove it it starts… what’s wrong with it? thank you

     {
                       module: "MMM-WunderGround",
                       position: "top_right",
                       config: {
                       apikey: "d2c28567ee4d5e00", // private; don't share!
                       pws: 'pws:"KPAGRATZ3", //Gratz
                       hourly: '1',
                       fctext: '1',
                       fcdaycount: "5",
                       fcdaystart: "0",
                       hourlyinterval: "3",
                       hourlycount: "2",
                       alerttime: 10000,
                       alerttruncatestring: "english:",
    	           roundTmpDecs: 1,
    	           UseCardinals: 0,
    	           layout: "horizontal",
    	           sysstat: 0
                     }
                     },
    
    M 1 Reply Last reply Jul 11, 2017, 12:23 AM Reply Quote 0
    • M Offline
      Mykle1 Project Sponsor Module Developer @amosh83
      last edited by Jul 11, 2017, 12:23 AM

      @amosh83 said in Weather-underground config.js:

      pws: 'pws:“KPAGRATZ3”, //Gratz

      This line is formatted incorrectly. It should look like this:
      pws: 'pws:KPAGRATZ3',

      HOWEVER, that pws is not working. I just tested it. Are you sure you copied it correctly? Also, sometimes the pws is not working. Check that number or try another.

      You can test your module with my pws:
      pws: 'pws:KNYNEWYO103', It is working.

      Create a working config
      How to add modules

      1 Reply Last reply Reply Quote 0
      • A Offline
        amosh83
        last edited by Jul 11, 2017, 1:02 AM

        /* Magic Mirror Config file
         *
         * By Michael Teeuw http://michaelteeuw.nl
         * MIT Licensed.
         */
        
        var config = {
        	port: 8080,
        	ipWhitelist: [], // Set [] to allow all IP addresses.
        
        	language: "en",
        	timeFormat: 24,
        	units: "metric",
        
        	modules: [
                           		
        		{
        		   module: "MMM-WordClock",
        		   position: "top_left",
        		   config: {
        				width: "300px",
        				height: "300px"
        			   }
        		},
                       
        		 {
        	           module: "calendar_monthly",
        		   position: "top_left",
        		   config:{
        				// The config property is optional
        				// Without a config, a default month view is shown
        				// Please see the 'Configuration Options' section for more information
        		           }
        		 },
        	         {
        		   module: "compliments",
        		   position: "bottom_bar"
        		 },
               	         {
                           module: "MMM-AlexaPi",
                           position: "lower_third",
                           config: {
                                       // The config property is optional.
                                       // If no config is set, defualt values are used
                                       // See 'Configuration options' for more information.
                         }
                         },
         {
                           module: "MMM-WunderGround",
        			position: "top_right",
        			header: "",
        			config: {
        				apikey: "d2c28567ee4d5e00",
        				pws: "pws:KPAGRATZ2",
        				currentweather: 0,
        				coloricon: true,
        				hourly: "1",
        				fcdaycount: "5",
        				hourlyinterval: "2",
        				hourlycount: "1",
        				animationSpeed: 5000,
        				alerttime: 10000,
        				alerttruncatestring: "english:",
        				roundTmpDecs: 0,
        				UseCardinals: 1,
        				windunits: "mph",
        				sysstat: "0"
        			}
        		},
           
        
        ]
        
        };
        
        /*************** DO NOT EDIT THE LINE BELOW ***************/
        if (typeof module !== "undefined") {module.exports = config;}
        
        1 Reply Last reply Reply Quote 0
        • 1 / 1
        1 / 1
        • First post
          3/3
          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