MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. Coolie1101
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    Offline
    • Profile
    • Following 1
    • Followers 0
    • Topics 0
    • Posts 31
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Calendar events showing on wrong day.

      @sdetweil said in Calendar events showing on wrong day.:

      @coolie1101 you cant run with pm2 AND with npm start

      so, thats why I said

      pm2 stop all
      

      THEN (in the MagicMirror folder)

      npm start
      

      Got it, I edited the “calendarutils.js” file again and restarted, no error or calendar entries in log, but the display is the same.

      posted in Troubleshooting
      Coolie1101C
      Coolie1101
    • RE: Calendar events showing on wrong day.

      @sdetweil said in Calendar events showing on wrong day.:

      (I am central US time)

      Don’t sleep much :grinning_face:

      posted in Troubleshooting
      Coolie1101C
      Coolie1101
    • RE: Calendar events showing on wrong day.

      @sdetweil Maybe I’m executing it in the wrong order, do i need to “pm2 start mm” and then do “npm start >somefile.txt”? eitherway, there isn’t error log entries for calendar.

      0|mm  | [19.11.2021 08:55.52.292] [LOG]
      0|mm  | Create new calendarfetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 900000
      0|mm  | [19.11.2021 08:55.52.362] [LOG]
      0|mm  | Create new calendarfetcher for url: https://calendar.google.com/calendar/ical/p07n98go11onam************%40group.calendar.google.com/public/basic.ics - Interval: 900000
      0|mm  | [19.11.2021 08:55.52.434] [LOG]
      0|mm  | Create new calendarfetcher for url: https://calendar.google.com/calendar/ical/olrn3c2sf2k023************%40group.calendar.google.com/private-7d055c9f2a8b6bbfe674************/basic.ics - Interval: 900000
      0|mm  | [19.11.2021 08:55.52.448] [LOG]
      0|mm  | Create new calendarfetcher for url: https://calendar.google.com/calendar/ical/mvdgcjroualavv************%40group.calendar.google.com/public/basic.ics - Interval: 900000
      

      Calendar Display
      f7cd3c06-7999-4e0a-a697-53cdfe2a225a-image.png

      posted in Troubleshooting
      Coolie1101C
      Coolie1101
    • RE: Calendar events showing on wrong day.

      @sdetweil said in Calendar events showing on wrong day.:

      npm start >somefile.txt

      What is this suppose to do?, seems something is missing from the command.

      posted in Troubleshooting
      Coolie1101C
      Coolie1101
    • RE: Calendar events showing on wrong day.

      @sdetweil Yes, see below.

      BEGIN:VEVENT
      DTSTART;TZID=America/New_York:20210406T050000
      DTEND;TZID=America/New_York:20210406T100000
      RRULE:FREQ=WEEKLY;WKST=SU;UNTIL=20211230T045959Z;BYDAY=TU
      DTSTAMP:20211119T124216Z
      UID:0v89h5cit8nq6m************@google.com
      CREATED:20211026T075843Z
      DESCRIPTION:
      LAST-MODIFIED:20211026T080254Z
      LOCATION:
      SEQUENCE:1
      STATUS:CONFIRMED
      SUMMARY:YARD WASTE
      TRANSP:OPAQUE
      END:VEVENT
      

      I can share that calendar with you if it makes it easier for you to test.

      posted in Troubleshooting
      Coolie1101C
      Coolie1101
    • RE: Calendar events showing on wrong day.

      @sdetweil Yes, \modules\default\calendar\calendarutils.js

      I forgot to post the event in my previous post, see below.

      BEGIN:VEVENT
      DTSTART:20191113T100000Z
      DTEND:20191113T150000Z
      DTSTAMP:20211119T124216Z
      UID:6h0hrr7t2gr6qopi**********@google.com
      RECURRENCE-ID:20191112T100000Z
      CREATED:20211026T075843Z
      DESCRIPTION:
      LAST-MODIFIED:20211026T080254Z
      LOCATION:
      SEQUENCE:1
      STATUS:CONFIRMED
      SUMMARY:YARD WASTE
      TRANSP:OPAQUE
      END:VEVENT
      
      posted in Troubleshooting
      Coolie1101C
      Coolie1101
    • RE: Calendar events showing on wrong day.

      Hey @sdetweil, I am experiencing the same issue and made the changes as you motioned, but now I am getting an error for the calendar module, and the module is not loaded, if I revert the module loads and work as expected, any ideas?

      Config Change

      } else { 
      								// if the timezones are the same, correct date if needed
      //								if (event.start.tz === moment.tz.guess()) {
      									// if the date hour is less than the offset
      									if (24 - dh < Math.abs(dateoffset / 60)) {
      										// apply the correction to the date/time back to right day
      										date = new Date(date.getTime() + Math.abs(24 * 60) * 60000);
      										// the duration was calculated way back at the top before we could correct the start time..
      										// fix it for this event entry
      										//duration = 24 * 60 * 60 * 1000;
      										Log.debug("new recurring date2 is " + date);
      									}
      //								}
      							}
      						} else {
      							// not full day, but luxon can still screw up the date on the rule processing
      							// we need to correct the date to get back to the right event for
      							if (dateoffset < 0) {
      								// if the date hour is less than the offset
      								if (dh < Math.abs(dateoffset / 60)) {
      									// Reduce the time by the offset:
      									// Apply the correction to the date/time to get it UTC relative
      									date = new Date(date.getTime() - Math.abs(nowOffset) * 60000);
      									// the duration was calculated way back at the top before we could correct the start time..
      									// fix it for this event entry
      									//duration = 24 * 60 * 60 * 1000;
      									Log.debug("new recurring date1 is " + date);
      								}
      							} else {
      								// if the timezones are the same, correct date if needed
      //								if (event.start.tz === moment.tz.guess()) {
      									// if the date hour is less than the offset
      									if (24 - dh < Math.abs(dateoffset / 60)) {
      										// apply the correction to the date/time back to right day
      										date = new Date(date.getTime() + Math.abs(24 * 60) * 60000);
      										// the duration was calculated way back at the top before we could correct the start time..
      										// fix it for this event entry
      										//duration = 24 * 60 * 60 * 1000;
      										Log.debug("new recurring date2 is " + date);
      									}
      //								}
      							}
      						}
      						startDate = moment(date);
      
      posted in Troubleshooting
      Coolie1101C
      Coolie1101
    • RE: MMM-MyGarbage

      Is it possible to import my existing schedule from Google Calendar?

      Existing Calendar:

      a3f255b3-3383-4433-8937-7f9032cd29e2-image.png

      posted in Utilities
      Coolie1101C
      Coolie1101
    • RE: Which modules with Home Assistant currently work?

      @babene1 No, no errors, in HA.

      posted in General Discussion
      Coolie1101C
      Coolie1101
    • RE: Which modules with Home Assistant currently work?

      @babene1 yes

      posted in General Discussion
      Coolie1101C
      Coolie1101
    • 1
    • 2
    • 3
    • 4
    • 3 / 4