MagicMirror² v2.14.0 is available! For more information about this release, check out this topic.

MMM-Strava Auth Fail

  • I followed all the steps, but I fail to authorize the app.

    Every time I go to http://localhost:8080/MMM-Strava/auth/ or I get “Safari failed to open page”. Any idea on what I"m doing wrong? I’d love to get this module to work on my mirror.

    alt text

    Thank you in advance for all your help.

  • Module Developer

    @huso15 Where do you have the mirror running? On the mac or on a pi?

  • Module Developer

    @lavolp3 If I remember correctly:
    If you’re trying to auth from your mac’s browser using the pi as the mirror you should use the Pi’s IP address as callback URL. NOT “localhost”.
    You need to use a valid address you can enter from your mac or laptop.

    This one works if you also use as callback URL for the authentication.

  • @lavolp3 Thank you for the reply.

    I’m running MagicMirror on PI. I’m using SSH on Mac’s terminal to access PI. The Strava Auth I’m trying to run through Safari on my Mac by using PI’s IP: - but, it doesn’t work. I’m still getting Failed to Open Page.

    I’ve tried, localhost, and even as Authorization Local Callback Domain, but still nothing.

    No idea how to proceed or what I’m doing wrong here.

  • Anyone that can help with this issue?

  • Project Sponsor

    @huso15 Hi. You need to add the config to the config.js and start MM. Then run in a browser. This should then open the auth page to Strava. Hope this helps.

  • Project Sponsor

    Your config.js should also allow listen on for By default it is set to “localhost” only.

    There is also a “ipWhitelist” which should reflect the ip address of your Mac and your PI.

    Here’s my config.js relevant to listen on and ipWhitelist

    var config = {
    	address: "", 	// Address to listen on, can be:
    							// - "localhost", "", "::1" to listen on loopback interface
    							// - another specific IPv4/6 to listen on a specific interface
    							// - "", "::" to listen on any interface
    							// Default, when address config is left out or empty, is "localhost"
    	port: 8080,
    	basePath: "/", 	// The URL path where MagicMirror is hosted. If you are using a Reverse proxy
    					// you must set the sub path here. basePath must end with a /
    	ipWhitelist: ["", "::ffff:", "::1", "", ""], 	// Set [] to allow all IP addresses
    					// or add a specific IPv4 of :
    					// ["", "::ffff:", "::1", "::ffff:"],
    					// or IPv4 range of --> use CIDR format : // ["", "::ffff:", "::1", "::ffff:"],

    And here’s my Strava module in “config.js”

    				module: "MMM-Strava",
    				position: "bottom_right",
    				header: "Strava",
    				config: {
    					client_id: "12345",
    					client_secret: "123456789012345678901234567890",
    					mode: "chart",
    					chartType: "bar",
    					activities: ["run"],
    					stats: ["count", "distance", "elapsed_time", "achievements"],
    					period: "recent",
    					units: "metric",

    If you’ve downloaded the Strava module and add it to your config together with the listen on and ipWhitelist you should be able to successfully register and use the module.

    Good luck!

Log in to reply