Calendar Symbols Question



  • I’ve been trying to get different symbols for my different calendars but for some reason the middle symbol gets ignored. Code snippet below and photo of what I see. Any ideas? …I was attempting also to limit the center calendar (UK basketball) to 4 entires but this apparently doesn’t work per calendar correct?

    THANKS!

    0_1508636954942_Screen Shot 2017-10-21 at 9.48.08 PM.png

             {
                        module: "calendar",
                        position: "top_left",
                        maximumEntries: "10",
                        config: {
                                calendars: [
                                        {
                                                symbol: "calendar ",
                                                url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics"
                                        },
                                        {
                                                symbol: "bell ",
                                                url: "https://calendar.google.com/blahblahblah",
                                                maximumEntries: "4"
                                        },
                                        {
                                                symbol: "home ",
                                                url: "https://calendar.google.com/calendar/ical/blahblahblah"
                                        }
    
                                ],
                        }
                },


  • why is there “space” (blank character) after the name of symbol? Did you try instead of bell to use another symbol? BTW, is there (in the screenshot) any item from “https://calendar.google.com/blahblahblah” calendar at all?



  • Space removed in my config.js made no difference. All three calendars are represented in the output. Tried other symbols as well.

    Thx for the suggestions!



  • Regarding the limit to 4 entries, I think you shouldn’t use “” around the number, so try just

    maximumEntries: 4,
    

    (and also adjust the global setting from “10” to 10. As 10 is the default, it does not have an effect anyway)

    Maybe this also fixes the wrong symbol? If not, what happens if you e.g. switch the order of calender 1 and 2 (just as a test).



  • Config currently looks like the following. Still have the icon issue. Will try moving things around.

                {
                        module: "calendar",
                        position: "top_left",
                        maximumEntries: 8,
                        config: {
                                calendars: [
                                        {
                                                symbol: "calendar",
                                                url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics"
                                        },
                                        {
                                                symbol: "bell",
                                                url: "https://calendar.google.com/calendar/ical/blahbkah",
                                                maximumEntries: 4
                                        },
                                        {
                                                symbol: "home",
                                                url: "https://calendar.google.com/calendar/ical/blah"
                                        }
    
                                ],
                        }
                },


  • I don’t have access to my MM at the moment, therefore I couldn’t test your configuration.
    However two comments

    1. There should be a comma after
    url: "https://calendar.google.com/calendar/ical/blahbkah"
    

    (like it was in your old code sample).

    1. The quotation marks at the end of the url look different in calender 2 and 3 compared to 1. I don’t know if this is a problem in your sample code or if you should adjutst the actual configuration file.


  • Hey sharp eye! I copy and pasted using my iPad and trimmed the long iCal urls. Everything is correct though in my config.js.

    Thanks!



  • And does it work?
    I made a test using

    {
                    module: "calendar",
                    position: "top_left",
                    maximumEntries: 8,
                    config: {
                       calendars: [
                                   {
                                     symbol: "calendar",
                                     url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics"
                                   },
                                   {
                                     symbol: "bell",
                                     url: "https://www.calendarlabs.com/ical-calendar/ics/75/UK_Holidays.ics",
                                     maximumEntries: 4
                                   },
                                   {
                                     symbol: "home",
                                     url: "https://www.calendarlabs.com/ical-calendar/ics/52/Islam_Holidays.ics"
                                   }
                                ],
                           }
           },
    

    and the symbols look OK:
    0_1508900216758_MM.png


Log in to reply
 

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