MMM-CalendarExt cant get the calendar to show



  • My hope is to create a plain Calendar for the entire month on a 23in monitor and has 3 different calendar sources. The calendar would sit in the top left underneath the current date and time, and this calendar would take up majority of the screen but leave room for some weather modules on the top right. That’s all this thing is going to be used for.

    My issue is that I cant seem to get this calendar to show.

    My code from going section by section:

    {
    	module: 'MMM-CalendarExt',
    	position: "top_left", //anywhere. It is not related to real position of view
    	config: { // Read below
    	  system: {
    		  show: ['daily'],
    		  locale: '', //when omitted, default value would be your system default locale by moment.js
    		  showEmptyView: 1,
    		  fullDayEventLocalize: 1,
    		  redrawInterval: 30*60*1000, //minimum 60000
    		  useProfileConfig: 0,
    		  startProfile: ''
    		},
    		defaultView: {
    		  position: 'bottom_bar',
    		  positionOrder: -1,
    		  overflowRolling: 0,
    		  overflowHeight: 0,
    		  overflowDuration: 2,
    		  timeFormat: 'HH:mm',
    		  dateFormat: "MMM Do",
    		  fullDayEventDateFormat: "MMM Do",
    		  ellipsis: 0,
    		  limit:0,
    		  oneLineEvent:0,
    		  replaceTitle:[],
    		  classPattern:[],
    		  classPatternWhere:["title"],
    		  symbolPattern:[],
    		  symbolPatternWhere:["title"]
    		},
    		views: {
    			month: {
    				showWeeks: 1,
    				weeksTitle: 'weeks',
    				weeksFormat: 'wo',
    				weekdayFormat: 'dd',
    				titleFormat : 'D',
    				overTitleFormat : 'MMM D',
    				monthTitleFormat: "MMMM",
    			},
    		},
             defaultCalendar: {
    		  profiles: [],
    		  views: [],
    		  symbol: "",
    		  styleName: "",
    		  replaceTitle:[],
    		  classPattern: [],
    		  classPatternWhere: ["title"],
    		  symbolPattern: [],
    		  symbolPatternWhere: ["title"],
    		  maxEntries:50,
    		  maxDays:180,
    		  interval: 1800000,
    		},
    
    	  calendars: [
    		  {
    			name: "Stars",
    			url: "webcal://cantonbecker.com/astronomy-calendar/astrocal.ics",
    		  },
    		  {
    			name: "US Holiday",
    			url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics",
    			maxEntries: 50,
    			maxDays:365,
    			interval: 24*60*60*1000,
    		  }
    		],
    	},
    }
    

    this code resulted in a giant nothing showing.

    I then tried what Im guessing is the basic defualt

    {
      module: 'MMM-CalendarExt',
      position: "top_left",
      config: {
        calendars: [
          {
            url: "http://mlb.am/tix/mariners_schedule_full"
          }
        ]
      }
    },
    

    Still nothing showed up.

    Advice on whats up


  • Module Developer

    @glitchgod
    Check pm2 log mm or npm start dev. Leave your error messages of terminal and browser dev console.
    In many cases, error(even from other modules) could prevent loading modules properly.



  • okay here it is
    pm2 log mm

    pi@MagicMirror:~ $ pm2 log mm --lines 1000
    [TAILING] Tailing last 1000 lines for [mm] process (change the value with --lines option)
    /home/pi/.pm2/logs/mm-error-0.log last 1000 lines:
    0|mm       |
    0|mm       | npm ERR! Linux 4.9.52-v7+
    0|mm       | npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
    0|mm       | npm ERR! node v6.11.4
    0|mm       | npm ERR! npm  v3.10.10
    0|mm       | npm ERR! code ELIFECYCLE
    0|mm       | npm ERR! magicmirror@2.1.3 start: `sh run-start.sh`
    0|mm       | npm ERR! Exit status 1
    0|mm       | npm ERR!
    0|mm       | npm ERR! Failed at the magicmirror@2.1.3 start script 'sh run-start.sh'.
    0|mm       | npm ERR! Make sure you have the latest version of node.js and npm installed.
    0|mm       | npm ERR! If you do, this is most likely a problem with the magicmirror package,
    0|mm       | npm ERR! not with npm itself.
    0|mm       | npm ERR! Tell the author that this fails on your system:
    0|mm       | npm ERR!     sh run-start.sh
    0|mm       | npm ERR! You can get information on how to open an issue for this project with:
    0|mm       | npm ERR!     npm bugs magicmirror
    0|mm       | npm ERR! Or if that isn't available, you can get their info via:
    0|mm       | npm ERR!     npm owner ls magicmirror
    0|mm       | npm ERR! There is likely additional logging output above.
    0|mm       |
    0|mm       | npm ERR! Please include the following file with any support request:
    0|mm       | npm ERR!     /home/pi/MagicMirror/npm-debug.log
    0|mm       | [811:1006/062246.323684:FATAL:bus.cc(1197)] D-Bus connection was disconnected. Aborting.
    0|mm       | #0 0x00000139f0c0 
    0|mm       | #1 0x0000013ae0be 
    0|mm       | #2 0x0000009d3172 
    0|mm       |
    0|mm       | [812:1006/064303.600583:FATAL:bus.cc(1197)] D-Bus connection was disconnected. Aborting.
    0|mm       | #0 0x00000139f0c0 
    0|mm       | #1 0x0000013ae0be 
    0|mm       | #2 0x0000009d3172 
    0|mm       |
    0|mm       | [807:1006/065119.128269:FATAL:bus.cc(1197)] D-Bus connection was disconnected. Aborting.
    0|mm       | #0 0x00000139f0c0 
    0|mm       | #1 0x0000013ae0be 
    0|mm       | #2 0x0000009d3172 
    0|mm       |
    
    /home/pi/.pm2/logs/mm-out-0.log last 1000 lines:
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXWLP] SCANNING: /home/
    0|mm       | [DBXWLP] SCANNING: /home/Apps/
    0|mm       | [DBXWLP] SCANNING: /home/Apps/background_pi_magicMirror
    0|mm       | [DBXWLP] SCANNING: /Apps/background_pi_magicMirror
    0|mm       | [DBXWLP] SCANNING: /background_pi_magicMirror
    0|mm       | [DBXWLP] DOWNLOAD_ERROR /background_pi_magicMirror
    0|mm       | [DBXWLP] DOWNLOAD_ERROR /background_pi_magicMirror
    0|mm       | [DBXWLP] DOWNLOAD_ERROR /background_pi_magicMirror
    0|mm       | [DBXWLP] DOWNLOAD_ERROR /background_pi_magicMirror
    0|mm       | [DBXWLP] DOWNLOAD_ERROR /background_pi_magicMirror
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXWLP] SCANNING: /home/Apps/background_pi_magicMirror
    0|mm       | [DBXWLP] SCANNING: /Apps/background_pi_magicMirror
    0|mm       | [DBXWLP] SCANNING: /background_pi_magicMirror
    0|mm       | [DBXWLP] DOWNLOAD_ERROR /background_pi_magicMirror
    0|mm       | [DBXWLP] DOWNLOAD_ERROR /background_pi_magicMirror
    0|mm       | [DBXWLP] DOWNLOAD_ERROR /background_pi_magicMirror
    0|mm       | [DBXWLP] DOWNLOAD_ERROR /background_pi_magicMirror
    0|mm       | [DBXWLP] DOWNLOAD_ERROR /background_pi_magicMirror
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    
    0|mm       | [DBXPIC] No scanned images in Dropbox.
    
    
    

    and
    npm, start dev

    pi@MagicMirror:~ $ npm start dev
    npm ERR! Linux 4.9.52-v7+
    npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start" "dev"
    npm ERR! node v6.11.4
    npm ERR! npm  v3.10.10
    npm ERR! path /home/pi/package.json
    npm ERR! code ENOENT
    npm ERR! errno -2
    npm ERR! syscall open
    
    npm ERR! enoent ENOENT: no such file or directory, open '/home/pi/package.json'
    npm ERR! enoent ENOENT: no such file or directory, open '/home/pi/package.json'
    npm ERR! enoent This is most likely not a problem with npm itself
    npm ERR! enoent and is related to npm not being able to find a file.
    npm ERR! enoent
    
    npm ERR! Please include the following file with any support request:
    npm ERR!     /home/pi/npm-debug.log
    
    

  • Module Developer

    @glitchgod
    First. All of error messages [DBX...] are not related with CalendarExt. For clearer test, disable DropboxWallpaper.(and all other modules except for CalendarExt)
    Second, npm start dev should be run on your magic mirror directory(It might be ~/MagicMirror, not ~/)
    So, Just check again.

    cd ~/MagicMirror
    npm start dev
    

    It could show your MM and an additional window for developer console. You might find error mark (red circled X mark and numbers, if exists). In that case, move to tab Console, you could see errors.



  • @Sean said in MMM-CalendarExt cant get the calendar to show:

    r

    alright ran the dev mode in the proper directory
    the screen that showed up looks like the Chrome’s “F12” option

    There were no errors or issues highlighed or showing the X on them, however the calendar somewhat showed up in a weird way after i commented out everything but the calendar.

    It showed up in the bottom left with only "Tuesday /Wensday/ Thurday/ Friday " and a single calendar line.

    Picture proof

    Im still running with the Default script

    {
      module: 'MMM-CalendarExt',
      position: "top_left",
      config: {
        calendars: [
          {
            url: "http://mlb.am/tix/mariners_schedule_full"
          }
        ]
      }
    },
    

    SSSoo some progress

    After letting the SSH run for a few minutes an error did show up

    Starting MagicMirror: v2.1.3
    Loading config ...
    Loading module helpers ...
    No helper found for module: alert.
    Initializing new module helper ...
    Module helper loaded: MMM-CalendarExt
    All module helpers loaded.
    Starting server on port 8080 ...
    Server started ...
    Connecting socket for: MMM-CalendarExt
    Sockets connected & modules started ...
    Whoops! There was an uncaught exception...
    { Error: listen EADDRINUSE 127.0.0.1:8080
        at Object.exports._errnoException (util.js:1050:11)
        at exports._exceptionWithHostPort (util.js:1073:20)
        at Server.setupListenHandle [as _listen2] (net.js:1263:14)
        at listenInCluster (net.js:1304:12)
        at doListen (net.js:1428:7)
        at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:62:16)
        at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:78:10)
      code: 'EADDRINUSE',
      errno: 'EADDRINUSE',
      syscall: 'listen',
      address: '127.0.0.1',
      port: 8080 }
    MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
    If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
    Launching application.
    pm2 log mm
    
    

  • Module Developer

    Ok, we are progressed.
    Try this. And you can know what was problem. ;)

          config: {
            system: {
              show: ['month'],
            },
            views: {
              month: {
                position:'bottom_bar',
              },
            },
            calendars :[
              {
                url:"http://mlb.am/tix/mariners_schedule_full"
              },
            ]
         }
    

  • Module Developer

    Ok. I tell you the truth.

    there is no more schedule for Seatle Mariners in this month. That is why empty frame is shown.
    Try this url : https://ics.fixtur.es/v2/eintracht-frankfurt.ics

    And, Port error is not related with modules (I think)



  • Alright it’s up and running.
    Thank you Sean
    the steep by steep fix you have given was excellent :)



  • After re enabling all the modules it seems

    “MMM-ethereum”

    causes it not to show up.
    The way i found out is commenting out each module one by one

    Just for future


Log in to reply
 

Looks like your connection to MagicMirror Forum was lost, please wait while we try to reconnect.