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.

    Builtin calendar module: dateformat, timeformat

    Scheduled Pinned Locked Moved Solved Troubleshooting
    3 Posts 2 Posters 314 Views 2 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.
    • D Offline
      DomRep
      last edited by

      Hey folks,

      I’m on the last mile setting up my MM as smart display for the kitchen. May layout is almost finished, but I have a minor configuration problem with the calendar:

      In the config-excerpt below there are 3 CalDAV-Calendars (URL truncated for privacy) that are working and displayed correctly.

      configuration options are identical to the sample config, except symbol and color and of course the URL.

      But when I tried to change the format for the SECOND calendar, nothing changes.

      What I wanted:
      The second calendar should show absolute dates (Mo. 01.01.) and start and end time in 24h format.

      What I get:
      Entries are displayed with relative dates (tomorrow at) and only start times in 24h-Format, just like the other two calendars where I kept the default format.

      I’ve tried to follow the documentation and I’m a little bit disappointed that I didn’t even manage to produce an error, but that MM just ignores my effort ;)

      Do you know where I took the wrong turn?

      Thanx, Markus

      config: {
                                      maximumEntries: "20",
                                      coloredSymbol: "true",
                                      calendars: [
                                              {
                                                      fetchInterval: 7 * 24 * 60 * 60 * 1000,
                                                      symbol: "calendar",
                                                      color: "#0000ff",
                                                      url: "https://posteo.de/calendars/ics/6yjd...>
                                              },
                                              {
                                                      fetchInterval: 7 * 24 * 60 * 60 * 1000,
                                                      dateFormat: "ddd HH:mm",
                                                      timeFormat: "absolute", 
                                                      showEnd: true,
                                                      symbol: "calendar",
                                                      color: "#ff0000",
                                                      url: "https://posteo.de/calendars/ics/muj1cn...>
                                              },
                                              { 
                                                      fetchInterval: 7 * 24 * 60 * 60 * 1000,
                                                      symbol: "calendar",
                                                      color: "#ffff00",
                                                      url: "https://posteo.de/calendars/ics/6cehmh4...>
                                              }
      
      
      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @DomRep
        last edited by sdetweil

        @DomRep unfortunately the dateFormat/timeFormat/showEnd options apply to ALL calendars, so they would have to be above the calendars:[] list

        in the doc,

        • the first section of parameters are for ALL calendars…

        • the second section is for individual calendars…

        you can create another module: calendar for that one in the same position
        but the entries will not be merged with the others.

        I would suggest opening an issue on the github repo asking for an enhancement here.
        and post your config… (as u have here)

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          DomRep @sdetweil
          last edited by

          @sdetweil said in Builtin calendar module: dateformat, timeformat:

          @DomRep unfortunately the dateFormat/timeFormat/showEnd options apply to ALL calendars, so they would have to be above the calendars:[] list

          in the doc,

          • the first section of parameters are for ALL calendars…

          • the second section is for individual calendars…

          So there’s my misunderstanding: It’s a global setting :)

          Actually, having to set these config values for all calendars alike is fine for me…

          I just started to test the effect for “calendar two” because I wanted to compare the effect against the others two.

          In my original post I emphasized this (the SECOND calendar) just to make following my pursuit easier for forum readers.

          Thank you @sdetweil for the clarification :)

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • 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