MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. ianperrin
    3. Posts
    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: No Data in Module MMM-Formula1

      So in adding the calendar functionality to the module, my goal was to make it (and the ical-generator dependency) optional so that those who didn’t wish to use it could simply clone the repo, add the basic config and be up and running. Whereas those who wanted the calendar, could go through the additional npm install steps.

      I tested this with the following set up:

      • On my Dev machine, I have the ical-generator package installed. Here I can set the calendar configuration option to true or false and the module works without error
      • On my Pi, the ical-generator package has never been installed. Setting the calendar option to false, allows the standings table to be displayed, but setting it to true triggers an error. Furthermore, omitting the calendar option from the config also triggered an error.

      On investigation the default value for the calendar option was set to true. Thus always forcing the ical-generator package to be required. I’ve updated the code to correctly set the default to false and now the Pi instances works as expected without the package if the option is not set in the config and if it set to false .

      Could it be that in your instance, the config for MMM-Forumla1 did not include the calendar option, therefore, the module failed?

      Perhaps someone could confirm this by running npm uninstall ical-generator in the module folder, then git pull to get the latest version of the module, then set calendar: false in the config options and see if the standings display?

      posted in Troubleshooting
      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: Parse HTML String

      @alihallo

      If your input html file is fairly simple, you may be able to avoid the use of the cheerio library entirely

      // an array to hold the data from the file
      var data_array = [];
      // Get all p tag elements inside div tag elements with an id that starts with 'data_'
      var data_tags = body.querySelectorAll('div[id^=data_] p');
      // Loop through data tags and add content to data array
      for (i = 0; i < data_tags.length; i++) { 
          data_array.push(data_tags[i].innerHTML);
      }
      

      Of course the more complex your input file is the more you might benefit from the use of cheerio.

      posted in Development
      I
      ianperrin
    • RE: custom.css

      Looks like @strawberry-3-141 beat me to the reply ;)

      posted in Troubleshooting
      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-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: 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: Different layout...

      @strawberry-3.141 yes,

      Though I was thinking aliasing the IP addresses with distinct device config labels such as rpi2 and rpi3 and even my_ipad and lounge_tv

      However, there’s is a use case to allow one device configuration to be applied to multiple devices so the tv’s IP address would be assigned large, iPad would be medium and rpi’s could be small

      posted in General Discussion
      I
      ianperrin
    • RE: Different layout...

      @strawberry-3.141 do you think it be possible to use something like node-ipware to detect the IP address of the device requesting the magicmirror pages within a modified version of MMM-Facial-Recognition so the module config can be varied?

      posted in General Discussion
      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
    • MMM-Formula1 - Formula 1 Standings

      Description:

      MMM-Formula1 allows you to display the driver and constructor standings from the current Formula 1 season right on your MagicMirror.

      Screenshots:

      Example Screenshot

      Download:

      [card:ianperrin/MMM-Formula1]


      Change Log

      Version 1.4.0

      • Added showConstructor option to hide constructor in driver standings - thanks @MichMich
      • Added translations for Season and Round labels in the table footer - thanks @The-Exterminator
      • Added Danish translation - thanks @The-Exterminator
      • Changed API calls to use the f1-api package <- this is a breaking change, please see docs for updating the module

      Version 1.3.0

      • Added Swedish translation - thanks @el97
      • Added support for Monegasque nationality
      • Re-factored code to use templates for module layouts

      Version 1.2.2

      • Added grayscale option - thanks @HenningSchulz
      • Added showFooter option - thanks @HenningSchulz
      • Added Indonesian translation - thanks @slametps
      • Tweaked table layout to improve display when module is positioned right

      Version 1.2.1

      • Calendar now respects the season option
      • calendar option now defaults to false
      • Multiple constructors are displayed in the drivers standings if the driver drivers for more than one team in the season

      Version 1.2

      • Added ability to publish a calendar containing the current Race Schedule which can be displayed in the default cslendar module

      Version 1.1

      • Added Constructors standings - thanks @strawberry-3-141
      • Added option to choose season to display - thanks @strawberry-3-141
      • Added support for translations
      • Added flags to indicate drivers nationality
      • Add option to limit number of rows displayed in standings table

      Version 1.0

      • Initial Version

      Notes

      • This is work in progress so please feel free to contribute!
      • If you have ideas for new features, or think you’ve found a bug, please add a new issue here: https://github.com/ianperrin/MMM-Formula1/issues
      posted in Sport
      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: Fade-in/Fade-out with Electron

      and also take a look at https://github.com/MichMich/MagicMirror/blob/develop/modules/default/weatherforecast/weatherforecast.js#L142 - this is where the MMM-soccer fade functionality was derived from

      credits to @MichMich and the MM team :)

      posted in Development
      I
      ianperrin
    • RE: MMM-Strava

      An option has been added to determine whether the module should automatically rotate through the different periods (auto_rotate), and the interval between rotations (updateInterval).

      Auto-rotating table

      Note: To add this feature to your mirror, you’ll need to update your module. Follow these instructions.

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

      @strawberry-3.141 , @MichMich - would this one do the job http://ergast.com/api/f1/current/driverStandings.json ??

      If so, I’m happy to roll something up based on the Soccer Standings module…

      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
    • 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
    • RE: Strava widget

      @MichMich said in Strava widget:

      @ianperrin Lovely module. Really like the design!

      Thanks @MichMich - though the credit goes to you for the MagicMirror2 and MMM-Toon module.

      Sadly, FontAwesome don’t include sports icons - so the heartbeat and life-saver seemed the best alternatives…

      posted in Requests
      I
      ianperrin
    • RE: Strava widget

      @d3r

      I created the basis for a Strava module last weekend, but got distracted looking at @strawberry-3-141 's MMM-soccer module. ;)

      Here’s a screenshot which grabs the recent stats and totals from the Strava API and displays them in a table.

      0_1470247639644_MMM-Strava.png

      I plan to share it via GitHub this week so if you care to wait a day or so, we can combine efforts!

      posted in Requests
      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
    • 1
    • 2
    • 5
    • 6
    • 7
    • 8
    • 9
    • 8 / 9