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.

    MM 2.31.0 Calendar update problems: Only udating when one of the browsers are refreshed (F5)

    Scheduled Pinned Locked Moved Solved Troubleshooting
    5 Posts 2 Posters 276 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.
    • Q Offline
      qharley
      last edited by sdetweil

      Hi Magic Mirror people,
      I am a new user and I am trying to set up a family calendar kiosk using MM, and so far it is working great. I have the layout tweaked, and it is displaying all the most important information. Time, Weather, and appointments.

      I have deployed it server only on a proxmox hypervisor, and set it up so that it can be visible from any browser in the home. Very handy.

      The only problem I have is that even with the fetch interval set, the calender only gets updated on all the devices, if I refresh (F5) any one of them. It does not automatically fetch the new and/or updated calendar items.

      Everything else works perfectly. The weather is updated correctly, and the MMM_Calendar_ext3 plugin works as expected.

      Here is my config.js (redacted of course)

      let config = {
          address: "0.0.0.0",
          port: 8080,
          basePath: "/",
          ipWhitelist: [],
          useHttps: false,
          httpsPrivateKey: "",
          httpsCertificate: "",
          language: "en",
          locale: "en-DE",
          logLevel: ["INFO", "LOG", "WARN", "ERROR"],
          timeFormat: 24,
          units: "metric",
          serverOnly: true,
          modules: [
                      {
                              module: "clock",
                              position: "top_left",
                              config: {
                                      timeFormat: 24, // or "12" for AM/PM
                                      displaySeconds: true,
                                      showDate: false,
                                      dateFormat: "dddd, MMMM Do"
                              }
                      },
                      {
                              module: "weather",
                              header: "Erlangen, DE  ",
                              position: "top_right",
                              config: {
                                      weatherProvider: "openweathermap",
                                      type: "current",
                                      apiKey: "",
                                      lat: "49.5906368",
                                      lon: "10.9682838" //49.5906368,10.9682838
                              }
                      },
                      {
                              module: "weather",
                              header: "Erlangen, DE  ",
                              position: "top_left",
                              config: {
                                      weatherProvider: "openweathermap",
                                      type: "forecast",
                                      apiKey: "",
                                      lat: "49.5906368",
                                      lon: "10.9682838", //49.5906368,10.9682838
                                      showPrecipitationAmount: true,
                                      colored: "true"
                              }
                      },
                      {
                              module: "calendar",
                              header: "Upcoming",
                              position: "top_center",
                              config: {
                                      fetchInterval: 30000, // interval 30s for testing 
                                      refreshInterval: 30000,
                                      coloredText: false,
                                      coloredBorder: false,
                                      coloredSymbol: true,
                                      coloredBackground: false,
                                      calendars: [
                                              {
                                                      name: "Public Hollidays",
                                                      symbol: "calendar-check",
                                                      color: "orange",
                                                      url: "https://calendar.google.com/calendar/ical/xxxx%40import.calendar.google.com/public/basic.ics"
                                              },
                                              {
                                                      name: "Family",
                                                      symbol: "calendar-check",
                                                      color: "violet",
                                                      url: ""
                                              },
                                              {
                                                      name: "Q",
                                                      symbol: "calendar-check",
                                                      color: "cyan",
                                                      url: ""
                                              },
                                              {
                                                      name: "J",
                                                      symbol: "calendar-check",
                                                      color: "red",
                                                      url: ""
                                              },
                                              {
                                                      name: "I",
                                                      symbol: "calendar-check",
                                                      color: "green",
                                                      url: ""
                                              }
                                      ]
                              }
                      },
                      {
                              module: "MMM-CalendarExt3",
                              position: "bottom_bar",
                              title: "",
                              config: {
                                      mode: "week",
                                      useMarquee: true,
                                      skipPassedEventToday: true,
                                      weekIndex: 0,
                                      weeksInView: 3,
                                      instanceId: "basicCalendar",
                                      locale: 'en-DE',
                                      maxEventLines: 4,
                                      firstDayOfWeek: 1,
                                      refreshInterval: 30000,
                                      calendarSet: ['Public Hollidays', 'Q', 'J', 'I', 'Family'],
                              }
      
                      },
              ]
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== "undefined") { module.exports = config; }
      
      
      S 1 Reply Last reply Reply Quote 0
      • Q Offline
        qharley @sdetweil
        last edited by

        @sdetweil Thanks for the info.

        I have no idea why this worked, but after clearing the journals, the thing started working as expected. I changed the fetch frequency back to once every 10 minutes, and it seems happy for now.

        Will do some more testing and will let you know

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

          @qharley can you show the output of npm start

          if using pm2 then

          pm2 logs --lines=150

          warning the full calendar url will be in the logs, please edit out
          before posting

          no manual page refresh please

          you might want to clear the logs and restart

          pm2 flush
          pm2 restart MagicMirror

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          S Q 2 Replies Last reply Reply Quote 0
          • S Offline
            sdetweil @sdetweil
            last edited by sdetweil

            @qharley also, if you allow the default calendar to display, does it update? i see position is top center.

            every 30 seconds is pretty rough, and the provider might reject that

            Sam

            How to add modules

            learning how to use browser developers window for css changes

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

              @qharley

              because its in a proxmox container you will probable have to kill the
              npm run server
              task and start it manually

              the scripted lxc container does not set any saving of stdout or stderr

              you will have to install sudo and add that user to the sudoers file to be able to do sudo kill

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • Q Offline
                qharley @sdetweil
                last edited by

                @sdetweil Thanks for the info.

                I have no idea why this worked, but after clearing the journals, the thing started working as expected. I changed the fetch frequency back to once every 10 minutes, and it seems happy for now.

                Will do some more testing and will let you know

                1 Reply Last reply Reply Quote 0
                • S sdetweil has marked this topic as solved on
                • 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