• 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
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Calendar Color

Scheduled Pinned Locked Moved Solved Troubleshooting
27 Posts 12 Posters 16.1k Views 13 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    billp100
    last edited by Feb 2, 2017, 6:32 PM

    I am trying to add multiple calendars in one module and have them each have a different color, here is what I have so far, the maximumNumberOfDays is working, but the calendar is still showing up in the default color.

    module: 'calendar',
    header: 'family',
    position: 'top_left',
    config: {
                  colored: true,
                  calendars: [
                                     {
                                            symbol: 'male',
                                            url: 'xxxxxxx',
                                     },
                                     ],
                  color: '#f70000',
                  maximumNumberOfDays: '14',
                         }
    },
    
    
    
    
    
    S 1 Reply Last reply Feb 2, 2017, 9:15 PM Reply Quote 0
    • S Offline
      strawberry 3.141 Project Sponsor Module Developer @billp100
      last edited by Feb 2, 2017, 9:15 PM

      @billp100 based on the documentation it should look somehow like this

      {
        module: 'calendar',
        header: 'family',
        position: 'top_left',
        config: {
          colored: true,
          calendars: [
            {
              symbol: 'male',
              url: 'xxxxxxx',
              color: '#f70000'
            }
          ],
          maximumNumberOfDays: 14
        }
      },
      

      Please create a github issue if you need help, so I can keep track

      B 1 Reply Last reply Feb 3, 2017, 1:23 PM Reply Quote 0
      • B Offline
        billp100 @strawberry 3.141
        last edited by Feb 3, 2017, 1:23 PM

        @strawberry-3.141 I’ve tried it that way too with no luck.

        S 1 Reply Last reply Feb 3, 2017, 1:30 PM Reply Quote 0
        • S Offline
          strawberry 3.141 Project Sponsor Module Developer @billp100
          last edited by Feb 3, 2017, 1:30 PM

          @billp100 are you using the develop branch? this feature is currently not merged in the master branch

          Please create a github issue if you need help, so I can keep track

          B 1 Reply Last reply Feb 3, 2017, 1:42 PM Reply Quote 0
          • B Offline
            billp100 @strawberry 3.141
            last edited by Feb 3, 2017, 1:42 PM

            @strawberry-3.141 That’s it then. I didn’t realize that. Is there away for me to get that feature without having to start over?

            S 1 Reply Last reply Feb 3, 2017, 1:48 PM Reply Quote 0
            • S Offline
              strawberry 3.141 Project Sponsor Module Developer @billp100
              last edited by Feb 3, 2017, 1:48 PM

              @billp100 to use the develop branch you just have to do the following

              cd ~/MagicMirror
              git fetch
              git checkout develop
              git pull
              npm install
              

              Please create a github issue if you need help, so I can keep track

              B 1 Reply Last reply Feb 3, 2017, 1:55 PM Reply Quote 1
              • B Offline
                billp100 @strawberry 3.141
                last edited by Feb 3, 2017, 1:55 PM

                @strawberry-3.141 I just did those steps and got an npm WARN grunt-yamllint@0.2.0 requires a peer of grunt@~0.4.0 but none was installed message

                1 Reply Last reply Reply Quote 0
                • B Offline
                  billp100
                  last edited by Feb 3, 2017, 3:45 PM

                  Got it! thank you for your help

                  1 Reply Last reply Reply Quote 0
                  • M Offline
                    Mitch1138
                    last edited by yawns Mar 19, 2017, 2:56 PM Mar 19, 2017, 1:06 PM

                    Great discussion. I have also added the options to add color the my two calendars, without success. Does anyone know if color is active in the current code? Here is my config setup:

                    {
                        module: 'calendar',
                        header: 'My Calendar',
                        position: 'top_left',
                        config: {
                        	colored:  true,
                    	calendars: [
                    		{
                    		symbol: 'calendar ',
                    		url: 'https://calendar.google.com/calendar/ical/.../basic.ics',
                    		color: '#f70000'
                    		},
                                   	 {
                    		symbol: 'calendar-o ',
                    		url: 'https://calendar.google.com/calendar/ical/.../basic.ics'
                    		color: '#04f448'
                                 		},
                                        ]
                                }
                    },
                    

                    Many thanks

                    S 1 Reply Last reply Mar 19, 2017, 1:07 PM Reply Quote 0
                    • S Offline
                      strawberry 3.141 Project Sponsor Module Developer @Mitch1138
                      last edited by Mar 19, 2017, 1:07 PM

                      @Mitch1138 its still in the develop branch only

                      Please create a github issue if you need help, so I can keep track

                      R 1 Reply Last reply Feb 28, 2020, 3:24 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 1 / 3
                      • First post
                        Last post
                      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