MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. _V_
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    _
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 6
    • Posts 25
    • Groups 0

    _V_

    @_V_

    0
    Reputation
    1
    Profile views
    25
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online
    Location South-west Germany

    _V_ Unfollow Follow

    Latest posts made by _V_

    • RE: Cal EXT3 - understanding transforming

      @sdetweil Sam good evening

      I wonder how to set up multiple ev transformations in one config.

      I got working

      { 
      eventTransformer: (ev) => {
      if (ev.title.search("Geburtstag") > -1) {ev.color= "#ff00ff"; };
      return ev; },
      

      But putting another one to it is puzzling me. I tried different methods, but cant get it done.
      When I simply put a second complete command after the first, like this:

      { 
      eventTransformer: (ev) => {
      if (ev.title.search("Arzt") > -1) {ev.color= "#ff0000"; };
      return ev; },
      

      it will just negate the first applied effect from birthday and uses this effect instead on the named events.
      Can you help me out please?

      posted in Troubleshooting
      _
      _V_
    • RE: Cal EXT3 - Symbols and colors

      Sam, nevermind the problem; I found a sentence in a different question on git, in which it is mentioned shortly; also its kind of written in a config, believe it was the ext3 config.

      Still a bit annoying that you have to make an entry for the color and on another spot/file you have to set the custom event up.
      Thanks for your continuous help mate.

      posted in Troubleshooting
      _
      _V_
    • RE: Cal EXT3 - Symbols and colors

      Ok so I tried updating and “repairing” the module, turning the default cal class off but leads only to no icon shown.
      I actually dont care if its Iconify or FA, but neither of them work ffs

      posted in Troubleshooting
      _
      _V_
    • RE: Cal EXT3 - Symbols and colors

      Mornin Sam
      So I put it in the ext3 block but that didnt change anything.
      I set “useIconify: false” to check if the fontawesome would work, but nothing too.

      Also I wonder why I nowhere read about the ev.symbol error in any of the topics :/

      posted in Troubleshooting
      _
      _V_
    • RE: Cal EXT3 - Symbols and colors

      @sdetweil Tried, no change.

      Does it matter, where in the ext3 config it is placed, like at the end for example?

      posted in Troubleshooting
      _
      _V_
    • RE: Cal EXT3 - Symbols and colors

      @sdetweil OK no error, color is shown but no symbol.
      Did I miss some basic setting in the modules config?

      posted in Troubleshooting
      _
      _V_
    • RE: Cal EXT3 - Symbols and colors

      @sdetweil I finally understood what you meant by put in filter…^^

      So I set the additional {} and the cal stopped again, message saing:

      TypeError: event.symbol.join is not a function

      Does this give you any clue or do you need the additional “at …” lines too?

      posted in Troubleshooting
      _
      _V_
    • RE: Cal EXT3 - Symbols and colors

      @sdetweil Hey Sam
      As soon as I try to use symbol, the calender wont load up - I see the current month but thats about it.
      I tried different icon, I tried changing only symbol and I tried putting up a transform command for color and symbol seperately

      eventTransformer: (ev) => {
      if (ev.title.search("Geburtstag") > -1)
      ev.symbol= "mdi:birthday-cake-outline";
      ev.color= "ff00ff";
      return ev
       },
      

      I also tried your version with the additional {}, but no change either way
      I put this into the ext3 config file, using iconify icons

      posted in Troubleshooting
      _
      _V_
    • Cal EXT3 - Symbols and colors

      I apologize for a every repeating question, but I cant figure it out completely.

      So I want to change the color and/or the symbol, if the title has a specific text.
      The readme says:

      eventTransformer: (ev) => {
        if (ev.title.search("John") > -1) ev.color = "blue";
        return ev;
      };
      

      I also found, that I can be more detailed in styling, when I create a class for a event, like this:

      eventTransformer: (event) => {
      if (event.title.includes('Gus')) event.class = "gus"
      return event
      },
      
      /* custom.css */
      
      .CX3 .event.gus {
      background-color: var(--calendarColor);
      color: var(--oppositeColor);
      border-radius: 4px;
      }
      

      If I want to change the symbol too, Sam said, I can use the same command just with “symbol” instead of color, I guess this?

      eventTransformer: (ev) => {
        if (ev.title.search("John") > -1) ev.symbol= "WHAT TO PUT HERE";
        return ev;
      };
      

      Obviously I dont know how to put the symbol or the link to the symbol. I set “useIconify:true”, would this mean I can use ANY of the Iconify symbols by their name like “material-symbols:ar-on-you-outline-sharp”? Looks too easy to me, so I guess no.

      If someone has time to spare Id appreciate some help.

      posted in Troubleshooting
      _
      _V_
    • RE: Cal EXT3 - understanding transforming

      I get the idea but since Im quite new to this, I cant follow completely.
      Again the example

      eventTransformer: (ev) => {
        if (ev.title.search("John") > -1) ev.color = "blue";
        return ev;
      };
      

      Now you told me, “search” is a look up in form of “if contains” - this means if it contains the value, it will give out a value bigger than -1 and the effect will be set; other wise it will return -1 and the event stays unedited, correct?

      This would also mean, I have to set up every possible event title class inbefore.
      If I want to change/assign a specific symbol is a thing I dont understand.
      I use the Iconify function from the module - do I have to put in a link to the desired symbol now or what is it I have to enter?
      I could also imagine that I have to download the symbols and put in a directory to make the module be able to access them?

      Thanks a lot

      posted in Troubleshooting
      _
      _V_