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-Calendar always shows 23:59 if showEndTime: True

    Scheduled Pinned Locked Moved Bug Hunt
    51 Posts 4 Posters 19.0k Views 3 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.
    • S Do not disturb
      sdetweil @SwissChemist
      last edited by

      @SwissChemist like I said, bug in the repeating rule processor, RRULE. not our code.

      Remove the byday, or the second day

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        SwissChemist @sdetweil
        last edited by

        @sdetweil
        Sorry for asking:
        If I would import a calendar file from a text file, it would be easy to do the correction (change DTEND or remove BYDAY) in any text editor.
        But how to proceed if I directly import data from *.ics link? Is there any ‘hack’ I could apply?
        Thanks very much for your patience… All other data are really great now! And somehow I rely on a 3-weekly whole day, as we use to have 3-week iterations in our SCRUM process…

        S 1 Reply Last reply Reply Quote 0
        • S Do not disturb
          sdetweil @SwissChemist
          last edited by

          @SwissChemist you could create a batch script, run off cron, or started w pm2 (and use sleep to wait)

          curl to download the ics,
          sed to fix the file,
          and put it into the calendar module folder, and
          config mm to use it from there

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • S Offline
            SwissChemist
            last edited by

            @sdetweil
            Thanks very much for your help! I highly appreciate it!

            S 1 Reply Last reply Reply Quote 0
            • S Do not disturb
              sdetweil @SwissChemist
              last edited by

              @SwissChemist my pleasure… here is how I config MM to use your file
              (note my mm is on a different port)

              calendars: [
              	{
                          url: "http://localhost:8090/modules/default/calendar/school-timetable.ics"
                      }
              ]
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • S Offline
                SwissChemist
                last edited by

                @sdetweil
                Thanks for the example. Looks like a next project for me… :thumbs_up:

                S 1 Reply Last reply Reply Quote 0
                • S Do not disturb
                  sdetweil @SwissChemist
                  last edited by

                  @SwissChemist

                  could look something like this

                  #!/bin/bash
                  fn=somecal.ics
                  while true
                    do 
                        # get the file from server
                        curl -sL  url_of_remote_ics  >$fn
                        # remove the trailing byday=??(end of line), file inline, so changed
                        sed -i -e "s/;BYDAY=.*$//g" $fn
                       # copy the modified file to the calendar folder
                        cp $fn ~/MagicMirror/modules/default/calendar
                       # sleep til next cycle
                        sleep ??? (seconds til next curl)
                     done
                  

                  have to make this executable with chmod +x script_filename

                  then
                  pm2 start script_filename
                  pm2 save

                  if you use a json config file ui can give a pretty name of the script… see the installers/pm2_magicmirror.json
                  pm2 start jsonfile
                  pm2 save

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  S 1 Reply Last reply Reply Quote 0
                  • S Do not disturb
                    sdetweil @sdetweil
                    last edited by

                    @SwissChemist I submitted this issue to the RRULE repo
                    https://github.com/jakubroztocil/rrule/issues/426

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    S 2 Replies Last reply Reply Quote 0
                    • S Offline
                      SwissChemist @sdetweil
                      last edited by

                      @sdetweil
                      Wow, thank you so much for your great support!

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        SwissChemist @sdetweil
                        last edited by

                        @sdetweil This morning we switched from DST to STD time. No issue at all with the calendar, everything works fine!
                        Again, thanks very much for your support!

                        S 1 Reply Last reply Reply Quote 0
                        • S Do not disturb
                          sdetweil @SwissChemist
                          last edited by

                          @SwissChemist nice, thanks for the update

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

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

                            This post is deleted!
                            S 1 Reply Last reply Reply Quote 0
                            • ? Offline
                              A Former User
                              last edited by

                              @hango: yes that why i have planned to coding mine…

                              Calendar default module is really so bugy for me …
                              sample :

                              0|MagicMirror  | [2020-10-25 21:17:41.162] [LOG]    Use existing calendar fetcher for url: https://calendar.google.com/calendar/ical/XXXX.ics
                              0|MagicMirror  | [2020-10-25 21:17:41.164] [INFO]   Calendar-Fetcher: Broadcasting 5 events.
                              0|MagicMirror  | [2020-10-25 21:17:41.715] [INFO]   Calendar-Fetcher: Broadcasting 5 events.
                              

                              and some timethere is 3 broadcasts … result 2 or 3 updates on mirror

                              I don’t know really what they do with this modules… and I will NOT correct it !
                              In all case, it’s horrible

                              1 Reply Last reply Reply Quote 0
                              • S Do not disturb
                                sdetweil @Guest
                                last edited by

                                @hango have fun. there are 3 libraries below the mm code. all broken or in disagreement over the format of the date and time. and windows is a whole nother mess

                                why I work my a… off for you … I begin to wonder.

                                2.11 might work for you but it doesn’t for others. and I didn’t start the changes.

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                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
                                • 3 / 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