MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. ianperrin
    3. Best
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    I
    Offline
    • Profile
    • Following 0
    • Followers 6
    • Topics 6
    • Posts 164
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: MMM-Strava

      @zerodegree79 , @Val07300, @ctatos (and others I may have missed).

      A new (beta) version of the module with support for Strava’s new authentication flow is available.

      Much of the code for the module has been re-written/re-factored and includes a number of changes to the original module including

      • Support for multiple instances of the module
      • The table and chart and now generated via templates (rather than javascript)
      • A helper is included to simplify the initial authentication with Strava
      • chart mode now supports either the recent and ytd values in the period option
      • The stats displayed in table mode are configurable via the stats option
      • To support the new authentication flow, the client_id and client_secret must be included in the config in place of the deprecated strava_id and access_token options. The legacy options can still be used, but will trigger an alert on the mirror when the module is loaded and it is recommended they are removed.

      Please note - the module no longer supports multiple athlete id’s in one module instance. Multiple instances can be added to the config file to achieve similar results.

      Notes for beta testers

      This functionality is only available in the develop branch of the github repository at this time. Once any issues have been fixed, the master branch will be updated.

      To test the refresh token functionality and the new authentication flow in the Magic Mirror, you need to update the module using the following steps:

      • stop the Magic Mirror
      • switch to the develop branch and install the new dependencies
        cd ~/MagicMirror/modules/MMM-Strava
        git checkout develop && git pull
        npm install --production
        
      • edit the MMM-Strava configuration in config.js and
        • remove strava_id and access_token options
        • add client_id and client_secret options. The values for these options should be copied from the My API Application page in your Strava profile
      • restart the Magic Mirror

      When updated correctly, the module should display a Client id unauthorised message. The module can be authorised using the following steps:

      • Browse to http://localhost:8080/MMM-Strava/auth/ on the Magic Mirror. This can be done remotely if you have setup the ipWhitelist in the Magic Mirror
      • Select module and click Authorise
      • If prompted, log in to Strava
      • On the Strava Authorisation page, click Authorize
      • Once the successful authorisation message appears, restart your Magic Mirror.
      posted in Health
      I
      ianperrin
    • RE: MMM-ModuleScheduler - Module Schedules and Notifications

      @cowboysdude Glad to hear it works!

      posted in System
      I
      ianperrin
    • RE: Can somebody with permissions rename my posting bc I have renamed my module...

      @KirAsh4 said in Can somebody with permissions rename my posting bc I have renamed my module...:

      It’s confusing to readers when an original post gets changed later. It’s better to make an announcement in the thread. Keep the original for posterity.

      Agreed, so would it be possible for creators of threads in the module showcase to have the permission to move comments to the module troubleshooting section and add tags. That way the original showcase remains navigable?

      posted in Forum
      I
      ianperrin
    • RE: MMM-Soccer - Standings, Schedules and Top Scorers

      Hi @strawberry-3-141 - thanks for putting together this module.

      In case it helps anyone, I’ve created a GitHub repository for my version of the module - https://github.com/ianperrin/MMM-FootballData. I renamed it to add the MMM- prefix as that seems the convention round here, and changed soccer to FootballData because a) that’s the name of the game :) and b) it indicates the source (http://api.football-data.org)

      [card:ianperrin/MMM-FootballData]

      ALL CREDIT GOES TO @strawberry-3-141

      posted in Sport
      I
      ianperrin
    • RE: MMM-Strava

      An updated BETA version of MMM-Strava is available which includes a chartType option to toggle between classic bar chart and a new radial histogram

      Below is a sample config and screenshot - note the histogram will display in grayscale, colours can be achieved using custom.css

      {
      	module: "MMM-Strava",
      	header: 'Strava Radial Chart',
      	position: "top_right",
      	config: {
      		client_id: "xxxxx",
      		client_secret: "xxxxx",
      		mode: "chart",
      		chartType: "radial",
      		period: "ytd"
      	}
      },
      

      example-chart-radial.png

      Please report any comments/issues here, or on github

      posted in Health
      I
      ianperrin
    • RE: MMM-ModuleScheduler - Module Schedules and Notifications

      @strawberry-3.141 said in MMM-ModuleScheduler:

      @cowboysdude adding a css filter to the specific module could set the brightness down

      Great idea - will give it a go ;)

      posted in System
      I
      ianperrin
    • RE: How to insert a GitHub card in a post?

      @Cato
      I found it originally by using the quote function on a post containing a card and looking at the markdown in the editor.

      As these forums use nodebb I believe the card functionality comes from this module - https://github.com/mani95lisa/nodebb-plugin-github-card/ - so there are also some notes in the readme on that repository

      posted in Forum
      I
      ianperrin
    • RE: MMM-Soccer - Standings, Schedules and Top Scorers

      @ianperrin said in Soccer Standings:

      Hi @strawberry-3-141 - thanks for putting together this module.

      In case it helps anyone, I’ve created a GitHub repository for my version of the module

      If anyone is looking for my version of the module, I have now deleted the MMM-FootballData repository and focusing my efforts on a fork of MMM-soccer created by @strawberry-3-141.

      For those interested, you can find my fork here: https://github.com/ianperrin/MMM-soccer

      posted in Sport
      I
      ianperrin
    • RE: Strava widget

      @d3r - I’ve pushed the module to GitHub so feel free to have a look and let me have your feedback.

      You can also find the module via

      • The 3rd Party modules list on MagicMirror wiki - (https://github.com/MichMich/MagicMirror/wiki/MagicMirror²-Modules#3rd-party-modules)
      • The Modules Showcase on this forum - (https://forum.magicmirror.builders/topic/457/strava)

      Enjoy

      posted in Requests
      I
      ianperrin
    • RE: MMM-ModuleScheduler - Module Schedules and Notifications

      @cowboysdude said in MMM-ModuleScheduler:

      Okay I have another curve ball for you… how about … the ability to turn the mirror off and back on with this? :)

      So I’m thinking there are a number of approaches here.

      One approach might be to add a mechanism to schedule the sending of notifications e.g
      notification_schedule: [{cronTime: '0 22 * * *', notification: 'MONITOR_OFF'}, {cronTime: '0 9 * * *', notification: 'MONITOR_ON'}]

      Another module could then be built (or may already exist) to listen to the notifications and react accordingly, e.g. control the monitor.

      What do you think?

      posted in System
      I
      ianperrin
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 3 / 7