MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    absolute date in calendar module

    Troubleshooting
    9
    19
    9914
    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.
    • Q
      qqqqqqqq last edited by qqqqqqqq

      I want the calendar to display the exact day of the event(birthdays), instead of saying “in 3 days” or “The day after tomorrow” since it takes up too much of space.
      I tried changing it in the main config file & the calendar.js file (both), but no change is reflected.

      strawberry 3.141 P 2 Replies Last reply Reply Quote 0
      • strawberry 3.141
        strawberry 3.141 Project Sponsor Module Developer @qqqqqqqq last edited by

        @qqqqqqqq can you post your config?

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

        1 Reply Last reply Reply Quote 0
        • Q
          qqqqqqqq last edited by

          Here is my main config file

          {
          			module: 'calendar',
          			header: 'Your Calendar',
          			position: 'top_left',
          			config: {
          				timeformat: 'absolute',
          				calendars: [
          					{
          						symbol: 'calendar-check-o ',
          						url: 'webcal://calendar.google.com/calendar/ical/....ics'
          					},
          					{
          						symbol: 'calendar-check-o ',
          						url: 'webcal://calendar.google.com/calendar/ical/....ics'
          					},
          					{
          						symbol: 'facebook-official ',
          						url: 'webcal://localhost:8080/modules/Cals/FbBirthday.ics'
          
          					},
          					{
          						symbol: 'calendar ',
          						url: 'webcal://calendar.google.com/c.....ics'
          					}
          				]
          			}
          		},
          		{
          			module: 'compliments',
          
          1 Reply Last reply Reply Quote 0
          • broberg
            broberg Project Sponsor last edited by

            You should also set urgency to 0

            1 Reply Last reply Reply Quote 1
            • yawns
              yawns Moderator last edited by

              Please try to write timeFormat instead of timeformat, this is case sensitive 🙂
              Also try to play around with urgency

              https://github.com/MichMich/MagicMirror/tree/master/modules/default/calendar

              1 Reply Last reply Reply Quote 1
              • Q
                qqqqqqqq last edited by

                Okay, made both the changes, fixed the case in “timeFormat” and added

                urgency: '0',
                

                right next to the timeFormat tag.

                But, now the events appear like this

                event 1 The day after tomorrow
                event 2 Feb 19th
                event 3 Feb 21st

                Still need to fix event 1

                1 Reply Last reply Reply Quote 0
                • yawns
                  yawns Moderator last edited by

                  Please replace '0' with 0

                  Numbers should not be written with quotation marks

                  1 Reply Last reply Reply Quote 0
                  • Q
                    qqqqqqqq last edited by

                    Nope, still the same.

                    Btw, i should let you know that I am start the MagicMirror by using the command

                    npm start
                    

                    Should I be using some other method to start it? Do I need to clear cache or something like that? 🙁

                    yawns 1 Reply Last reply Reply Quote 0
                    • yawns
                      yawns Moderator @qqqqqqqq last edited by

                      @qqqqqqqq
                      Starting your mirror for testing purpose is just fine.

                      Please try this:

                      ...
                      	config: {
                      		timeFormat: 'absolute',
                      		urgency: 0,
                      		getRelative: 0,
                      		calendars: [
                      ...
                      
                      1 Reply Last reply Reply Quote 0
                      • Q
                        qqqqqqqq last edited by qqqqqqqq

                        I’ve updated the values in both, the main config file & the calendar.js (in the modules folder) but it’s still the same.

                        Here is the image. http://pasteboard.co/z6KcmVgLB.jpg

                        strawberry 3.141 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy