MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    Weather-underground config.js

    Utilities
    2
    3
    1943
    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
      amosh83 last edited by

      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
                       }
                       },
      
      Mykle1 1 Reply Last reply Reply Quote 0
      • Mykle1
        Mykle1 Project Sponsor Module Developer @amosh83 last edited by

        @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
          amosh83 last edited by

          /* 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
          • First post
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy