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

Help... I need help installing 3rd party modules to Magic Mirror 2

Scheduled Pinned Locked Moved Troubleshooting
26 Posts 4 Posters 15.7k Views 3 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.
  • J Offline
    joeytuck
    last edited by Apr 17, 2017, 2:07 AM

    		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
    		}
    	},
    
    {
    		module:´MMM-Traffic´,
    		position: ´bottom_right´
    		classes: ´dimmed medium´,
    		config:  {
    			api_key: ´´,
    			mode: ´driving´,
    			origin: ´´,
    			destination: ´´,
    			arrival_time: ´´,
    			route_name: ´Home to Work´,
    			changeColor: true,
    			showgreen: false,
    			limitYellow: 5,
    			limitRed: 20,
    			traffic_model: ´pessimistic´,
    			interval: 120000, 
    			showWeekend: true
    			allTime: true
    

    }
    },
    ]

    };

    B 1 Reply Last reply Apr 17, 2017, 2:26 AM Reply Quote 0
    • B Offline
      broberg Project Sponsor @joeytuck
      last edited by Apr 17, 2017, 2:26 AM

      @joeytuck

      you are missing a , after showWeekend: true,

      1 Reply Last reply Reply Quote 1
      • J Offline
        joeytuck
        last edited by Apr 17, 2017, 2:42 AM

        Good catch. I added the comma, saved the config file and tried pi@raspberrypi: ~/MagicMirror $ npm start To no avail. Do I need to do anything to the MMM-Traffic config.js file defaults?

        B 1 Reply Last reply Apr 17, 2017, 2:44 AM Reply Quote 0
        • B Offline
          broberg Project Sponsor @joeytuck
          last edited by Apr 17, 2017, 2:44 AM

          @joeytuck there is also another comma missing after the position line

          1 Reply Last reply Reply Quote 1
          • J Offline
            joeytuck
            last edited by Apr 17, 2017, 2:46 AM

            Added that comma as well and itś still failing. Hereś what Iḿ getting.

            pi@raspberrypi:~/MagicMirror $ npm start

            magicmirror@2.1.1 start /home/pi/MagicMirror
            sh run-start.sh

            Starting MagicMirror: v2.1.1
            Loading config …
            WARNING! Could not validate config file. Please correct syntax errors. Starting with default configuration.
            Loading module helpers …
            Initializing new module helper …
            Module helper loaded: updatenotification
            No helper found for module: helloworld.
            All module helpers loaded.
            Starting server on port 8080 …
            Starting server op port 8080 …
            Server started …
            Connecting socket for: updatenotification
            Sockets connected & modules started …
            Launching application.

            1 Reply Last reply Reply Quote 0
            • J Offline
              joeytuck
              last edited by Apr 17, 2017, 2:48 AM

              This has been kicking my butt for the last day and a half. Learning a lot during the beating though. Do I need to add ’ ’ around numeric values as well?

              A 1 Reply Last reply Apr 17, 2017, 11:52 AM Reply Quote 0
              • J Offline
                joeytuck
                last edited by Apr 17, 2017, 3:01 AM

                Also, do I need to do anything to the MMM-Traffic.js file defaults like adding the api_key or changing values to match my selections on the config.js file? It seems like it’s really easy when I read the readme files and I’m looking forward to that being the case. Any help in taking a step in the right direction would be much appreciated.

                A 1 Reply Last reply Apr 17, 2017, 12:00 PM Reply Quote 0
                • J Offline
                  joeytuck
                  last edited by Apr 17, 2017, 3:32 AM

                  Fixed the config errors. Turns out that if you put Drive, instead of Dr, it won’t recognize it. Unfortunately, now Magic Mirror is starting normally but I don’t see the MMM-Traffic module being displayed. I’ve tried multiple screen positions and nothing.

                  1 Reply Last reply Reply Quote 0
                  • A Offline
                    Anhalter42 @joeytuck
                    last edited by Apr 17, 2017, 11:52 AM

                    @joeytuck said in Help... I need help installing 3rd party modules to Magic Mirror 2:

                    Do I need to add ’ ’ around numeric values as well?

                    Usually you don’t. It distinguishes between (for example) the NUMBER 5 and the TEXT containing “5”. To be sure, you should look at the default values and just do it in the same way. For example, arrival_time seems to require " " even though the given example “1445” also could have been a plain number (I guess the reason is the leading 0 at for example “0800” which gets ignored when inputting as number)

                    Also, you got some strange quotation marks ´ ´. Until now I thought, only " " and ’ ’ were valid.

                    1 Reply Last reply Reply Quote 1
                    • A Offline
                      Anhalter42 @joeytuck
                      last edited by Anhalter42 Apr 17, 2017, 12:02 PM Apr 17, 2017, 12:00 PM

                      @joeytuck said in Help... I need help installing 3rd party modules to Magic Mirror 2:

                      Also, do I need to do anything to the MMM-Traffic.js file defaults like adding the api_key or changing values to match my selections on the config.js file?

                      No. To include the MMM-Traffic module you just have to include it in your config.js (providing all the required settings).

                      @joeytuck said

                      Turns out that if you put Drive, instead of Dr, it won’t recognize it.

                      Where do you put Drive or Dr? In the readMe, possible values for “mode” are described to be ‘driving’, ‘walking’, ‘bicycling’, ‘transit’.

                      I suggest to delete or comment (adding // before the line) all not-required settings of MMM-Traffic at first to minimize possible sources for errors.

                      1 Reply Last reply Reply Quote 1
                      • 1
                      • 2
                      • 3
                      • 1 / 3
                      1 / 3
                      • First post
                        9/26
                        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