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

Problem with MMM-CalendarEXT



  • hi,

    i tried the last one on the config-site by my screen stay black…

    anny ideas ?

    {
    //disabled:true,
    module: ‘MMM-CalendarExt’,
    position: “bottom_center”,
    config: {
    system: {
    show: [“daily”, “upcoming”],
    locale: ‘en’,
    redrawInterval:60000,
    },
    views: {
    daily: {
    position:‘bottom_bar’,
    counts:7,
    },
    upcoming: {
    position:‘top_left’,
    limit:5
    },
    },
    defaultCalendar: {
    maxEntries:50,
    maxDays:180,
    interval: 1000605,
    },
    calendars 😞
    {
    name: “deutschland”,
    symbol: “calendar-o”,
    styleName: “style1”,
    url: “http://www.kayaposoft.com/enrico/ics/v1.0?country=deu&fromDate=01-01-2017&toDate=31-12-2017®ion=Hesse
    },


  • Module Developer

    @daniellang
    For the diagnosis, error logs(frontend and backend both) are needed.
    You can get error logs with npm start dev



  • Starting MagicMirror: v2.4.1
    Loading config …
    WARNING! Could not validate config file. Please correct syntax errors. Starting with default configuration.
    Loading module helpers …
    Initializing new module helper …
    Module helper loaded: updatenotification
    No helper found for module: helloworld.
    All module helpers loaded.
    Starting server on port 8080 …
    Server started …
    Connecting socket for: updatenotification
    Sockets connected & modules started …
    Launching application.
    Shutting down server…
    Stopping module helper: updatenotification
    pi@raspberrypi:~/MagicMirror $



  • language: "de",
    timeFormat: 24,
    units: "metric",
    
    modules: [
    	 {
    			module: 'MMM-CalendarExt',
    			position: "lower_third", //anywhere. It is not related to real position of view
    			config: { // Read below
    			system: {
    			  show: ['daily'],
    			  locale: 'de', //when omitted, default value would be your system default locale by moment.js
    			  showEmptyView: 0,
    			  fullDayEventLocalize: 1,
    			  redrawInterval: 30*60*1000, //minimum 60000
    			  useProfileConfig: 0,
    			  startProfile: ''
    			},
    			
    			 views: {
    					current: {
    					  position: "top_left",
    					  title: "Heute",
    					  limit: 3,
    					},
    					upcoming: {
    					  position: "top_left",
    					  title: "Demnächst",
    					  limit: 3,
    					},
    					daily: {
    					  position: "bottom_bar",
    					  title: "Überblick",
    					  counts: 7,
    					}
    				  },
    

    /*************** DO NOT EDIT THE LINE BELOW ***************/
    if (typeof module !== “undefined”) {module.exports = config;}


  • Module Developer

    @daniellang
    Because your quoted configuration looks not complete, I cannot assure. But the error message says there is some syntax error in your configuration. Many cases are misspellings, missing some marks(,, {, }, [, ], ", ', etc…).
    Anyway I’ve found something.

    name: “deutschland”,
    

    is not proper double-quotation mark for javascript. Instead, you should use ".
    So, it should be like this;

    name: "deutschland",
    

    You could remove and re-insert sections one-by-one to check which section has a problem.



  • @sean cant find the wrong marks…


  • Module Developer

    @daniellang

    {
          //disabled:true,
          module: 'MMM-CalendarExt',
          position: "top_center",
          config: {
            system: {
              show: ["daily", "upcoming"],
              locale: 'en',
              redrawInterval:60000,
            },
            views: {
              daily: {
                position:'bottom_bar',
                counts:7,
              },
              upcoming: {
                position:'top_left',
                limit:5
              },
            },
            defaultCalendar: {
              maxEntries:50,
              maxDays:180,
              interval: 1000*60*5,
            },
            calendars :[
              {
                name: "deutschland",
                symbol: "calendar-o",
                styleName: "style1",
                url: "http://www.kayaposoft.com/enrico/ics/v1.0?country=deu&fromDate=01-01-2017&toDate=31-12-2017®ion=Hesse"
              },
            ],
          }
        },
    

    I think you just copied my configuration sample. It has no bugs. try it again.
    (Anyway, that sample is out-of-date, so there is no event to display at this moment.)



  • no errors now…but the screen stay black…@sean sorry for disturbing…



  • sag bist du deutscher? llooollll


  • Module Developer

    @daniellang
    Leider meine Deutsche ist nicht so gut. 😞

    That iCal url of above sample is out-of-date.
    Try another URL(webcal://www.google.com/calendar/ical/spielplan.1.bundesliga%40gmail.com/public/basic.ics) or yours.