Read the statement by Michael Teeuw here.
MMM-CalendarExt cant get the calendar to show
-
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.
-
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 -
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. -
@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…
-
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…) -
@cruunnerr Did you try the solution I suggested here? https://forum.magicmirror.builders/topic/6047/calendar-module-won-t-show-all-events/4
-
Yeah i saw this and tried it. Works great :) Thank you
-
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.