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
    • 1 / 1