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

Scheduled Pinned Locked Moved Productivity
198 Posts 45 Posters 178.9k Views 45 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.
  • ? Offline
    A Former User @mmmmh
    last edited by May 22, 2019, 12:20 PM

    @mmmmh did you set a position of view? your error says there might be an issue. I’m on a business trip now so i cannot check at this moment. later i’ll look inside.

    M 1 Reply Last reply May 22, 2019, 12:38 PM Reply Quote 0
    • M Offline
      mmmmh Project Sponsor @Guest
      last edited by May 22, 2019, 12:38 PM

      @Sean yes, I set it to top_left:

      {
                  module: 'MMM-CalendarExt',
                  position: "top_left", //anywhere. It is not related to real position of view
                  classes: "default standard everyone",
                  config: { // Read below
                      system: {
                          show: ['current', 'upcoming'],
                          locale: 'de',
                          showEmptyView: 0,
                          fullDayEventLocalize: 1,
                          redrawInterval: 300000, 
                      },
                      defaultView: {
                          position: 'calendar',
                          positionOrder: -1,
                          overflowRolling: 0,
                          overflowHeight: 0,
                          overflowDuration: 2,
                          timeFormat: 'H:mm',
                          dateFormat: "ddd, D. MMM",
                          fullDayEventDateFormat: "ddd, D. MMM",
                          ellipsis: 0,
                          limit: 20,
                          oneLineEvent: 1,
                      },
                      views: {
                          current: {
                              title: "Now...",
                              direction: "column",
                              showEmptyView: 0,
                              useRelative: 0,
                          },
                          upcoming: {
                              title: "Was steht an...",
                              direction: "column",
                              useRelative: 0,
                              overflowHeight: 0,
                              overflowRolling: 0,
                          },
                      },
                      calendars: [
                          {
                              name: "XXXX",
                              symbol: "male",
                              styleName: "style24",
                              url: "redacted",
      
                              auth: {
                                  user: 'redacted',
                                  pass: 'redacted',
                                  method: 'basic'
                              }
                          },
                          
                      ],
      
                  },
              },
      

      Don’t worry, it’s not urgent.

      ? 1 Reply Last reply May 22, 2019, 3:48 PM Reply Quote 0
      • ? Offline
        A Former User @mmmmh
        last edited by May 22, 2019, 3:48 PM

        @mmmmh
        0_1558539944498_calext.png
        Well, I tried with yours and it works.
        But two things you probably have wrong.

        • url: "redacted", is it right? it will make parsing error and it could be reason of your front error message.
        • showEmptyView:1 will affect on only system level, not view level. You’ve set showEmptyView:0 in system, so empty view will not appear.
        M 1 Reply Last reply May 23, 2019, 7:29 AM Reply Quote 0
        • M Offline
          mmmmh Project Sponsor @Guest
          last edited by May 23, 2019, 7:29 AM

          @Sean thanks for making the effort to test it. I went the same way now. I removed everything and picked a public trash collection calendar (nice idea of yours) - still the same error. (I also commented out the showEmptyView options.)

          The error appears locally (RPI3+) as well as in web browsers of all flavors.

          Here’s the full config file:

          var config = {
              address: "",
              port: 8080,
              ipWhitelist:
                  [],
              language: "de",
              timeFormat: 24,
              units: "metric",
              modules: [
                  {
                      module: 'MMM-CalendarExt',
                      position: "top_left", //anywhere. It is not related to real position of view
                      classes: "default standard everyone",
                      config: { // Read below
                          system: {
                              show: ['current', 'upcoming'],
                              locale: 'de',
                              // showEmptyView: 0,
                              fullDayEventLocalize: 1,
                              redrawInterval: 300000, 
          
                          },
                          defaultView: {
                              position: 'calendar',
                              positionOrder: -1,
                              overflowRolling: 0,
                              overflowHeight: 0,
                              overflowDuration: 2,
                              timeFormat: 'H:mm',
                              dateFormat: "ddd, D. MMM",
                              fullDayEventDateFormat: "ddd, D. MMM",
                              ellipsis: 0,
                              limit: 20,
                              oneLineEvent: 1,
                          },
                          views: {
                              current: {
                                  title: "Now...",
                                  direction: "column",
                                  // showEmptyView: 0,
                                  useRelative: 0,
                              },
                              upcoming: {
                                  title: "Upcoming...",
                                  direction: "column",
                                  useRelative: 0,
                                  overflowHeight: 0,
                                  overflowRolling: 0,
                              },
                          },
                          calendars: [
          
                              {
                                  name: "Trash",
                                  symbol: "male",
                                  styleName: "style24",
                                  url: "https://www.ekm-mittelsachsen.de/de/service-dienstleistungen/entsorgungstermine-abfallkalender/abfallkalender/ical/stadt/4870/year/2019/",
                              },
                          ],
                      },
                  },
              ]
          
          };
          
          /*************** DO NOT EDIT THE LINE BELOW ***************/
          if (typeof module !== "undefined") { module.exports = config; }
          
          ? 1 Reply Last reply May 23, 2019, 7:51 AM Reply Quote 0
          • ? Offline
            A Former User @mmmmh
            last edited by May 23, 2019, 7:51 AM

            @mmmmh i’m on business trip now, after back home, i’ll try your new config.

            1 Reply Last reply Reply Quote 0
            • I Offline
              isaac2004
              last edited by May 23, 2019, 3:59 PM

              Is there a way to repaint the calendar module? I am working on hiding/showing the module with voice control, and for the life of me, I can’t get the UI to repaint after hiding. module.show() is not available in the module so it is not as simple as that

              ? 1 Reply Last reply May 23, 2019, 4:13 PM Reply Quote 0
              • ? Offline
                A Former User @isaac2004
                last edited by May 23, 2019, 4:13 PM

                @isaac2004
                Sorry, I cannot catch your point. MMM-CalendarExt can be hidden and revealed by .show() and .hide(). “module.show() is not available in the module” what this means?

                1 Reply Last reply Reply Quote 0
                • ? Offline
                  A Former User
                  last edited by A Former User May 23, 2019, 4:23 PM May 23, 2019, 4:22 PM

                  @Sean said in MMM-CalendarExt:

                  did you set a position of view? your error says there might be an issue.

                  @mmmmh I don’t know why I missed it. As I’ve said, you have a wrong on position.

                  defaultView: {
                                      position: 'calendar',
                  

                  position should be region name like top_left, bottom_bar, … Modify it.
                  0_1558628516009_ce.png
                  (I’m in London now, so the time of events in screenshot will not match with the German time)

                  1 Reply Last reply Reply Quote 0
                  • M Offline
                    mmmmh Project Sponsor
                    last edited by May 23, 2019, 4:24 PM

                    Dang! Thanks. On my other screen I have that region and I didn’t replace it at all places! I owe you one.

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      djtale
                      last edited by May 29, 2019, 8:16 AM

                      Hello,

                      I have downloaded that Docker image to make some tests on MagicMirror :
                      https://hub.docker.com/r/bastilimbach/docker-magicmirror/

                      I don’t know why the MMM-CalendarExt is not displayed. I have tested multiple settings, even the simpliest provided in the doc page but still nothing appears.

                      When I use the Browser debugger, I see a size of 0x0 for the div.container

                      The calendar urls are working fine with the default calendar module.

                      Is there something missing on the Docker Image ? I doubt because I have same issue with the module on my RaspberryPi MagicMirror

                      Would someone accept to test my config module on his MagicMirror ?

                      If anyone has some ideas, thanks.

                      ? 1 Reply Last reply May 29, 2019, 8:30 AM Reply Quote 0
                      • 1
                      • 2
                      • 15
                      • 16
                      • 17
                      • 18
                      • 19
                      • 20
                      • 17 / 20
                      17 / 20
                      • First post
                        167/198
                        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