• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 1.7k 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.
  • A Offline
    aquaman
    last edited by Oct 10, 2019, 7:36 AM

    Hi,

    I have used fb2cal (https://github.com/mobeigi/fb2cal) to create a local ics (facebook birthdays) for my default calendar module. But my calendar wont show this at all. I have managed to show other ics files from local destination, so that part works. My fb2cal ics is successful imported into google calendar, so I guess the ICS is more or less OK. The ICS file is temporary uploaded to http://elitek.no/elicraft/birthdays.ics (no sensitive information, just a lot of birthdays for those who are interrested to congratulate any of them ;-) )
    I am running MM v2.9.0…

    S 1 Reply Last reply Oct 10, 2019, 11:12 AM Reply Quote 0
    • S Offline
      sdetweil @aquaman
      last edited by Oct 10, 2019, 11:12 AM

      @aquaman the calendar data looks fine…

      where on your local system did you place that file? it MUST be under the modules/default/calendar folder

      also, open the developers window, ctrl-shift-i, select the tab labeled ‘console’ and scroll up to see if there are any errors reported, usually red text

      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 Oct 10, 2019, 11:30 AM

        Thank you for your reply.
        I have the ICS file under /MagicMirror/modules. I have also downloaded another ics-file named basic.ics (from google calendar) in same folder. basic.ics works just fine, but birthdays.ics is not. I have now also tried both files in /default/calendar with same result (basic.ics works, birthdays.ics not…)
        I cannot find any reported errors i developers window (console) about calendar at all…

        S 1 Reply Last reply Oct 10, 2019, 12:15 PM Reply Quote 0
        • S Offline
          sdetweil @aquaman
          last edited by sdetweil Oct 10, 2019, 7:08 PM Oct 10, 2019, 12:15 PM

          @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 Oct 10, 2019, 6:42 PM

            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 Oct 10, 2019, 6:57 PM Reply Quote 0
            • S Offline
              sdetweil @aquaman
              last edited by sdetweil Oct 10, 2019, 6:59 PM Oct 10, 2019, 6:57 PM

              @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 Oct 10, 2019, 7:26 PM Oct 10, 2019, 7:21 PM

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

                S 1 Reply Last reply Oct 10, 2019, 7:30 PM Reply Quote 0
                • S Offline
                  sdetweil @aquaman
                  last edited by sdetweil Oct 10, 2019, 7:31 PM Oct 10, 2019, 7:30 PM

                  @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 Oct 10, 2019, 8:05 PM

                    Hmm… Starting to get embarrased ;-)

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

                    S 1 Reply Last reply Oct 10, 2019, 8:06 PM Reply Quote 0
                    • S Offline
                      sdetweil @aquaman
                      last edited by sdetweil Oct 10, 2019, 8:09 PM Oct 10, 2019, 8:06 PM

                      @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
                      1 / 1
                      • First post
                        2/10
                        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