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
    • RE: MMM-forecast-io -- Localized up to the minute weather

      @dmcinnes - Looks good.

      There was a fork(?) of the original Magic Mirror (version 1) code which replaced the standard weather module using data from Dark Sky’s forecast.io API - see https://github.com/jangellx/MagicMirror

      This included a graph of temperature/rain, a forecast for the week ahead and a summary of current weather - see https://github.com/jangellx/MagicMirror#important-installation-note

      alt text

      Code seems to be contained in https://github.com/dmcinnes/MMM-forecast-io/blob/master/MMM-forecast-io.js

      Any chance your MM² module could be extended to include this too?

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

      @MichMich said in Soccer Standings:

      @ianperrin Absolutely! 🎉

      Version 1 done - see https://forum.magicmirror.builders/topic/463/formula-1-standings

      posted in Sport
      I
      ianperrin
    • RE: Dynamic Module change

      @Jopyth said in Dynamic Module change:

      @Sillec123 You have to create one (pair of?) entries per module, as I see it.But this is limited to a per minute schedule. What you want might be an extension of the Carousel, but configurable for areas. Or a per second scheduling of the Module Scheduler.

      I’ve not tried it but as the node cron module supports seconds, then MMM-ModuleScheduler may too. Feel free to try using a 6 part expression rather than the 5 part expressions in the examples for the module and report back

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

      An update to MMM-ModuleScheduler is now available which includes the ability to

      • Send notifications using a schedule - thanks for the idea @cowboysdude
      • Control how quickly modules are shown/hidden (animationSpeed option)
      • Override the name of the class used to identify the modules which have a schedule (schedulerClass option)

      Check out the updated documentation for more information.

      posted in System
      I
      ianperrin
    • RE: MMM-ping

      @shashank said in MMM-ping:

      @strawberry-3.141 I got this module installed working fine, I have a request here, I have many devices connected with DHCP in my local network at home, is it possible to get the IP using MAC address of the device. only IP with friendly name has to be displayed on the Mirror. At present i have 5 Rasp pi connected each in a room using as a MultiRoom audio system.

      @shashank I had a similar requirement so I temporarily created another module which scans the network for devices based on their mac address, and then displays their status. I use it to display an indicator of who is home based on the visibility of their smart phone devices…

      I was planned to see if I could merge this into MMM-Ping and create a pull request. Sadly this is bottom of the pile right now. I could publish it as a separate repository if that helps

      posted in Utilities
      I
      ianperrin
    • RE: MMM-Formula1 - Formula 1 Standings

      Now with standings from the constructor championship (thanks @strawberry-3-141 ) and a race schedule calendar

      posted in Sport
      I
      ianperrin
    • RE: Dynamic Module change

      @Sillec123 said in Dynamic Module change:

      Thanks but if i see it right, i have to build thousands of entries in my config for change the modules every xxx seconds. That’s not the goal.

      Possibly, but the module now supports global, group and individual schedules so the configurations can be minimised which may help.

      posted in Requests
      I
      ianperrin
    • RE: [Remote-Control] Shutdown, Configure and Update your MagicMirror

      @Jopyth - another great update. Thanks

      I’ve added an issue (feature request really) on GitHub to explore whether the functionality of this module could be exposed to other modules so it could be triggered using sendNotification.

      e.g. sendNotification('REMOTE_ACTION', {query: 'MONITOROFF'}

      I’ve also drafted a pull request with an idea of how this could be done.

      If this could be implemented, then things like turning the monitor on and off or restarting MM could be scheduled using a combination of this module and MMM-ModuleScheduler

      posted in System
      I
      ianperrin
    • RE: MMM-NetworkScanner

      @outjet I’ve not been able to spend much time on the Mirror (or this module) recently but I’ve just updated the module to include @BenNewsome’s additional functionality along with a showLastSeen option

      Can you try updating your module and adding this to your config.js file e.g. showLastSeen: true,

      posted in Utilities
      I
      ianperrin
    • RE: Module scheduling

      As @yawns points out its down to the individual modules to implement/subclass the suspend and resume methods which in turn can be used to control when background activity is performed.

      This has been around since MM 2.0, so ModuleScheduler doesn’t make any attempt to control the functionality of the modules other than show, hide, dim and send notifications.

      Hope this helps

      posted in Feature Requests
      I
      ianperrin
    • 1 / 1