• 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
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-CalendarExt cant get the calendar to show

Scheduled Pinned Locked Moved Troubleshooting
23 Posts 8 Posters 13.2k Views 9 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    Major
    last edited by Jan 1, 2018, 9:51 PM

    @cruunnerr

    I just ran an update this morning and I am having the exact problem.

    Same error, and it works through a web browser…

    Have you found a resolution?

    Did updating node help? If so, how do you update it?

    Thank you for your help,
    Major

    F 1 Reply Last reply Jan 1, 2018, 11:28 PM Reply Quote 0
    • F Offline
      fering3 @Major
      last edited by Jan 1, 2018, 11:28 PM

      I’m having the same issue for the past few days.

      Updated to the latest release of MM today hoping it would solve it somehow but no luck.

      1 Reply Last reply Reply Quote 0
      • F Offline
        fering3
        last edited by Jan 2, 2018, 1:18 AM

        Quick update. I hacked around some updates to Node, npm etc, but nothing seemed to work.

        So I removed the async and the await from the addCalendars function so it looks something like this (file: MMM-CalendarExt.js)

        addCalendars: function() {
           var self = this
           for (var c in this.CurrentConfigs.calendars) {
             self.addCalendar(self.CurrentConfigs.getCalConfig(c))
             sleep(1000)
           }
         },
        

        Seems to work for now. But looking back through github I don’t see that these are recent additions so I don’t know why this started failing now. Hopefully somebody smarter than I will figure it out.

        1 Reply Last reply Reply Quote 0
        • C Offline
          cruunnerr
          last edited by cruunnerr Jan 2, 2018, 4:26 AM Jan 2, 2018, 4:25 AM

          Significantly Changes in the new update is the use of electron 1.4.15.
          I used it already before the update, but i don’t want to update (cause of the CPU trouble thing…) to check if it is the reason.
          but that is the only thing that comes to my mind, since you both got the problem when updating to the newest MM-Version

          1 Reply Last reply Reply Quote 0
          • ? Offline
            A Former User
            last edited by Jan 2, 2018, 5:37 AM

            I doubt MM has downgraded its node version of electron for some reason.
            Unfortunately, ‘async function’ is not working on the lower version of node. I think that is the reason for this issue.
            I’ll check and patch this for some time. Sorry, I should do my job first before this. Plz wait for a while.

            H 1 Reply Last reply Jan 2, 2018, 5:41 PM Reply Quote 0
            • H Offline
              Hein-Jan @Guest
              last edited by Jan 2, 2018, 5:41 PM

              @Sean

              If I read this right:

              Changed

              * Calender week is now handled with a variable translation in order to move number language specific.
              * Reverted the Electron dependency back to 1.4.15 since newer version don’t seem to work on the Raspberry Pi very well.
              

              MM has indeed downgraded…

              1 Reply Last reply Reply Quote 0
              • C Offline
                cruunnerr
                last edited by cruunnerr Jan 2, 2018, 6:13 PM Jan 2, 2018, 6:12 PM

                yeah, its all discussed in this thread: https://forum.magicmirror.builders/topic/4684/electron-cpu-usage?page=1

                I had the problem, too. CPU Usage above 80%.
                When i downgrade to electron 1.4.15 the CPU usage went to nearly 0% !

                But then i went to the Problem that the CalendarExt Module only shows in an external web browser and not on the MM itself.

                Think we have to hope, that Sean will find a solution. :D
                (Or the electron Problem is gone…)

                N 1 Reply Last reply Jan 13, 2018, 9:55 PM Reply Quote 0
                • N Offline
                  ninjabreadman @cruunnerr
                  last edited by Jan 13, 2018, 9:55 PM

                  @cruunnerr Did you try the solution I suggested here? https://forum.magicmirror.builders/topic/6047/calendar-module-won-t-show-all-events/4

                  Problem with config or JavaScript? Copy/paste it into JSHint.
                  Check out the detailed walkthroughs on install, config, modules, etc.

                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    cruunnerr
                    last edited by Jan 14, 2018, 6:59 AM

                    Yeah i saw this and tried it. Works great :) Thank you

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      Turtle
                      last edited by Jan 21, 2018, 4:37 AM

                      Hello my name is TL and I’m very very very new. I’m just trying to get something to show up and it seems that when I start the MagicMirror that I get all the other modules but the CalendarExt module. For some odd reason I have a feeling I’m missing something rather simple. Below is a copy of my config file and my npm start dev below:.

                       *
                       * By Michael Teeuw http://michaelteeuw.nl
                       * MIT Licensed.
                       *
                       * For more information how you can configurate this file
                       * See https://github.com/MichMich/MagicMirror#configuration
                       *
                       */
                      
                      var config = {
                      	address: "localhost", // Address to listen on, can be:
                      	                      // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
                      	                      // - another specific IPv4/6 to listen on a specific interface
                      	                      // - "", "0.0.0.0", "::" to listen on any interface
                      	                      // Default, when address config is left out, is "localhost"
                      	port: 8080,
                      	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
                      	                                                       // or add a specific IPv4 of 192.168.1.5 :
                      	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
                      	                                                       // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
                      	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
                      
                      	language: "en",
                      	timeFormat: 24,
                      	units: "metric",
                      
                      	modules: [
                      		{
                      			module: "alert",
                      		},
                      		{
                      			module: "updatenotification",
                      			position: "top_bar"
                      		},
                      		{
                      			module: "clock",
                      			position: "top_left"
                      		},
                      		{
                      			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",
                      			     },
                      			     weeks: {
                      				showWeeks: 1,
                      				weeksTitle: 'weeks',
                      				weeksFormat: 'wo',
                      				weekdayFormat: 'dd',
                      				titleFormat : 'MMM D',
                      				overTitleFormat : 'MMM D',
                      				counts: 4,
                      			     },
                      			     daily: {
                      			        direction: 'row',
                      			        counts: 5,
                      			        titleFormat: "D",
                      			        overTitleFormat: "MMM D",
                      				subtitleFormat: "ddd",
                      			     },
                      			     weekly: {
                      			        direction: 'row',
                      			    	counts: 4,
                      			    	titleFormat: "wo",
                      			    	overTitleFormat: "gggg wo",
                      			    	subtitleFormat: "MMM Do",
                      			     },
                      			     monthly: {
                      			    	direction: 'row',
                      			    	counts: 3,
                      			    	titleFormat: "MMMM",
                      			    	overTitleFormat: "YYYY MMM",
                      				subtitleFormat: "YYYY",
                        			     },
                      			     current: {
                      				title: 'Current',
                          				useRelative: 1
                      			     },
                      			     upcoming: {
                      				title: 'Upcoming',
                          				useRelative: 1
                      			     },
                      			  },
                      		          defaultCalendar: {
                      			     profiles: [],
                      				views: [],
                      				symbol: "",
                      				styleName: "",
                      				replaceTitle:[],
                      				classPattern: [],
                      				classPatternWhere: ["title"],
                      				symbolPattern: [],
                      				symbolPatternWhere: ["title"],
                      				maxEntries:50,
                      				maxDays:180,
                      				interval: 1800000,
                      			  },
                      			  calendars: [
                      			    {
                      			      name: "Schooldays of John",
                      				url: "https://school.com/schedule.ics",
                      				auth: {
                      				user:'john',
                      				pass:'abcd1234',
                      				method:'bearer'
                          			  }
                      			},
                      		        {
                      			      name: "US Holiday",
                      				url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics",
                      				profile: ['daddy'],
                      				views: ['month', 'upcoming'],
                      				styleName: "style1",
                      				symbol: 'us@fi',
                      				maxEntries: 50,
                      				maxDays:365,
                      				interval: 24*60*60*1000,
                      			}
                      			    
                      		],
                      			  profileConfigs: {
                      			    "Tom" : {},
                      		         
                      			  }
                      			},
                      		},
                      
                      		{
                      			module: "compliments",
                      			position: "lower_third"
                      		},
                      		{
                      			module: "currentweather",
                      			position: "top_right",
                      			config: {
                      				location: "New York",
                      				locationID: "",  //ID from http://www.openweathermap.org/help/city_list.txt
                      				appid: "YOUR_OPENWEATHER_API_KEY"
                      			}
                      		},
                      		{
                      			module: "weatherforecast",
                      			position: "top_right",
                      			header: "Weather Forecast",
                      			config: {
                      				location: "New York",
                      				locationID: "5128581",  //ID from http://www.openweathermap.org/help/city_list.txt
                      				appid: "YOUR_OPENWEATHER_API_KEY"
                      			}
                      		},
                      		{
                      			module: "newsfeed",
                      			position: "bottom_bar",
                      			config: {
                      				feeds: [
                      					{
                      						title: "New York Times",
                      						url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
                      					}
                      				],
                      				showSourceTitle: true,
                      				showPublishDate: true
                      			}
                      		},
                      	]
                      
                      };
                      
                      /*************** DO NOT EDIT THE LINE BELOW ***************/
                      if (typeof module !== "undefined") {module.exports = config;}
                      
                      

                      Here is my npm start dev:

                      pi@raspberrypi:~/MagicMirror $ npm start dev
                      npm ERR! Error: ENOENT: no such file or directory, open '/home/pi/MagicMirror/node_modules/dev/package.json'
                      npm ERR!     at Error (native)
                      npm ERR! If you need help, you may report this *entire* log,
                      npm ERR! including the npm and node versions, at:
                      npm ERR!     
                      
                      npm ERR! System Linux 4.9.59-v7+
                      npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "start" "dev"
                      npm ERR! cwd /home/pi/MagicMirror
                      npm ERR! node -v v4.8.2
                      npm ERR! npm -v 1.4.21
                      npm ERR! path /home/pi/MagicMirror/node_modules/dev/package.json
                      npm ERR! syscall open
                      npm ERR! code ENOENT
                      npm ERR! errno -2
                      npm ERR! 
                      npm ERR! Additional logging details can be found in:
                      npm ERR!     /home/pi/MagicMirror/npm-debug.log
                      npm ERR! not ok code 0
                      pi@raspberrypi:~/MagicMirror $ 
                      

                      Thank you.

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      • First post
                        Last post
                      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