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.

    Use local ICS file instead

    Scheduled Pinned Locked Moved Solved Troubleshooting
    15 Posts 4 Posters 3.3k Views 4 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.
    • plainbrokeP Offline
      plainbroke
      last edited by

      Re: Default Calendar
      How would I go about using a local ICS file for example birthdays and holidays since I can get ICS files downloaded and would only need to move to the correct folder. Just a thought to take out all the middle men and lighten the load on my wireless internet connection…

      Slow learner. But trying anyways.

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

        @sdetweil
        I finally have calendar working again. Had to completely replace my config.js with the sample one. Then rebuild it. I could get everyone of my calendars to work in the stripped down config.js so I just removed my calendars settings from my original config.js then copied and pasted the working calendar settings from the stripped down one saved and rebooted calendars work fine now. NOW on to the MMM-CalendarExt3 not picking up from the default calendar for some reason… Thats a problem for another day…

        Slow learner. But trying anyways.

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

          @plainbroke put the ics file anywhere in MagicMirror or further down

          http:// starts at the MagicMirror folder

          course you can use a symbolic link to store it somewhere else, and make it appear in the mm folder tree

          see the ln command

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          plainbrokeP 1 Reply Last reply Reply Quote 0
          • plainbrokeP Offline
            plainbroke @sdetweil
            last edited by

            @sdetweil

            Okay,
            I have saved my ics in the MagicMirror folder and trying to use this
            url: “http://MagicMirror/Birthdays.ics”,
            I still get nothing. This is kinda important with the size of my family I would forget Birthdays constantly. Probably even my own.
            What am I doing wrong or do I need to reload the default calendar into
            cd /MagicMirror/modules/ default. I tried going to google calendars and managing my account turned 2 step off and then back on and redid all the steps for gmail and then went in and got the new calendar links with no changes to calendar showing up. Pulling my hair out on this one. Been at it a couple days now. It is probably so simple I cant see the forest for all the trees type thing…

            Slow learner. But trying anyways.

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

              @plainbroke http://localhost:8080/Birthdays.ics

              or whatever your mm port number is

              localhost means ONLY apps on the same machine can access,

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              plainbrokeP 1 Reply Last reply Reply Quote 0
              • plainbrokeP Offline
                plainbroke @sdetweil
                last edited by

                @sdetweil
                Ok, I have the Birthdays.ics in my MagicMirror directory.
                and this is what is in my config.js and I am getting a message
                Error in calendar module: check error logs for more details.
                Not sure where to go from here.

                {
                        module: "calendar",
                        position: "middle_center",
                        header: "Burdick Home",
                        config: {
                                fade: false,
                                maximumEntries: 11,
                                timeFormat: "absolute",
                                urgency: 3,
                                getRelative: 24,
                                broadcastPastEvents: true, // <= IMPORTANT to see past events
                                calendars: [
                                {
                                        url: "http://localhost:8181/Birthdays.ics",
                                        name: "birthdays", // <= RECOMMENDED to assign name
                                        color: "#1B489C", // <= RECOMMENDED to assign color
                                        symbol: "birthday-cake"
                                },
                                {
                                        url: "http://localhost:8181/MyHolidays.ics",
                                        name: "us_holiday", // <= RECOMMENDED to assign name
                                        color: "#2AC404", // <= RECOMMENDED to assign color
                                        symbol: "icons"
                },
                                            ]
                                }
                },
                

                Slow learner. But trying anyways.

                karsten13K 1 Reply Last reply Reply Quote 0
                • plainbrokeP Offline
                  plainbroke
                  last edited by

                  Maybe my pm2 error log will help.
                  looks like I am missing a file but can not figure out how to install it or what to install.

                  /home/pi/.pm2/logs/omx-stream1-error.log last 15 lines:
                  0|omx_stre | dbus[632]: Unable to set up transient service directory: XDG_RUNTIME_DIR "/run/user/1000" not available: No such file or directory
                  0|omx_stre | /usr/bin/omxplayer: line 67: 85464 Killed                  LD_LIBRARY_PATH="$OMXPLAYER_LIBS${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" $OMXPLAYER_BIN "$@"
                  0|omx_stre | dbus[626]: Unable to set up transient service directory: XDG_RUNTIME_DIR "/run/user/1000" not available: No such file or directory
                  0|omx_stre | dbus[629]: Unable to set up transient service directory: XDG_RUNTIME_DIR "/run/user/1000" not available: No such file or directory
                  0|omx_stre | dbus[627]: Unable to set up transient service directory: XDG_RUNTIME_DIR "/run/user/1000" not available: No such file or directory
                  0|omx_stre | dbus[83012]: arguments to dbus_message_new_method_call() were incorrect, assertion "destination == NULL || _dbus_check_is_valid_bus_name (destination)" failed in file ../../../dbus/dbus-message.c line 1364.
                  0|omx_stre | This is normally a bug in some application using the D-Bus library.
                  0|omx_stre |
                  0|omx_stre |   D-Bus not built with -rdynamic so unable to print a backtrace
                  0|omx_stre | /usr/bin/omxplayer: line 67: 83012 Aborted                 (core dumped) LD_LIBRARY_PATH="$OMXPLAYER_LIBS${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" $OMXPLAYER_BIN "$@"
                  0|omx_stre | dbus[626]: Unable to set up transient service directory: XDG_RUNTIME_DIR "/run/user/1000" not available: No such file or directory
                  0|omx_stre | dbus[624]: Unable to set up transient service directory: XDG_RUNTIME_DIR "/run/user/1000" not available: No such file or directory
                  
                  /home/pi/.pm2/logs/MagicMirror-error.log last 15 lines:
                  1|mm       | MESA-LOADER: failed to retrieve device information
                  1|mm       | MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/aarch64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
                  1|mm       | failed to load driver: kms_swrast
                  1|mm       | MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/aarch64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
                  1|mm       | failed to load swrast driver
                  1|mm       | [2651:0709/163251.289963:ERROR:broker_posix.cc(40)] Recvmsg error: Connection reset by peer (104)
                  1|mm       | /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
                  1|mm       | MESA-LOADER: failed to retrieve device information
                  1|mm       | MESA-LOADER: failed to retrieve device information
                  1|mm       | MESA-LOADER: failed to retrieve device information
                  1|mm       | MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/aarch64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
                  1|mm       | failed to load driver: kms_swrast
                  1|mm       | MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/aarch64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
                  1|mm       | failed to load swrast driver
                  1|mm       | [2838:0709/163305.686316:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
                  
                  

                  Slow learner. But trying anyways.

                  1 Reply Last reply Reply Quote 0
                  • karsten13K Offline
                    karsten13 @plainbroke
                    last edited by

                    @plainbroke

                    This will not work: "http://localhost:8181/Birthdays.ics"

                    You can try to move the local ics file into the config directory and then use "webcal://localhost:8181/config/Birthdays.ics" as url.

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

                      @karsten13 webcal is just replaced with http
                      line 99 of calendar.js
                      the root of the web server is ~/MagicMirror

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      plainbrokeP 1 Reply Last reply Reply Quote 0
                      • plainbrokeP Offline
                        plainbroke @sdetweil
                        last edited by

                        @sdetweil
                        I finally have calendar working again. Had to completely replace my config.js with the sample one. Then rebuild it. I could get everyone of my calendars to work in the stripped down config.js so I just removed my calendars settings from my original config.js then copied and pasted the working calendar settings from the stripped down one saved and rebooted calendars work fine now. NOW on to the MMM-CalendarExt3 not picking up from the default calendar for some reason… Thats a problem for another day…

                        Slow learner. But trying anyways.

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

                          @plainbroke weird. I wonder what the config js problem wskdontgerebis a setting to cause broadcastEvents, which Ext3 depends on

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          plainbrokeP 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 Sam, technical setup by Karsten.
                          This forum is using NodeBB as its core | Contributors
                          Contact | Privacy Policy