• 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.

Calendar Symbols Question

Scheduled Pinned Locked Moved Unsolved Troubleshooting
8 Posts 3 Posters 6.8k Views 3 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.
  • L Offline
    Lexingtonian
    last edited by Lexingtonian Oct 22, 2017, 1:52 AM Oct 22, 2017, 1:51 AM

    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"
                                        }
    
                                ],
                        }
                },
    
    1 Reply Last reply Reply Quote 0
    • Z Offline
      zdenek
      last edited by Oct 22, 2017, 5:49 AM

      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?

      1 Reply Last reply Reply Quote 0
      • L Offline
        Lexingtonian
        last edited by Oct 22, 2017, 7:17 AM

        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!

        1 Reply Last reply Reply Quote 0
        • H Offline
          Hawking
          last edited by Hawking Oct 22, 2017, 5:20 PM Oct 22, 2017, 5:19 PM

          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).

          1 Reply Last reply Reply Quote 0
          • L Offline
            Lexingtonian
            last edited by Lexingtonian Oct 22, 2017, 10:27 PM Oct 22, 2017, 8:46 PM

            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"
                                                }
            
                                        ],
                                }
                        },
            
            1 Reply Last reply Reply Quote 0
            • H Offline
              Hawking
              last edited by Hawking Oct 22, 2017, 9:05 PM Oct 22, 2017, 9:04 PM

              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.
              1 Reply Last reply Reply Quote 0
              • L Offline
                Lexingtonian
                last edited by Oct 22, 2017, 10:29 PM

                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!

                1 Reply Last reply Reply Quote 0
                • H Offline
                  Hawking
                  last edited by Oct 25, 2017, 2:59 AM

                  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

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