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

Hobbit

@Hobbit

0
Reputation
1
Profile views
4
Posts
0
Followers
0
Following
Joined Mar 23, 2024, 2:55 PM
Last Online Oct 6, 2024, 6:23 PM
Location TX

Hobbit Unfollow Follow

Latest posts made by Hobbit

  • RE: MMM-CalendarExt3 Search description of event to trigger event color change.

    @MMRIZE I’m using CX3A, just the agenda part, I’ve got calendar displayed with only the events as dots. The script you send worked. I just removed the changing of the title,

    eventTransformer: (ev) => {
    			console.log(ev)
    			if (ev.description && ev.description.search('HL') > -1) {
    				ev.color = 'green'
    				}
    			return ev
    

    This is what I was looking for. I did not know how to do whatever you did using console.log and the if{ e.description && …}. I’ll do some reading to try and understand that function. I appreciate it.

    For everyone else reading this in the future:
    I’m using the default calendar module to handle symbols for events in a category. example: band practice. I’m then using the Ext3 agenda function to list out by day. But then by adding the above function I’m only changing the color of the icon not the text of the event. This gives a subtle color scheme to the agenda calendar. This allows me to create events in my google calendar and display colors to represent different family members based on terms in the description and the symbols to represent category. This way I don’t need different calendars for separate people, I can manage all simply by putting their name or keyword in the description. This may not be the best way but this is the path I took to achieve it.

    posted in Troubleshooting
    H
    Hobbit
    Mar 24, 2024, 8:35 PM
  • RE: MMM-CalendarExt3 Search description of event to trigger event color change.

    @MMRIZE Very possible. Thanks again for your time. If I use the normal .title everything works, but I switch to .description and nothing shows up at all in the calendar.

    miniMonthWeekdayOptions:{ weekday: 'short' },
        eventTransformer: (ev) => {
      if (ev.description.search('HL') > -1) ev.color = 'green'
      return ev
    }
    
    posted in Troubleshooting
    H
    Hobbit
    Mar 24, 2024, 3:57 AM
  • RE: MMM-CalendarExt3 Search description of event to trigger event color change.

    @MMRIZE OK. Yes, that is what I thought. I replaced the .title to .description. When I did that, all events disappeared.

    posted in Troubleshooting
    H
    Hobbit
    Mar 23, 2024, 6:43 PM
  • MMM-CalendarExt3 Search description of event to trigger event color change.

    Hello all,
    I know I’m simply not understanding the correct string to cause a search of the event to return my changes. I’m using the Transformation function on the documentation of Ext3. My goal is for the description of the event to be searched so that I can change the color of the event (sorta). So far this only changes the icon color next to the event, which is all I want to do. I see from other post, that to change the font color, that is a css issue to change. Not interested in that, a simple icon color change is enough.

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

    Using the title is no issue, I just don’t understand what string to use to search the description. This is all new to me, but I’m starting to understand the logic of many functions. Any direction or links to what I need to read to understand would be helpful.

    posted in Troubleshooting
    H
    Hobbit
    Mar 23, 2024, 3:08 PM
Enjoying MagicMirror? Please consider a donation!
MagicMirror created by Michael Teeuw.
Forum managed by Sam, technical setup by Karsten.
This forum is using NodeBB as its core | Contributors
Contact | Privacy Policy