Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. ianperrin
    3. Posts
    I
    • Profile
    • Following 0
    • Followers 6
    • Topics 6
    • Posts 157
    • Best 64
    • Groups 1

    Posts made by 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
    • RE: MMM-Formula1 - Formula 1 Standings

      @Peter just checking whether you are using the latest version of the module? If not, try updating

      I added a fix last year to support Monegasque as a nationality for Charles Leclerc.

      F1Standings.png

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

      @bachoo786 MMM-ModuleScheduler (and MMM-RemoteControl) are only sending hide/show requests via the MagicMirror API, so have no control over the target modules upstream API calls.

      However, it may be possible something is amiss. Can you post your config and I’ll see if I can spot anything?

      posted in System
      I
      ianperrin
    • RE: MMM-Strava

      @MisterT said in MMM-Strava:

      the radial gaphic it’s just a little too big and the graphic overlaps the other module.
      I’m working on making the chart size customisable - watch out for further updates

      I think we need informations about custom css in order to display colors about kilometers like for exemple:
      less 10 km for running in a month : red color
      from 10 to 30 km for running in a month: orange color
      over 30 km for running in a month : green color

      I like the idea of colouring the bars based on a target. Will think about this one.

      In the meantime, to customise the colours of each bar in the radial chart, add the following to the custom.css file in ~/MagicMirror/css.

      .MMM-Strava svg path.bar.interval-1 {
        fill: #67b7dc;
      }
      
      .MMM-Strava svg path.bar.interval-2 {
        fill: #6794dc;
      }
      
      .MMM-Strava svg path.bar.interval-3 {
        fill: #6771dc;
      }
      
      .MMM-Strava svg path.bar.interval-4 {
        fill: #8067dc;
      }
      
      .MMM-Strava svg path.bar.interval-5 {
        fill: #a367dc;
      }
      
      .MMM-Strava svg path.bar.interval-6 {
        fill: #c767dc;
      }
      
      .MMM-Strava svg path.bar.interval-7 {
        fill: #dc67ce;
      }
      
      .MMM-Strava svg path.bar.interval-8 {
        fill: #dc67ab;
      }
      
      .MMM-Strava svg path.bar.interval-9 {
        fill: #dc6788;
      }
      
      .MMM-Strava svg path.bar.interval-10 {
        fill: #dc6967;
      }
      
      .MMM-Strava svg path.bar.interval-11 {
        fill: #dc8c67;
      }
      
      .MMM-Strava svg path.bar.interval-12 {
        fill: #dcaf67;
      }
      

      Note: As the radial chart is in beta, the css classes may be subject to change.

      posted in Health
      I
      ianperrin
    • RE: MMM-Strava

      @MisterT - Great to hear it’s working now 👍

      posted in Health
      I
      ianperrin
    • RE: MMM-Strava

      @MisterT I’ve just pushed an update to the module which may have fixed it. Can you update the module and let me know how it works out?

      posted in Health
      I
      ianperrin
    • RE: MMM-Strava

      @MisterT can you post the modified versions of these lines which enabled MMM-pages to rotate, but caused the undefined error for MMM-Strava?

      I’m also curious about the error you posted in the other thread as it seems to refer to a style sheet included by another module…

      posted in Health
      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
    • 1
    • 2
    • 3
    • 4
    • 5
    • 15
    • 16
    • 1 / 16