MMRIZE / MMM-CalendarExt3

MagicMirror calendar view module
MIT License
58 stars 22 forks source link

One of 3 calendars won't display #53

Closed FatBoyXPC closed 1 year ago

FatBoyXPC commented 1 year ago

For some reason I can't see the "Holidays" calendar anymore even though I can see it with the built in / default calendar. I've included a screenshot to show what I mean, along with the config.

image

/* MagicMirror² Config Sample
 *
 * By Michael Teeuw https://michaelteeuw.nl
 * MIT Licensed.
 *
 * For more information on how you can configure this file
 * see https://docs.magicmirror.builders/configuration/introduction.html
 * and https://docs.magicmirror.builders/modules/configuration.html
 */
let 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 or empty, is "localhost"
    port: 8080,
    basePath: "/", // The URL path where MagicMirror² is hosted. If you are using a Reverse proxy
    // you must set the sub path here. basePath must end with a /
    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"],

    useHttps: false, // Support HTTPS or not, default "false" will use HTTP
    httpsPrivateKey: "", // HTTPS private key path, only require when useHttps is true
    httpsCertificate: "", // HTTPS Certificate path, only require when useHttps is true

    language: "en",
    locale: "en-US",
    logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging
    timeFormat: 12,
    units: "imperial",
    // serverOnly:  true/false/"local" ,
    // local for armv6l processors, default
    //   starts serveronly and then starts chrome browser
    // false, default for all NON-armv6l devices
    // true, force serveronly mode, because you want to.. no UI on this device

    modules: [
        {
            module: "alert",
        },
        {
            module: "updatenotification",
            position: "top_bar"
        },
        {
            module: "clock",
            position: "top_left"
        },
        {
            module: "calendar",
            header: "Wayne's Calendar",
            //position: "top_left",
            config: {
                calendars: [
                    {
                        symbol: "calendar-check",
                        url: "https://calendar.google.com/calendar/ical/redacted",
                        name: "Wayne",
                        color: "purple"
                    }
                ]
            }
        },
        {
            module: "calendar",
            header: "Kendra's Calendar",
            //position: "top_left",
            config: {
                calendars: [
                    {
                        symbol: "calendar-check",
                        url: "https://calendar.google.com/calendar/ical/redacted",
                        name: "Kendra",
                        color: "red"
                    }
                ]
            }
        },
        {
            module: "calendar",
            header: "Holidays",
            position: "top_left",
            config: {
                calendars: [
                    {
                        symbol: "calendar-check",
                        url: "webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics",
                        name: "Holidays",
                        color: "green"
                    }
                ]
            }
        },
        {
            module: "MMM-CalendarExt3",
            position: "lower_third",
            title: "",
            config: {
                mode: "week",
                weekIndex: 0,
                weeksInView: 3,
                instanceId: "basicCalendar",
                locale: 'en-US',
                maxEventLines: 5,
                eventHeight: '20px',
                firstDayOfWeek: 0,
                displayLegend: true,
                calendarSet: ['Holidays', 'Kendra', 'Wayne', ],
                refreshInterval: 1800000
            }
        },
        {
            module: "compliments",
            position: "bottom_bar"
        },
        {
            module: "weather",
            position: "top_left",
            config: {
                weatherProvider: "openweathermap",
                type: "current",
                location: "Lino Lakes,MN",
                locationID: "5034767", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
                apiKey: "916962c9e0d3255c6b709d55684ffa89"
            }
        },
        {
            module: "weather",
            position: "top_left",
            header: "Weather Forecast",
            config: {
                weatherProvider: "openweathermap",
                type: "forecast",
                location: "Lino Lakes,MN",
                locationID: "5034767", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
                apiKey: "916962c9e0d3255c6b709d55684ffa89"
            }
        },
        {
            module: "weather",
            position: "top_right",
            config: {
                weatherProvider: "openweathermap",
                type: "current",
                location: "Cloquet,MN",
                locationID: "5021632", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
                apiKey: "916962c9e0d3255c6b709d55684ffa89"
            }
        },
        {
            module: "weather",
            position: "top_right",
            header: "Weather Forecast",
            config: {
                weatherProvider: "openweathermap",
                type: "forecast",
                location: "Cloquet,MN",
                locationID: "5021632", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
                apiKey: "916962c9e0d3255c6b709d55684ffa89"
            }
        },
        {
            module: "weather",
            position: "top_right",
            config: {
                weatherProvider: "openweathermap",
                type: "current",
                location: "Sandstone,MN",
                locationID: "5045908", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
                apiKey: "916962c9e0d3255c6b709d55684ffa89"
            }
        },
        {
            module: "weather",
            position: "top_right",
            header: "Weather Forecast",
            config: {
                weatherProvider: "openweathermap",
                type: "forecast",
                location: "Sandstone,MN",
                locationID: "5045908", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
                apiKey: "916962c9e0d3255c6b709d55684ffa89"
            }
        },
        {
            module: "MMM-BurnIn",
            position: "bottom_bar", // whatever, doesn't render anything
            config: {
                updateInterval: 45, // in Minutes
                invertDuration: 7 // in Seconds
            }
        },
        {
            module: "MMM-NowPlayingOnSpotify",
            position: "top_center ",

            config: {
                clientID: "d80478cd2d2d4bbf904b2f1650d7ccd8",
                clientSecret: "c69f2b84f41541d39a576e40f71e27f0",
                accessToken: "BQBOLon5ynFFY193eHQ7ESDCwEZe6c5rnnhJ751opWcIs74jZjB4QyMrhq8MyxfFlFsqciZVR44Ej3NLWRENSG9NaY-3cxSujXapvMJMvWp7tRPP4NforsDOyD8oP5K1ODA0qeUcUc_4nnwsDrJY0Ncb6EbelACVe-FsgtqIyxKO4h8T24GiC2Y",
                refreshToken: "AQDIrOPiplCWZNzyWl7FaFQEMRzX96hnHblUJBsX9uvCFxDHKDK5MVzTuONi1V1y7Y2UVHa4CQyu5d3tmNcKXHH73-NiKxrS-9boTSWRS8vbzd0z2j5I1mK1lCj23VvlDA8"
            }
        },
        {
            module: "newsfeed",
            position: "bottom_bar",
            config: {
                feeds: [
                    {
                        title: "New York Times",
                        url: "https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml"
                    }
                ],
                showSourceTitle: true,
                showPublishDate: true,
                broadcastNewsFeeds: true,
                broadcastNewsUpdates: true,
                reloadInterval: 600000
            }
        },

    ]
};

/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}
eouia commented 1 year ago

The nearest event on the Holidays calendar would be valentine's day - 14th Feb. I think it is normal.

The probable other reason would be the maximumEvents issue. Your two other calendars might have many events to broadcast so that they might consume all the maximumEvents, and there is no room remaining for your Holidays events. You can adjust maximumEvents parameters in your default calendar configs globally or each of your individual calendars.

FatBoyXPC commented 1 year ago

Ah, I see. I only have 3 visible weeks and there are no holidays in that amount of time. I'll try changing the amount of weeks and see if I can see valentine's day. I'll come back and close the issue if that's the case, thanks!

FatBoyXPC commented 1 year ago

Yep, that was the reason!