• 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.

MMM-CalendarExt3

Scheduled Pinned Locked Moved Utilities
654 Posts 77 Posters 1.8m Views 81 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 @KD
    last edited by sdetweil Sep 10, 2022, 7:13 PM Sep 10, 2022, 7:12 PM

    @KD ok, this looks like the bug I introduced in 2.20. fixed in 2.21, October 1

    broadcastPastEvents loads up the past events then the new, and the bug cuts off after the 1st maximumEntries

    so u have to increase maximum entries

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    K 1 Reply Last reply Sep 10, 2022, 7:16 PM Reply Quote 0
    • K Offline
      KD @sdetweil
      last edited by Sep 10, 2022, 7:16 PM

      @sdetweil Thanks Sam - do you mean “maxEventLines”?
      Screenshot 2022-09-10 193724.png

      If yes I have set them up to 10 now and still nothing

        module: "MMM-CalendarExt3",
        position: "bottom_center",
        config: {
          mode: "month",
          instanceId: "basicCalendar",
          locale: 'en-UK',
      	fontSize: '25px',
      	refreshInterval: 10000,
          maxEventLines: 10,
          firstDayOfWeek: 1,
          calendarSet: ["KD", "Tini"],
      		}
      	},
      
      S 1 Reply Last reply Sep 10, 2022, 7:19 PM Reply Quote 0
      • S Offline
        sdetweil @KD
        last edited by Sep 10, 2022, 7:19 PM

        @KD no in the base calendar module. default
        maximumEntries defaults to 10,
        that is where you have broadcastPastEvents:true

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        K 1 Reply Last reply Sep 11, 2022, 9:16 AM Reply Quote 0
        • K Offline
          KD @sdetweil
          last edited by Sep 11, 2022, 9:16 AM

          @sdetweil Thank you Sam, i tried that and still nothing…

          Here is my config now:

          {
            module: "MMM-CalendarExt3",
            position: "bottom_center",
            config: {
              mode: "month",
              instanceId: "basicCalendar",
              locale: 'en-UK',
          	fontSize: '25px',
          	refreshInterval: 10000,
              maxEventLines: 10,
              firstDayOfWeek: 1,
              calendarSet: ["KD", "Tini"],
          		}
          	},
          	{
            module: "calendar",
            config: {
              broadcastPastEvents: true, 
              maximumEntries: 100,
              calendars: [
          	{
          			name: "KD",
          			className: "KD",
          			url: "https://calendar.google.com/calendar/ical/basic.ics",
          			color: "green"
          		},
          		{
          			name: "Tini",
          			className: "tini",
          			url: "https://calendar.google.com/calendar/ical/basic.ics",
          			color: "pink"
          		},
          	]
          	}
                },
          
          S 1 Reply Last reply Sep 11, 2022, 11:58 AM Reply Quote 0
          • S Offline
            sdetweil @KD
            last edited by Sep 11, 2022, 11:58 AM

            @KD for the short term add

            position: “top_left”,

            to the calendar module location

            let’s make sure it is working

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            K 1 Reply Last reply Sep 11, 2022, 12:54 PM Reply Quote 0
            • K Offline
              KD @sdetweil
              last edited by Sep 11, 2022, 12:54 PM

              @sdetweil Thanks Sam - I now get Loading… than “error in the calendar module check log for more details” and finally no upcoming events… not sure how I have broken it as it was working yesterday… i also tried to replace the default calendar with

              git checkout modules/default/calendar/calendar.js
              

              As per one of your other posts in the forum but got "updated 0 (zero) paths from the index…

              S 1 Reply Last reply Sep 11, 2022, 12:58 PM Reply Quote 0
              • S Offline
                sdetweil @KD
                last edited by sdetweil Sep 11, 2022, 12:59 PM Sep 11, 2022, 12:58 PM

                @KD u have to be I the MagicMirror folder for the git checkout to work

                you should not have changed that file anyhow

                all config is done thru config.js

                can u show the output where u start mm?

                either npm start
                or if you use pm2, then

                pm2 logs --lines=50

                calendarext3, gets it’s info from the default calendar. so if it has problems, then u get nothing

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                K 1 Reply Last reply Sep 11, 2022, 1:01 PM Reply Quote 0
                • K Offline
                  KD @sdetweil
                  last edited by Sep 11, 2022, 1:01 PM

                  @sdetweil here is an output from “npm start”

                  kd@raspberrypi:~/MagicMirror $ npm start
                  
                  > magicmirror@2.20.0 start
                  > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
                  
                  [11.09.2022 14:00.12.728] [LOG]   Starting MagicMirror: v2.20.0
                  [11.09.2022 14:00.12.736] [LOG]   Loading config ...
                  [11.09.2022 14:00.12.743] [LOG]   Loading module helpers ...
                  [11.09.2022 14:00.12.745] [LOG]   No helper found for module: clock.
                  [11.09.2022 14:00.12.747] [LOG]   No helper found for module: MMM-CalendarExt3.
                  [11.09.2022 14:00.13.011] [LOG]   Initializing new module helper ...
                  [11.09.2022 14:00.13.012] [LOG]   Module helper loaded: calendar
                  [11.09.2022 14:00.13.013] [LOG]   No helper found for module: weather.
                  [11.09.2022 14:00.13.554] [LOG]   Initializing new module helper ...
                  [11.09.2022 14:00.13.556] [LOG]   Module helper loaded: MMM-BackgroundSlideshow
                  [11.09.2022 14:00.13.558] [LOG]   All module helpers loaded.
                  [11.09.2022 14:00.13.725] [LOG]   Starting server on port 8080 ... 
                  [11.09.2022 14:00.13.745] [LOG]   Server started ...
                  [11.09.2022 14:00.13.747] [LOG]   Connecting socket for: calendar
                  [11.09.2022 14:00.13.748] [LOG]   Starting node helper for: calendar
                  [11.09.2022 14:00.13.749] [LOG]   Connecting socket for: MMM-BackgroundSlideshow
                  [11.09.2022 14:00.13.750] [LOG]   Sockets connected & modules started ...
                  [11.09.2022 14:00.14.038] [ERROR] Whoops! There was an uncaught exception...
                  [11.09.2022 14:00.14.046] [ERROR] Error: listen EADDRINUSE: address already in use 127.0.0.1:8080
                      at Server.setupListenHandle [as _listen2] (node:net:1372:16)
                      at listenInCluster (node:net:1420:12)
                      at GetAddrInfoReqWrap.doListen [as callback] (node:net:1559:7)
                      at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:73:8) {
                    code: 'EADDRINUSE',
                    errno: -98,
                    syscall: 'listen',
                    address: '127.0.0.1',
                    port: 8080
                  }
                  [11.09.2022 14:00.14.048] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                  [11.09.2022 14:00.14.052] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                  [11.09.2022 14:00.14.099] [LOG]   Launching application.
                  MESA-LOADER: failed to retrieve device information
                  MESA-LOADER: failed to retrieve device information
                  MESA-LOADER: failed to retrieve device information
                  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/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri)
                  failed to load driver: kms_swrast
                  MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri)
                  failed to load swrast driver
                  [11.09.2022 14:00.17.129] [LOG]   Shutting down server...
                  [11.09.2022 14:00.17.136] [LOG]   Stopping module helper: calendar
                  [11.09.2022 14:00.17.137] [LOG]   Stopping module helper: MMM-BackgroundSlideshow
                  kd@raspberrypi:~/MagicMirror $ 
                  
                  
                  
                  S 1 Reply Last reply Sep 11, 2022, 1:02 PM Reply Quote 0
                  • S Offline
                    sdetweil @KD
                    last edited by Sep 11, 2022, 1:02 PM

                    @KD yep, two copies running

                    pm2 stop all
                    then u can do npm start

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    K 1 Reply Last reply Sep 11, 2022, 1:08 PM Reply Quote 0
                    • K Offline
                      KD @sdetweil
                      last edited by KD Sep 11, 2022, 1:34 PM Sep 11, 2022, 1:08 PM

                      @sdetweil Apologies yes i had a PM2 job in the background…

                      Here is the fresh output:

                      kd@raspberrypi:~/MagicMirror $ npm start
                      
                      > magicmirror@2.20.0 start
                      > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
                      
                      [11.09.2022 14:07.14.079] [LOG]   Starting MagicMirror: v2.20.0
                      [11.09.2022 14:07.14.088] [LOG]   Loading config ...
                      [11.09.2022 14:07.14.094] [LOG]   Loading module helpers ...
                      [11.09.2022 14:07.14.097] [LOG]   No helper found for module: clock.
                      [11.09.2022 14:07.14.099] [LOG]   No helper found for module: MMM-CalendarExt3.
                      [11.09.2022 14:07.14.368] [LOG]   Initializing new module helper ...
                      [11.09.2022 14:07.14.370] [LOG]   Module helper loaded: calendar
                      [11.09.2022 14:07.14.371] [LOG]   No helper found for module: weather.
                      [11.09.2022 14:07.14.976] [LOG]   Initializing new module helper ...
                      [11.09.2022 14:07.14.978] [LOG]   Module helper loaded: MMM-BackgroundSlideshow
                      [11.09.2022 14:07.14.979] [LOG]   All module helpers loaded.
                      [11.09.2022 14:07.15.149] [LOG]   Starting server on port 8080 ... 
                      [11.09.2022 14:07.15.168] [LOG]   Server started ...
                      [11.09.2022 14:07.15.170] [LOG]   Connecting socket for: calendar
                      [11.09.2022 14:07.15.172] [LOG]   Starting node helper for: calendar
                      [11.09.2022 14:07.15.173] [LOG]   Connecting socket for: MMM-BackgroundSlideshow
                      [11.09.2022 14:07.15.174] [LOG]   Sockets connected & modules started ...
                      [11.09.2022 14:07.15.516] [LOG]   Launching application.
                      MESA-LOADER: failed to retrieve device information
                      MESA-LOADER: failed to retrieve device information
                      MESA-LOADER: failed to retrieve device information
                      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/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri)
                      failed to load driver: kms_swrast
                      MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri)
                      failed to load swrast driver
                      [11.09.2022 14:07.19.711] [LOG]   Create new calendarfetcher for url: https://calendar.google.com/calendar/ - Interval: 300000
                      [11.09.2022 14:07.19.985] [INFO]  BACKGROUNDSLIDESHOW: Reading directory "modules/MMM-BackgroundSlideshow/exampleImages/" for images.
                      [11.09.2022 14:07.20.006] [INFO]  BACKGROUNDSLIDESHOW: 171 files found
                      [11.09.2022 14:07.20.057] [INFO]  BACKGROUNDSLIDESHOW_NEXT_IMAGE
                      [11.09.2022 14:07.20.058] [INFO]  BACKGROUNDSLIDESHOW: reading path "modules/MMM-BackgroundSlideshow/exampleImages//DSC_0038.JPG"
                      [11.09.2022 14:07.20.493] [INFO]  Calendar-Fetcher: Broadcasting 0 events.
                      [11.09.2022 14:07.29.492] [LOG]   Shutting down server...
                      [11.09.2022 14:07.29.493] [LOG]   Stopping module helper: calendar
                      [11.09.2022 14:07.29.494] [LOG]   Stopping module helper: MMM-BackgroundSlideshow
                      kd@raspberrypi:~/MagicMirror $ 
                      
                      S 1 Reply Last reply Sep 11, 2022, 1:17 PM Reply Quote 0
                      • 1
                      • 2
                      • 10
                      • 11
                      • 12
                      • 13
                      • 14
                      • 65
                      • 66
                      • 12 / 66
                      12 / 66
                      • First post
                        112/654
                        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