MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    UNSOLVED Need Help with Remote Control Module

    Troubleshooting
    4
    5
    1155
    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.
    • F
      frankiedux last edited by frankiedux

      Hi guys
      Im new in magic mirrors and im having some problems with the configuration.

      I try to install the remote control module and when i put the module code the magic mirror stop working.

      I install too the weather module MMM-BMW and in this case the module only shows " acquiring your weather"

      Can anyone see where is the error?

      When i do Ctrl + Shift + I in the console tab says that Config File is missing.

      My code:

      /* Magic Mirror Config Sample
       *
       * By Michael Teeuw http://michaelteeuw.nl
       * MIT Licensed.
       *
       * For more information how you can configurate this file
       * See https://github.com/MichMich/MagicMirror#configuration
       *
       */
      
      var config = {
      	address: "0.0.0.0", // Address to listen on, can be:
      	//address: "localhost",
      
      	                      // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
      	                      // - another specific IPv4/6 to listen on a specific interface
      	                      // - "", "0.0.0.0", "::" to listen on any interface
      	                      // Default, when address config is left out, is "localhost"
      	port: 8080,
      	ipWhitelist: [],
      	//ipWhitelist: [], // Set [] to allow all IP addresses
      	                                                       // or add a specific IPv4 of 192.168.1.5 :
      	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
      	                                                       // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
      	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
      
      	language: "pt",
      	timeFormat: 24,
      	units: "metric",
      
      	modules: [
      		{
      			module: "alert",
      		},
      		{
      			module: "updatenotification",
      			position: "top_bar"
      		},
      		{
      			module: "clock",
      			position: "top_left"
      		},
      		{
      			module: "calendar",
      			header: "US Holidays",
      			position: "top_left",
      			config: {
      				calendars: [
      					{
      						symbol: "calendar-check",
      						url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics"
      					}
      				]
      			}
      		},
      		{
      			module: "compliments",
      			position: "lower_third"
      		},
      		{
      			module: "currentweather",
      			position: "top_right",
      			config: {
      				location: "Vialonga",
      				locationID: "8012581",  //ID from http://bulk.openweathermap.org/sample/; unzip the gz file and find your city
      				appid: "xxxxxxx"
      			}
      		},
      		{
      			module: "weatherforecast",
      			position: "top_right",
      			header: "Weather Forecast",
      			config: {
      				location: "Vialonga",
      				locationID: "8012581",  //ID from https://openweathermap.org/city
      				appid: "xxxxx"
      			}
      		},
      		
      	 
      		{
      			module: "newsfeed",
      			position: "bottom_bar",
      			config: {
      				feeds: [
      					{
      						title: "New York Times",
      						url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
      					}
      				],
      				showSourceTitle: true,
      				showPublishDate: true
      			}
      		},
      		
      {
      disabled: false,
      module: "MMM-BMW-DS",
      position: "bottom_bar",               // bottom_bar is best
      config: {
          apiKey: "xxxxxxxxxx", // Free API key @ darksky.net
          tempUnits: "c",		              // C of F
          lat: 'YOUR LATITUDE GOES HERE', 
          lng: 'YOUR LONGITUDE GOES HERE',
          css: "2", // 1=default, 2=Clean, 3=Lord of the Rings, 4=handwriting, 5=Julee, 6=Englebert, "" = returns default css
          ownTitle: "Current Conditions",   // Use your own language and statement
          playSounds: "yes", // yes = weather sounds, no = no weather sounds
          useHeader: false,               
          header: "Your header",
          maxWidth: "100%",
             }
      },
      
      {
          module: 'MMM-Remote-Control'
          // uncomment the following line to show the URL of the remote control on the mirror
           , position: 'bottom_left'
          // you can hide this module afterwards from the remote control itself
          config: {
              customCommand: {},  // Optional, See "Using Custom Commands" below
              customMenu: "custom_menu.json", // Optional, See "Custom Menu Items" below
              showModuleApiMenu: true, // Optional, Enable the Module Controls menu
              apiKey: "",         // Optional, See API/README.md for details
          }
      },
      		
      		]
      
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== "undefined") {module.exports = config;}
      				],
      				showSourceTitle: true,
      				showPublishDate: true
      			}
      		},
      		
      		]
      
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== "undefined") {module.exports = config;}
      
      Mykle1 1 Reply Last reply Reply Quote 0
      • bhepler
        bhepler Project Sponsor last edited by

        For starters, please use the markdown features of the board when posting code. You can edit your post to add markdown marks by clicking on the three vertical dots on the lower right of your post.

        Second, are you getting any errors in the console or in the pm2 logs?

        F 1 Reply Last reply Reply Quote 0
        • F
          frankiedux @bhepler last edited by

          @bhepler no errors from config:check

          S 1 Reply Last reply Reply Quote 0
          • S
            sdetweil @frankiedux last edited by sdetweil

            @frankiedux
            This line is missing a trailing comma

            , position: 'bottom_left'
            

            This should have shone in config:check

            The leading comma is from the prior non comment line (always bad for me to do leading commas)

            Sam

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 1
            • Mykle1
              Mykle1 Project Sponsor Module Developer @frankiedux last edited by

              @frankiedux said in Need Help with Remote Control Module:

              Regarding MMM-BMW-DS

              > apiKey: "xxxxxxxxxx", // Free API key @ darksky.net
              >     tempUnits: "c",		              // C of F
              >     lat: 'YOUR LATITUDE GOES HERE', 
              >     lng: 'YOUR LONGITUDE GOES HERE',
              
              1. I assume you have an apiKey.
              2. tempUnits: "C", // not lower case
              3. Enter your coordinates for lat and lng

              Create a working config
              How to add modules

              1 Reply Last reply Reply Quote 1
              • 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