MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. DaveChild
    MagicMirror² v2.24.0 is available! For more information about this release, check out this topic.
    D
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 4
    • Best 1
    • Controversial 0
    • Groups 0

    DaveChild

    @DaveChild

    1
    Reputation
    3
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    DaveChild Unfollow Follow

    Best posts made by DaveChild

    • RE: v2.22.0 | default calendar: no symbols with customEvents

      @sdetweil I did a quick PR anyway, even if it’s not perfect, it’s better there’s a starting point for a fix than make someone repeat tracking it down to where I got to.

      posted in Troubleshooting
      D
      DaveChild

    Latest posts made by DaveChild

    • RE: v2.22.0 | default calendar: no symbols with customEvents

      @sdetweil I did a quick PR anyway, even if it’s not perfect, it’s better there’s a starting point for a fix than make someone repeat tracking it down to where I got to.

      posted in Troubleshooting
      D
      DaveChild
    • RE: v2.22.0 | default calendar: no symbols with customEvents

      @sdetweil I’ve not delved far into the code but it looks to me like the symbolsForEvent function in calendar.js is getting the default symbol with the default class, but then overwriting that default with the symbol from customerEvents - but not applying the default class to it.

      This might be fixed with applying this.getCalendarPropertyAsArray to ev.symbol in the line symbols[0] = ev.symbol;.

      I’d do a PR myself but I have nowhere near enough experience tinkering with MagicMirror to be pushing code to a default module :). But I think that’s where the problem is, and my solution will work around that issue crudely for the moment.

      posted in Troubleshooting
      D
      DaveChild
    • RE: v2.22.0 | default calendar: no symbols with customEvents

      I’ve been having the same problem. In mine the fas fa-fw fa- prefix was missing, so I changed my config to this:

      customEvents: [
          {keyword: "Games", symbol: "dice fas fa-fw fa-dice"},
          {keyword: "Rugby", symbol: "running fas fa-fw fa-running"},
          {keyword: "Guitar", symbol: "guitar fas fa-fw fa-guitar"}
      ],
      

      I duplicated the “dice” at the start so it keeps working when the bug is fixed. And the icons appear now.

      Calendar screenshot showing custom icons

      posted in Troubleshooting
      D
      DaveChild
    • RE: How to autorestart MM once a day

      @MaxPower said in How to autorestart MM once a day:

      I recommend you then add the following crontab task:

      * 4 * * * pm2 restart mm
      

      Sorry to bump this old topic, but I found this searching for how to restart MM automatically and the crontab line given isn’t quite correct. That line will restart MM every minute from 4am to 5am. The line to get it to run just once is something like:

      17 4 * * * pm2 restart mm
      

      That’ll run at 4:17 am only.

      posted in Troubleshooting
      D
      DaveChild