• 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
  1. Home
  2. shall_
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
S
Offline
  • Profile
  • Following 0
  • Followers 0
  • Topics 1
  • Posts 12
  • Groups 0

shall_

@shall_

1
Reputation
2
Profile views
12
Posts
0
Followers
0
Following
Joined Jan 4, 2023, 2:54 AM
Last Online May 18, 2024, 7:42 PM
Age 31
Location England

shall_ Unfollow Follow

Best posts made by shall_

  • RE: PIR and config.js

    @N6NG I have just spent the evening getting my MM working with this module. What do you want this module to do? turn the screen off 20 seconds after motion is detected?

    I am using the latest version of Desbian so i had to used the default xrandr command. but I seem to have got it working fine. I was also having issues with GPIO pin 2 so I changed it to pin 22.

    If it helps, I can share my config file for this module.

    posted in Utilities
    S
    shall_
    Jan 16, 2023, 12:22 AM

Latest posts made by shall_

  • RE: MMM-CalendarExt3 BST Timezone issue

    I have managed to fix my issue, it seems the event transformer I was using (to colour mt events) may have been contradicting the fix.

    I removed the following from my event transformer which fixed the issue!

      e.startDate = new Date(e.start?.date || e.start?.dateTime).valueOf()
      e.endDate = new Date(e.end?.date || e.end?.dateTime).valueOf()
    
    posted in Troubleshooting
    S
    shall_
    May 18, 2024, 7:40 PM
  • RE: MMM-CalendarExt3 BST Timezone issue

    @MMRIZE i am using the MMM-GoogleCalendar module

    posted in Troubleshooting
    S
    shall_
    Apr 12, 2024, 9:58 PM
  • RE: MMM-CalendarExt3 BST Timezone issue

    @MMRIZE Apologies for the delayed reply, i have been busy and then couldn’t log in to the forum.

    I have tried updating, installing, and reinstalling. then adding the code into my config file but i still can’t get it to correct. I think i put the code in correctly but i have attached that so you can check. my config file isn’t throwing up any errors?

    how do i check what version of CX3 i am running? i did delete the whole folder and redo the git pull/install so i should have whatever is on github?

    {
    			module: "MMM-CalendarExt3",
    			position: "bottom_bar",
    			title: "",
    			config: {
    			mode: "week", //week or month view
    			weeksInView: 5,
    			weekIndex: 0, //-1 start last week, 0 this week, 1 next week.
    			instanceId: "basicCalendar",
    			locale: 'en-GB',
    			maxEventLines: 4,
    			firstDayOfWeek: 1,
    			useWeather: true,
    			weatherLocationName: 'xxxx',
    			
    
    			eventPayload: (payload) => {
    				for (let ev of payload) {
    				  if (ev.fullDayEvent) {
    					let gap = +ev.endDate - +ev.startDate
    					if (gap % (1000 * 60 * 60 * 24) === 0) {
    					  ev.startDate = new Date(+ev.startDate).setHours(0, 0, 0, 0)
    					  ev.endDate = new Date(+ev.startDate + gap).setMilliseconds(-1)
    					}
    				  }
    				}
    				return payload
    			  },
    
    			eventTransformer: (e) => {
      e.startDate = new Date(e.start?.date || e.start?.dateTime).valueOf()
      e.endDate = new Date(e.end?.date || e.end?.dateTime).valueOf()
      e.title = e.summary
      e.fullDayEvent = (e.start?.date) ? true : false
      //return e
    
    	if (e.title.search('Lates') > -1) e.color = 'mediumvioletred'
    	if (e.title.search('Earlies') > -1) e.color = 'yellow'
    	if (e.title.search('12 hours') > -1) e.color = 'blue'
    	if (e.title.search('12 Hours') > -1) e.color = 'blue'
    	if (e.title.search('12 hrs') > -1) e.color = 'blue'
    	if (e.title.search('Vacation') > -1) e.color = 'blue'
    	if (e.title.search('vacation') > -1) e.color = 'blue'
    	if (e.title.search('Shutdown') > -1) e.color = 'goldenrod'
    	if (e.title.search('My weekend') > -1) e.color = 'deepskyblue'
    
    	
    	
      return e
    	 
    
    
    }
    
    }
    		},
    
    posted in Troubleshooting
    S
    shall_
    Apr 11, 2024, 1:33 AM
  • RE: MMM-CalendarExt3 BST Timezone issue

    @MMRIZE i have emailed it over

    posted in Troubleshooting
    S
    shall_
    Apr 5, 2024, 9:01 PM
  • RE: MMM-CalendarExt3 BST Timezone issue

    @MMRIZE Thanks for your reply.
    The timed calendar events with a start/finish time show the correct time with no issue.

    The issue solely lies with all-day and multi-day events.
    All of these events during DST showed correctly, as soon as the timezone changed to BST. They now all rollover into the following day, so my 5 day events are now 6 days, 2 days are now 3, single days 2.

    posted in Troubleshooting
    S
    shall_
    Apr 5, 2024, 7:50 PM
  • RE: MMM-CalendarExt3 BST Timezone issue

    @sdetweil

    I will have to pick this up again tomorrow. i will run the debug when i get home from work.
    is there anything I am looking for in particular?

    posted in Troubleshooting
    S
    shall_
    Apr 3, 2024, 11:19 PM
  • RE: MMM-CalendarExt3 BST Timezone issue

    @sdetweil this is another entry added this week with the issue.

    BEGIN:VEVENT
    DTSTART;VALUE=DATE:20240402
    DTEND;VALUE=DATE:20240403
    DTSTAMP:20240403T224236Z
    UID:70rjap1gXXXXX6oo68db56o@google.com
    CREATED:20240402T105500Z
    LAST-MODIFIED:20240402T105500Z
    SEQUENCE:0
    STATUS:CONFIRMED
    SUMMARY:12 hours 
    TRANSP:OPAQUE
    END:VEVENT
    
    
    posted in Troubleshooting
    S
    shall_
    Apr 3, 2024, 11:02 PM
  • RE: MMM-CalendarExt3 BST Timezone issue

    @sdetweil yes i copied each url straight from my config file.
    I tried opening them in the browser, it downloaded as described but is still an empty file.

    I found a work around by just downloading the ics right from google calendar, this is an example of one of the events. with the timezone tied in.

    RPi timezone is set to GMT +1 Europe/London (BST)

    BEGIN:VCALENDAR
    PRODID:-//Google Inc//Google Calendar 70.9054//EN
    VERSION:2.0
    CALSCALE:GREGORIAN
    METHOD:PUBLISH
    X-WR-CALNAME:Work
    X-WR-TIMEZONE:Europe/London
    BEGIN:VEVENT
    DTSTART;VALUE=DATE:20170626
    DTEND;VALUE=DATE:20170701
    RRULE:FREQ=WEEKLY;WKST=MO;UNTIL=20190331T235959Z;INTERVAL=2;BYDAY=MO
    DTSTAMP:20240403T224236Z
    UID:15dcXXXXXXujb@google.com
    CREATED:20171216T163405Z
    LAST-MODIFIED:20190330T214112Z
    SEQUENCE:0
    STATUS:CONFIRMED
    SUMMARY:Earlies
    TRANSP:TRANSPARENT
    END:VEVENT
    
    
    posted in Troubleshooting
    S
    shall_
    Apr 3, 2024, 10:46 PM
  • RE: MMM-CalendarExt3 BST Timezone issue

    @sdetweil
    Ok that makes sense. I have found the generated ics file, however it has a 0 file size and when I open it with text editor it is just an empty file. The file type is listed as “Outlook.File.ics.15”

    I am using google calendar urls, not sure if that makes any difference? i have tried 3 different urls that I use with the module.

    posted in Troubleshooting
    S
    shall_
    Apr 3, 2024, 10:23 PM
  • RE: MMM-CalendarExt3 BST Timezone issue

    @sdetweil said in MMM-CalendarExt3 BST Timezone issue:

    curl -sL calendar_url >xxx.ics

    Thanks for the reply. I am having trouble getting the ics file.
    i have ran the command in the terminal, all it does is return to the empty command line. is this supposed to open something?

    @sdetweil said in MMM-CalendarExt3 BST Timezone issue:

    then efit xxx.ics (its just text)

    I am not sure what you mean by this? Apologies i am still fairly green on this side of things.

    posted in Troubleshooting
    S
    shall_
    Apr 3, 2024, 9:45 PM
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