MagicMirror² v2.13.0 is available! For more information about this release, check out this topic.

MMM-CalendarExtPlan


  • Module Developer

    MMM-CalendarExtPlan

    Plugin module for MMM-CalendarExt and MMM-CalendarExt2, to display schedule plan

    Screenshot

    Link

    Requested feature from forum members (Sorry, I cannot remember who he is…).



  • @Sean
    Hello Sean,
    as always, you were able to meet my expectations.
    Could you please tell us how to enter “dateFormat” days of the week (Mo/Tue/Wed…)?
    Thank you in advance.

    Hallo Sean,
    wie immer, hast Du meine Erwartung erfüllen können.
    Kannst Du bitte verraten, wie man “dateFormat” Wochentage (Mo/Die/Mit…)einträgt?
    Vielen Dank dafür im Voraus.


  • Module Developer

    @Lordy
    d, do, dd, ddd, dddd could be used for weekday order or name.
    I think ddd would be fit for your purpose. It will show Mon, Tue or equivalent text by locale.
    https://momentjs.com/docs/#/displaying/format/



  • @Sean
    Thank you, that’s exactly the impetus that I needed.



  • @Sean
    Thanks for this module.
    Unfortunately i am not able to bring this module to work

    In CalExt2 i have (among other calendars) these ones here:

    {
    					name: "Benjamin",
    					url: "https://calendar.google.com/calendarxxxxxxxxxxxxxxxxxxxx0/basic.ics",
    					className: "Benjamin",
    					icon: "ps-bike",
    				  },
    

    Running the module i get the following error

    [2020-10-11 21:40:58.074] [ERROR]  WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: /home/pi/MagicMirror/config/config.js:327
    			criteria: [
    			^^^^^^^^
    
    SyntaxError: Unexpected identifier
        at wrapSafe (internal/modules/cjs/loader.js:1051:16)
        at Module._compile (internal/modules/cjs/loader.js:1101:27)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:1166:10)
        at Module.load (internal/modules/cjs/loader.js:981:32)
        at Module._load (internal/modules/cjs/loader.js:881:14)
        at Function.Module._load (electron/js2c/asar.js:769:28)
        at Module.require (internal/modules/cjs/loader.js:1023:19)
        at require (internal/modules/cjs/helpers.js:77:18)
        at loadConfig (/home/pi/MagicMirror/js/app.js:67:12)
        at App.start (/home/pi/MagicMirror/js/app.js:202:3)
    
    

    At line 327 the “criteria” start from this module

    {//MMM-CalendarExtPlan
    		  module: "MMM-CalendarExtPlan",
    		  position: "bottom_bar",
    		  config: {
    			maxItems: 100,
    			refreshInterval: 60*60*1000, // millisec.
    			dateFormat: "MMM D.",
    			eventTimeFormat: "HH:mm",
    			dayCount: 5,
    			fromNow: 0,
    			source: "CALEXT2"
    			criteria: [
    						{
    							title: "Benjamin",
    							calendars: ["Benjamin"],
    						  }
    						  /*{
    							title: "Müllabfuhr",
    							calendars: ["Müllabfuhr"],
    						  },
    						  {
    							title: "Elyas",
    							calendars: ["Elyas"],
    						  }*/
    						
    			],
    		  }
    		},
    

    I would be glad if you could help me
    Thanks a lot
    Regards



  • @Vauxdvihl you are missing a comma on the SOURCE line.



  • @Alvinger
    Thanks a lot…newbie mistake



  • This post is deleted!


  • Can please somebody help me
    How can i increase the size of the icons?
    Thanks a lot


Log in to reply