MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. ianperrin
    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

    ianperrin

    @ianperrin

    MODULES: Clash Royale, Formula1, Module Scheduler, Network Scanner, Strava

    94
    Reputation
    4.8k
    Profile views
    164
    Posts
    6
    Followers
    0
    Following
    Joined
    Last Online

    ianperrin Unfollow Follow
    Module Developer

    Best posts made by ianperrin

    • MMM-NetworkScanner

      Here is a module I have been working on to display the status of devices on the network.

      [card:ianperrin/MMM-NetworkScanner]

      The original concept was to display an indicator of who was at home based on whether the persons phone was connected to the network (see below). As these devices have dynamic IP addresses, MMM-Ping was not an option so I temporarily created this module to show the status of these devices based on their MAC Address.

      who is at home

      There are many other ways to use the module, including displaying (monitor?) the status of some/all devices connected to the network, though I’m not sure the MagicMirror it is the best place for this :)

      As ever this is work in progress, so check out the ReadMe file for installation and configuration notes, keep your module updated and do report any issues

      cc. @shashank @strawberry-3-141

      posted in Utilities network scanner status mac address
      I
      ianperrin
    • MMM-Strava

      Description:

      MMM-Strava allows you to view your Strava activity data right on your MagicMirror.

      The module currently displays the following information:

      • The number of activities for the period.
      • The total distance for the period.
      • The total number of achievements (recent period only).

      In addition you can configure the following options

      • Which period to display stats for your activities: Recent (last 4 weeks), year to date or all time
      • Which activities (and the order activities) should be displayed.
      • The units (miles/kilometres) used to display the total distance for each activity

      Screenshots:

      Auto-rotating table

      Chart mode

      Download:

      [card:ianperrin/MMM-Strava]


      Change log:

      1.0.0

      • Initial Version

      1.1.0

      • Added option to rotate through the different periods (auto_rotate).
      • Added option to set the interval between rotations (updateInterval).
      • Added chart mode option to display last weeks activity as per Strava profile

      1.1.1

      • Added German translations (thanks @fewieden)
      • Added localisations for chart labels

      1.1.2

      • Added locale option to overide global config.language

      1.1.3

      • Improved bar heights in chart mode
      • Added option to show elevation in table mode (thanks @khassel)
      • Add support for multiple athletes (thanks @khassel)
      • Added Hungarian translation (thanks @peet86)
      • Added Indonesian translation (thanks @slametps)

      1.1.4

      • Internal fixes to improve performance, logging and documentation
      • Support for private activities

      1.1.5

      • Include virtual rides in chart mode

      1.1.6

      • Internal fixes

      1.1.7

      • Show elevation in minor units (metres/feet)

      2.0.0 (BETA)

      See (https://forum.magicmirror.builders/topic/457/mmm-strava/37)

      2.0.0

      • Support for changes to the Strava oAuth model.
      • Statistics displayed in table mode are configurable via the stats option.
      • period option is now supported in chart mode.
      • Multiple instances of the module should now be supported.

      2.0.1

      • Bug fixes for token refresh issues.

      2.1.0

      • Adds a BETA chartType option to toggle between classic bar chart and radial histogram

      2.2.0

      • Adds digits option to control the number of decimal places shown for the distance and elevation stats

      2.3.0

      • Adds support for the stats option in bar chart mode
      • Adds support for additional activities in chart mode
      posted in Health activity tracker health strava
      I
      ianperrin
    • MMM-ModuleScheduler - Module Schedules and Notifications

      Description:

      A helper module for creating schedules which

      • Hide, show or dim individual modules, groups of modules or all modules
      • Send notifications to other modules (e.g. to restart/turn off your MagicMirror, turn on/off your screen, and turn off your Pi via MMM-Remote-Control

      As ever this is work in progress, so check out the ReadMe file for installation and configuration notes, keep your module updated and do report any issues.

      Screenshots:

      Add as many screenshots as you like.
      Example Scheduling

      Download:

      [card:ianperrin/MMM-ModuleScheduler]


      Change Log

      Version 1.4

      • Added global schedules which allow a single schedule to show/hide/dim all modules
      • Added group schedules which allow a single schedule to show/hide/dim a subset of modules
      • Added support for visibility locking introduced in Magic Mirror 2.1.0
      • Added debug config option to control output to logs

      Version 1.3

      • Added ability to schedule sending notifications to other modules

      Version 1.2

      • Added ability dim modules (instead of hiding them)

      Version 1.1.0

      • Added support for multiple schedules per module

      Version 1.0.1

      • Fixed issue with scheduled jobs when browser is refreshed

      Version 1.0.0

      • Initial version
      posted in System module schedule cron notifications
      I
      ianperrin
    • RE: MMM-Carousel ignoreModules

      @shgmongohh said in MMM-Carousel ignoreModules:

      Whats wrong with my config file?

      It looks like you are missing both the quotes around the module names (as @strawberry-3-141 mentioned) and the name of the configuration option (i.e. ignoreModules).

      Try this version:

      {
          module: 'MMM-Carousel',
          config: {
              ignoreModules: ['clock', 'calendar']
           }
      },
      

      You might also want to consider adding 'alert' to the ignoreModules list as pointed out by @barnabycolby in his Configuration Options notes

      posted in Troubleshooting
      I
      ianperrin
    • RE: Turn on and off monitor through HDMI

      @RHeniz

      One way of achieving this is to use a combination of MMM-Remote-Control and the MMM-ModuleScheduler

      See https://github.com/ianperrin/MMM-ModuleScheduler#scheduling-actions-to-control-your-magicmirror-pi-and-monitorscreen

      posted in General Discussion
      I
      ianperrin
    • RE: MMM-Strava

      An updated version of the module is now available which includes the option to display your last weeks activity in a more graphical format (similar to how it is displayed on your Strava profile).

      Chart mode

      To enable this feature on your mirror,

      • The MMM-Strava module should be installed (or updated)
      • The mode: "chart" option should be added to your config.js file

      Note if the new mode option is not included (or set if it is not set to chart) the classic table layout will be used.

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

      @cowboysdude said in MMM-ModuleScheduler:

      Just curious would it be possible not to hide but to dim specific modules?

      I’ve pushed an update which includes the ability to dim a module. Please feel free to update the module and use the example configuration to test it out.

      posted in System
      I
      ianperrin
    • RE: custom.css

      @yo-less said in custom.css:

      I’m not aware of any way to change global css styles (such as: “xlarge”) for only a specific module using the custom.css file. Does anyone else have any idea whether that can be done?

      Each of the modules are wrapped in a div element with a class corresponding to the name you use to define the module in the config file e.g.

      <div class="module compliments">
      ...
      </div>
      

      So to change the styles of a particular module, you can use the following in the custom.css file

      .compliments .xlarge {
          font-size: 10pt;
      }
      
      posted in Troubleshooting
      I
      ianperrin
    • RE: MMM-Strava

      @jan support for additional activities in chart mode is in the works, keep an eye out for updates ;)

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

      @plumcraft

      As @cowboysdude said, you need to configure the classes option to trigger the scheduler.

      As you already have the classes option set up for what looks like @paviro 's MMM-FacialRecognition module I would suggest trying the following config.

      {
        module: 'MMM-WunderGround',
        position: 'top_right',
        config: {
          module_schedule: {from: '0 14 * * *', to: '0 18 * * *' },
          apikey: 'ad100f1e35ae51d2', // private; don’t share!
          pws: 'pas:IBOULOGN39', //culemborg
          hourly: '1',
          fctext: '1',
          fcdaycount: '5',
          fcdaystart: '0',
          hourlyinterval: '3',
          hourlycount: '2',
          alerttime: 10000,
          alerttruncatestring: 'french:'
        },
        classes: 'for_all default scheduler'
      },
      

      Please do report back if you are successful because I haven’t tested the compatibility of the two modules :)

      posted in System
      I
      ianperrin

    Latest posts made by ianperrin

    • RE: MMM-Strava stopped updating

      Hi all, sorry for the delayed response

      @levon looking at the screen shot of your stats from the python module, the total number of activities you have logged this year exceeds 200. Whilst the module will continue to work (making api calls and updating the tokens file) only the first 200 activities are summarised in the chart.

      There is an issue relating to this bug ion GitHub, but I’ve not had the time to delve deeper.

      To confirm, can you set the period to “recent” and confirm the latest activities are included in the chart?

      posted in Troubleshooting
      I
      ianperrin
    • RE: MMM-ModuleScheduler Loading Wrong Date

      @snille - you’re spot on. MMM-ModuleScheduler uses the cron module. The ranges for cron values can be found in the npm module documentation.

      I’ve added an issue in the GitHub repository to update the documentation for the module.

      posted in Troubleshooting
      I
      ianperrin
    • RE: YouTube Subscriber Counter

      @choffmann - nice module.

      Here’s a similar one I put together last year - https://github.com/ianperrin/MMM-YouTubeChannelStats

      alt text

      posted in Requests
      I
      ianperrin
    • RE: MMM-Strava

      @mike2323 said in MMM-Strava:

      If this is still causing problems, can you try making sure the activities option is specified as an array, even if only one activity type is required? It looks like you haven’t done this in the options for the second module definition

      In other words:

      activites: ["ride"],
      
      posted in Health
      I
      ianperrin
    • RE: MMM-Strava

      @jan support for additional activities in chart mode is in the works, keep an eye out for updates ;)

      posted in Health
      I
      ianperrin
    • RE: MMM-Strava only shows achievements, nothing else?

      Hi all, slightly late to the party, but to add to the comments above…

      This module started out using the Get Athlete Stats endpoint in the Strava api to generate the table. This continues to be the case today, but as noted above, this api does not include private activities.

      In chart mode the module uses the List Athlete Activities. Providing access to private activities is granted when authorising the module, these activities will be included.

      I’m considering removing the use of the Get Athlete Stats endpoint and aggregating the data from the List Athlete Activities endpoint within the module. This would resolve this problem and allow more activity types to be supported.

      In the meantime, the options for displaying private activities are to use chart mode (and grant access during authorisation) or use are to use the forked module.

      posted in Troubleshooting
      I
      ianperrin
    • RE: MMM-STRAVA

      @acdacd2 do you use table or chart mode?

      The reason why I ask is that the api which is used to generate the table, only provides data for run, ride and swim activity types.

      Support for additional activity types in chart mode is in the works. Watch out of updates. ;)

      posted in Health
      I
      ianperrin
    • RE: MMM-Strava

      @mike2323 the activities option should work for the table and chart modes. Could you check you are using the latest version and post your config for the module (removing or masking the client id and secret)?

      Here’s a working example

              {
                  module: "MMM-Strava",
                  position: "top_right",
                  header: "Strava",
                  config: {
                      client_id: "000000",
                      client_secret: "z793xxxxxxxxxxxxxxxxxxxx498d2",
                      mode: "chart",
                      activities: ["ride"],
                      period: "ytd"
                  }
              }
      

      If you want two activities, you can enter them as follows: activities: ["ride", "run"]

      posted in Health
      I
      ianperrin
    • RE: MMM-Strava

      @bachoo786 - you can add multiple instances of the module and link them to different athletes, but this is expected to be for other members of the household as you would need to authenticate the respective module as them so not intended for “remote” athletes you follow.

      posted in Health
      I
      ianperrin
    • RE: MMM-Strava

      @Lagmin where are you accessing the MagicMirror from?

      If you are doing this from the Raspberry Pi, the url will probably start with http://localhost:8080

      If you are doing this from another computer on your network, the url will start with the IP address, http://192.168.0.177:8080 - though you will need to set the ipWhitelist option in the configuration file first.

      posted in Health
      I
      ianperrin