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

    Posts

    Recent Best Controversial
    • RE: MMM-CalendarWeek

      Hi,

      I’m trying to use this module as a monthly calendar also!
      (7 days per row, 31 days max).

      Would be great if you could add below options to the modules!!::

      • Module start date options :
        - Today
        - Monday of the current week (monday of this week)
        - Monday of the week that precedes the day week of the month (this is the one I’m really looking for)

      I will have a look on my side on parallel but I’m far from having the skills for now… Let’s see.

      Cherry on the cake, be able to move the starting date upon notifications (i.e : move to next month following a gesture that triggers notification)

      posted in Utilities
      B
      bolish
    • RE: Magic Mirror modul position

      You can adjust the full MM body border into the custom.css file.
      (/MagicMirror/css/custom.css)

      like that (play with the values until you’re happy) :

      body {
        margin: 20px; 
        height: calc(100% - 40px);
        width: calc(100% - 40px);
      }
      

      You should maybe also check the settings of your screen itself (depending if you have that issue outside MM or not).

      posted in Development
      B
      bolish
    • Getting Google Contacts birthdays into Calendar

      Hi,

      For those interested in below issue solving :

      • Google Contact birth calendar doesn’t offer .ics so it’s impossible to get it automatically into MM calendar

      • I’ve wrote a quick google script that you can use as below :

      1/ Create an empty personnal “birthday calendar” into Google Agenda (remind the ID of the calendar into calendar parameters for later)

      2/ Create a new google script which you can store into your Google drive

      3/ Paste below code into the script :

      function Sync_Birth_Cal() {
      
        // Calendars adress (ID)
        
        var calendarSource = CalendarApp.getCalendarById("THE ID OF YOUR CONTACT CALENDAR");
        var calendarDestination = CalendarApp.getCalendarById("THE ID OF THE CREATED CALENDAR");
        
        // Start and End Date definition
        
        var Today = new Date();
        var StartDeleteDate = new Date();
        var EndDeleteDate = new Date();
        var StartCopyDate = new Date();
        var EndCopyDate = new Date();
        
        StartDeleteDate.setDate(Today.getDate()-400); 
        EndDeleteDate.setDate(Today.getDate()+400);
        StartCopyDate.setDate(Today.getDate()-360);
        EndCopyDate.setDate(Today.getDate()+360);
       
        
        // first deletes all datas in calendar
        
        
        var eventToDelete = calendarDestination.getEvents(StartDeleteDate, EndDeleteDate);
        
         for (var i = 0; i < eventToDelete.length; i++) {  
          eventToDelete[i].deleteEvent();
          }  
      
      
        // then copy everything again
        
        var eventToCopy = calendarSource.getEvents(StartCopyDate, EndCopyDate);
      
        for (var t in eventToCopy){
          var newEvent = calendarDestination.createEvent(eventToCopy[t].getTitle(), eventToCopy[t].getStartTime(), eventToCopy[t].getEndTime());
        }
        
      }
      

      4/ Into Google script, Edit, Add trigger (choose the one you want, I personally choose to launch that one every 2 hours, but you can do whatever you want)

      5/ You can know use the .ics path of the newly created calendar into your MM calendar

      NOTE : it’s the first time I write that kind of stuff. It works for me until now, but there could be some bugs also. Let’s see.

      NOTE 2 : be careful… part of the script is deleting calendars events on purpose… So don’t mess up…If needed, back up before.

      Regards

      posted in Development
      B
      bolish
    • 1 / 1