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.

    MMM-CalendarExt

    Scheduled Pinned Locked Moved Productivity
    198 Posts 45 Posters 232.9k Views 45 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.
    • ? Offline
      A Former User
      last edited by A Former User

      @Zooooooom @Vauxdvihl
      Here is some ‘next 28 days view’ sample.
      0_1508140047256_Magic_Mirror.jpg

      1. Open your css/custom.css and append these code;
      /* CSS adjusting for 28days view */
      
      /* hide unnecessary components */
      #CALEXT_daily .eventTime,
      #CALEXT_daily .eventLocation,
      #CALEXT_daily .symbol {
        display:none;
      }
      
      /* smaller size for events */
      #CALEXT_daily .eventContent {
        font-size:0.8em;
        font-weight:normal;
      }
      
      /* makes "slot" 1/7 of 100% */
      #CALEXT_daily .slot {
        max-width:13%;
        flex-basis:13%;
      }
      
      /* smaller size for events */
      #CALEXT_daily .slot .header {
        font-size:0.5em;
        border-radius:0;
        font-weight:normal;
      }
      
      /* add some style sample */
      #CALEXT_daily .style_custom2 {
        background-color:rgba(255, 127, 255, 1.0);
      }
      
      /* add some additional content sample */
      #CALEXT_daily .style_custom2 .eventContent::before{
        content: "[@]";
      }
      
      1. open your config.js, put these codes.
      {
            module: 'MMM-CalendarExt',
            position: "top_center", // ignore this.
            config: {
              system: {
                show: ['daily'],
                locale: 'en',
              },
              views: {
                daily: {
                  position:'bottom_bar',
                  counts:28,
                  //overflowRolling:1,
                  //overflowHeight:50,
                },
              },
              calendars :[
                {
                  name: "bundesliga",
                  styleName: "style_custom1",
                  oneLineEvent: 1,
                  url: "webcal://www.google.com/calendar/ical/en5624jps9pfbtgsd7op2him0k%40group.calendar.google.com/public/basic.ics",
                },
                {
                  name: "DFB POKAL",
                  styleName: "style_custom2",
                  //oneLineEvent: 1,
                  url: "webcal://www.google.com/calendar/ical/0efdnrqt4c9qruabf7u33742ps%40group.calendar.google.com/public/basic.ics",
                },
                {
                  name: "Theater GRIPS",
                  styleName: "style_custom3",
                  oneLineEvent: 1,
                  url: "http://ical.grips-theater.de/grips.ics",
                }
              ],
            }
          },
      
      1. You can refer also https://github.com/eouia/MMM-CalendarExt/wiki/Manipulation-of-looks

      2. Main trick is

      /* makes "slot" 1/7 of 100% */
      #CALEXT_daily .slot {
        max-width:13%;
        flex-basis:13%;
      }
      

      You might need to adjust the value 13% to your circumstances. Because of margin and padding, 14% might not work.

      1. You can also consider overflow and oneLineEvent and titleReplace for saving spaces.

      Anyway, under 700px width, this could not work. That is too narrow to display 7 slots.

      N 1 Reply Last reply Reply Quote 1
      • ? Offline
        A Former User @Vauxdvihl
        last edited by

        @Vauxdvihl said in MMM-CalendarExt:

        BEGIN:VEVENT
        DTSTART:20170201T080000Z
        DTEND:20170201T090000Z
        LOCATION;LANGUAGE=de:, 82343 POECKING
        TRANSP:OPAQUE
        SEQUENCE:0
        UID: 2171943
        DTSTAMP:20171014T081346Z
        DESCRIPTION;LANGUAGE=de:
        SUMMARY;LANGUAGE=de:Restmuelltonne
        PRIORITY:9
        CLASS:PUBLIC
        URL:
        STATUS:CONFIRMED
        END:VEVENT

        I found what’s wrong. you ical location format is slightly different with others.
        I’ve committed hotfix for that. git pull again and re-run your mirror.

        1 Reply Last reply Reply Quote 1
        • ? Offline
          A Former User
          last edited by A Former User

          @Zooooooom @Vauxdvihl

          And I also added weeks view for your exact wish. pull new source and see the wiki.

          So, you have two options.

          28days view
          vs
          4weeks view.

          both are slightly different. 28days always starts from today. 4weeks always starts from weekday(0) - Monday or Sunday - of this week.
          Use anything you want.

          Z 1 Reply Last reply Reply Quote 1
          • Z Offline
            Zooooooom @Guest
            last edited by

            @Sean Beautiful! Exactly what I wanted.

            1 Reply Last reply Reply Quote 0
            • V Offline
              Vauxdvihl
              last edited by

              Great Job
              Thanks a lot

              1 Reply Last reply Reply Quote 0
              • V Offline
                Vauxdvihl
                last edited by

                Hi Sean,
                i have a few more questions

                Please look to my attached screen:

                a.)
                Today is “not viewable” because it is “more or less” complete white
                Any Idea

                b.)
                Is there a chance to increase the size of the symbols (i mean the symbols in front of the date…like the football)

                c.)
                I was wondering that your dates a looking a little bit different
                In your dates you have the information about the timing and the location.
                I have put the same infos in my google calendar but they will not be shown

                Thats a lot

                0_1508478670223_2017-10-20-074338_1680x1050_scrot.png

                ? 2 Replies Last reply Reply Quote 0
                • ? Offline
                  A Former User @Vauxdvihl
                  last edited by A Former User

                  a.)
                  Today is “not viewable” because it is “more or less” complete white
                  Any Idea

                  That is my fault. After some CSS test, my experimental CSS was committed by accident, I thought.
                  I’ll fix it ASAP.(after answer of this)

                  b.)
                  Is there a chance to increase the size of the symbols (i mean the symbols in front of the date…like the football)

                  in your css/custom.css
                  you can put these;

                  div.CALEXT  .event .symbol {
                      order:1;
                      display:block;
                      flex-basis: 30px; // Modify this 
                      text-align:center;
                      min-width: 30px; // Modify this
                      font-size: 150%; // Add this
                  }
                  

                  c.)
                  I was wondering that your dates a looking a little bit different
                  In your dates you have the information about the timing and the location.
                  I have put the same infos in my google calendar but they will not be shown

                  Thats a lot

                  This is also same with answer of a). Sorry again.

                  1 Reply Last reply Reply Quote 0
                  • ? Offline
                    A Former User @Vauxdvihl
                    last edited by A Former User

                    @Vauxdvihl
                    I think I’ve fixed it. pull the source and try again.

                    1 Reply Last reply Reply Quote 0
                    • V Offline
                      Vauxdvihl
                      last edited by

                      Amazing
                      Thanks a lot

                      1 Reply Last reply Reply Quote 0
                      • V Offline
                        Vauxdvihl
                        last edited by

                        Hi Sean,

                        according to b.)
                        Sorry to asked again.
                        While playing a little bit with the config parameters, i can “only” adjust the size of the area within the symbol is located.
                        But it doesn’t change the size of the symbol itself
                        Thanks a lot

                        ? 1 Reply Last reply Reply Quote 0
                        • ? Offline
                          A Former User @Vauxdvihl
                          last edited by A Former User

                          @Vauxdvihl
                          Did you add this?

                           font-size: 150%; // Add this
                          

                          Give bigger value for that.(And you need to change value of *-width for adjusting)

                          1 Reply Last reply Reply Quote 0
                          • V Offline
                            Vauxdvihl
                            last edited by

                            @Sean
                            I am not a programmer :-)
                            I have played a little bit…also with big values, but the symbol size does not change.
                            Maybe i am doing something wrong?

                            /*****************************************************
                             * Magic Mirror                                      *
                             * Custom CSS                                        *
                             *                                                   *
                             * By Michael Teeuw http://michaelteeuw.nl           *
                             * MIT Licensed.                                     *
                             *                                                   *
                             * Add any custom CSS below.                         *
                             * Changes to this files will be ignored by GIT. *
                             *****************************************************/
                            
                            
                             
                             div.CALEXT  .event .symbol {
                                order:1;
                                display:block;
                                flex-basis: 40px; // Modify this 
                                text-align:center;
                                min-width: 50px; // Modify this
                                font-size: 800%; // Add this
                            }
                             	
                            
                            

                            0_1508489536934_2017-10-20-104019_1680x1050_scrot.png

                            ? 1 Reply Last reply Reply Quote 0
                            • ? Offline
                              A Former User @Vauxdvihl
                              last edited by A Former User

                              @Vauxdvihl
                              Ok. I know what’s the problem. I’ve forgotten emoji belongs different section.
                              put this in your css.

                              div.CALEXT .events .symbol.emoji {
                                  font-size: 100%; //Adjust this as your wish. you can use px or %
                              }
                              
                              1 Reply Last reply Reply Quote 0
                              • V Offline
                                Vauxdvihl
                                last edited by

                                @Sean
                                Perfect for some symbols
                                But the symbol “trash-o” will be not “re-sized”.
                                I have to look for a symbol in other sources == > “em”…and so on

                                ? 1 Reply Last reply Reply Quote 0
                                • ? Offline
                                  A Former User @Vauxdvihl
                                  last edited by

                                  @Vauxdvihl
                                  for emoji(@em) size, see my last answer.

                                  for FA and MD (default and @fa & @md) sizes are related to my previous answer.

                                  1 Reply Last reply Reply Quote 0
                                  • V Offline
                                    Vauxdvihl
                                    last edited by

                                    @Sean
                                    It works fine with adding this code to custom css :-)

                                    div.CALEXT .events .symbol.font-awesome {
                                        font-size: 250%; //Adjust this as your wish. you can use px or %
                                    
                                    ? 1 Reply Last reply Reply Quote 0
                                    • ? Offline
                                      A Former User @Vauxdvihl
                                      last edited by

                                      @Vauxdvihl Ye… Maybe that’s another solution. :)

                                      1 Reply Last reply Reply Quote 0
                                      • V Offline
                                        Vauxdvihl
                                        last edited by Vauxdvihl

                                        @Sean
                                        Sorry again but i have another question / problem
                                        You can see in my above standing screens that split view => current / upcoming does not work.
                                        But before doing the update it was working.

                                        Here is my config code

                                        		{
                                        				module: 'MMM-CalendarExt',
                                        				position: "lower_third", //anywhere. It is not related to real position of view
                                        				config: { // Read below
                                        				system: {
                                        				  show: ['current','upcoming','daily'],
                                        				  locale: 'de', //when omitted, default value would be your system default locale by moment.js
                                        				  showEmptyView: 0,
                                        				  fullDayEventLocalize: 1,
                                        				  redrawInterval: 30*60*1000, //minimum 60000
                                        				  useProfileConfig: 0,
                                        				  startProfile: ''
                                        				},
                                        				
                                        				 views: {
                                        						current: {
                                        						  position: "top_left",
                                        						  title: "Heute",
                                        						  limit: 3,
                                        						},
                                        						upcoming: {
                                        						  position: "top_left",
                                        						  title: "Demnächst",
                                        						  limit: 3,
                                        						},
                                        						daily: {
                                        						  position: "bottom_bar",
                                        						  title: "Überblick",
                                        						  counts: 7,
                                        						}
                                        					  },
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • V Offline
                                          Vauxdvihl
                                          last edited by Vauxdvihl

                                          @Sean
                                          Hi,
                                          it is me again.
                                          After having everything running, my wife wants to have the view “weekly” with 2 counts.
                                          Now i have the “problem”, that i search for the config parameter which allows also to see the timings in this view (like 08:00-10:00 …and so on)
                                          Is it possible in the “weekly” view?
                                          Thanks again for your support and help

                                          0_1508615903383_Test.png

                                          ? 2 Replies Last reply Reply Quote 0
                                          • ? Offline
                                            A Former User @Vauxdvihl
                                            last edited by A Former User

                                            @Vauxdvihl
                                            Yes possible.

                                            Put this code in your css.

                                            div.CALEXT .tableStyle .eventTime {
                                                display:block;
                                            }
                                            

                                            I’m not on the console on weekends, so i didnt test it, but i think it will work.

                                            Ps. that view is not ‘weekly’. It is ‘weeks’

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 9
                                            • 10
                                            • 1 / 10
                                            • 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