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.

    Default calendar

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    10 Posts 2 Posters 2.0k 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.
    • S Offline
      sdetweil @aquaman
      last edited by sdetweil

      @aquaman after debugging, the problem is the file created by fb2ics has linux line ends (\n), but the code is looking for windows line ends (\r\n)

      once I edited and saved with windows line ends it works

      you could use unix2dos on it to convert the line ends

      I have opened an issue and submitted a pull request to the ical parser github project for this
      https://github.com/peterbraden/ical.js/issues/105

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • A Offline
        aquaman
        last edited by

        Ahh.
        Thank you!
        I have tried unix2dos with newline option, but no luck yet. Seems that there are no changes in the file after running the command. Propably need some more help from google ;-)
        But thank you for your help so far :-)

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

          @aquaman you shouldn’t need to specify any options…

          just

          unix2dos filename 
          

          it will convert in place

          or -ascii convert only line breaks (default)

          unix2dos -ascii filename
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • A Offline
            aquaman
            last edited by aquaman

            Yes…
            Done that…
            Filesize is exactly same, however file date/time has been changed…

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

              @aquaman worked for me in both directions, no parm specified…

              odroid@odroid:~/MagicMirror/modules/default/calendar$ unix2dos birthdays.ics
              unix2dos: converting file birthdays.ics to DOS format...
              

              and

              odroid@odroid:~/MagicMirror/modules/default/calendar$ dos2unix birthdays.ics
              dos2unix: converting file birthdays.ics to Unix format...
              

              i then used Notepad++ to search for \r\n (windows) or \n (unix) linebreaks
              found as expected

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • A Offline
                aquaman
                last edited by

                Hmm… Starting to get embarrased ;-)

                Can i provide you a ip an password on pm to log on?

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

                  @aquaman sure, come over to discord chat, i am sam #5710, if can’t do discord, then email … same userid as here but on gmail

                  yeh, or direct chat here… sorry, missed that

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  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