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

MMM-NowPlayingOnSpotify stop working after v2.13 update

Scheduled Pinned Locked Moved Troubleshooting
46 Posts 3 Posters 12.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.
  • C Offline
    chassain 0 @sdetweil
    last edited by Oct 3, 2020, 7:06 PM

    @sdetweil the errors…same with the script

    [2020-10-03 21:04:52.359] [ERROR]  WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'winston'
    Require stack:
    - /home/pi/MagicMirror/modules/MMM-FeedUtilities/LOG.js
    - /home/pi/MagicMirror/modules/MMM-Provider-JSON/node_helper.js
    - /home/pi/MagicMirror/js/app.js
    - /home/pi/MagicMirror/js/electron.js
    - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
    - 
    [2020-10-03 21:04:52.396] [ERROR]  App threw an error during load
    [2020-10-03 21:04:52.397] [ERROR]  Error: Cannot find module 'winston'
    Require stack:
    - /home/pi/MagicMirror/modules/MMM-FeedUtilities/LOG.js
    - /home/pi/MagicMirror/modules/MMM-Provider-JSON/node_helper.js
    - /home/pi/MagicMirror/js/app.js
    - /home/pi/MagicMirror/js/electron.js
    - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
    - 
        at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
        at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
        at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
        at Function.Module._load (internal/modules/cjs/loader.js:531:27)
        at Module.require (internal/modules/cjs/loader.js:685:19)
        at require (internal/modules/cjs/helpers.js:16:16)
        at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-FeedUtilities/LOG.js:1:46)
        at Module._compile (internal/modules/cjs/loader.js:786:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
        at Module.load (internal/modules/cjs/loader.js:645:32)
    [2020-10-03 21:04:52.398] [ERROR]  Whoops! There was an uncaught exception...
    [2020-10-03 21:04:52.399] [ERROR]  Error: Cannot find module 'winston'
    Require stack:
    - /home/pi/MagicMirror/modules/MMM-FeedUtilities/LOG.js
    - /home/pi/MagicMirror/modules/MMM-Provider-JSON/node_helper.js
    - /home/pi/MagicMirror/js/app.js
    - /home/pi/MagicMirror/js/electron.js
    - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
    - 
        at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
        at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
        at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
        at Function.Module._load (internal/modules/cjs/loader.js:531:27)
        at Module.require (internal/modules/cjs/loader.js:685:19)
        at require (internal/modules/cjs/helpers.js:16:16)
        at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-FeedUtilities/LOG.js:1:46)
        at Module._compile (internal/modules/cjs/loader.js:786:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
        at Module.load (internal/modules/cjs/loader.js:645:32) {
      code: 'MODULE_NOT_FOUND',
      requireStack: [
        '/home/pi/MagicMirror/modules/MMM-FeedUtilities/LOG.js',
        '/home/pi/MagicMirror/modules/MMM-Provider-JSON/node_helper.js',
        '/home/pi/MagicMirror/js/app.js',
        '/home/pi/MagicMirror/js/electron.js',
        '/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js',
        undefined
      ]
    }
    [2020-10-03 21:04:52.404] [ERROR]  MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
    [2020-10-03 21:04:52.405] [ERROR]  If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
    
    S 1 Reply Last reply Oct 3, 2020, 7:18 PM Reply Quote 0
    • S Away
      sdetweil @chassain 0
      last edited by Oct 3, 2020, 7:18 PM

      @chassain-0 could not find module winston

      so npm install winston

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      C 1 Reply Last reply Oct 3, 2020, 7:18 PM Reply Quote 0
      • C Offline
        chassain 0 @sdetweil
        last edited by Oct 3, 2020, 7:18 PM

        @sdetweil yes. I do this and a lot of other dependances for this module

        S 1 Reply Last reply Oct 3, 2020, 7:21 PM Reply Quote 0
        • S Away
          sdetweil @chassain 0
          last edited by Oct 3, 2020, 7:21 PM

          @chassain-0 what does that mean?

          the error is clear

          maybe have to install in module folder. means their package.json is bad

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • P Offline
            panos
            last edited by Oct 3, 2020, 7:22 PM

            I have still no luck with NowPlayingOnSpotify.
            Any suggestion would be much appreciated.

            C 2 Replies Last reply Oct 3, 2020, 7:46 PM Reply Quote 0
            • C Offline
              chassain 0 @panos
              last edited by Oct 3, 2020, 7:46 PM

              @panos spotify is running with this version …sorry but you need to check your config

              1 Reply Last reply Reply Quote 0
              • C Offline
                chassain 0 @panos
                last edited by Oct 3, 2020, 7:47 PM

                @panos send the config.js here

                P 1 Reply Last reply Oct 3, 2020, 8:00 PM Reply Quote 0
                • P Offline
                  panos @chassain 0
                  last edited by panos Oct 3, 2020, 8:08 PM Oct 3, 2020, 8:00 PM

                  @chassain-0

                  Sorry. I forget to put them when I’m removing sensitive data.
                  this is the correct config.

                  /* 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:
                  	                      // - "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: ["127.0.0.1", "::ffff:127.0.0.1", "::1", "10.0.10.0/24", "10.0.50.0/24"], // 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: "en-gb",
                  	timeFormat: 24,
                  	units: "metric",
                  
                  	modules: [
                  		{
                  			module: "alert",
                  			config: {
                  			alert_effect: "flip"
                  			}
                  		},
                  		{
                  			module: "updatenotification",
                  			position: "top_center"
                  		},
                                  .....
                  		{
                  			module: "MMM-NowPlayingOnSpotify",
                  			position: "top_left",
                  			config: {
                  				clientID: “a4r..54f"
                  				clientSecret: “e2...d3"
                  				accessToken: "BQD...95fmg",
                  				refreshToken: "AQAr....YXR3"
                  			}
                  		},
                  		{
                  			module: "MMM-Remote-Control",
                  //			position: 'bottom_left',
                  		}
                  	]
                  
                  };
                  
                  /*************** DO NOT EDIT THE LINE BELOW ***************/
                  if (typeof module !== "undefined") {module.exports = config;}
                  
                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    chassain 0
                    last edited by Oct 3, 2020, 8:02 PM

                    you have just forget comma for client id,clientsecret…

                    P 1 Reply Last reply Oct 3, 2020, 8:08 PM Reply Quote 0
                    • P Offline
                      panos @chassain 0
                      last edited by Oct 3, 2020, 8:08 PM

                      @chassain-0 I have edited my previews post.

                      C 1 Reply Last reply Oct 3, 2020, 8:12 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 4 / 5
                      4 / 5
                      • First post
                        35/46
                        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