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 moves right by 5 px every update

    Scheduled Pinned Locked Moved Bug Hunt
    26 Posts 2 Posters 12.8k Views 2 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.
    • E Offline
      emwtur
      last edited by sdetweil

      Since updating to latest MagicMirror my calendar has started shifting right continously

      have not changed anything in configuration since updating

      portion of config.js

      {
                  module: "calendar",
                  header: "Min Kalender",
                  position: "top_left",
                  showLocation: true,
                  maximumEntries: 12,
                  maximumNumberOfDays: 40,
                  wrapEvents: true,
                  config: {
                      colored: true,
                      fade: false,
                      showLocation: false,
                      wrapEvents: false,
                      calendars: [{
      

      all calendars are reading from local .ics files read from other scripts
      (“webcal://127.0.0.1:8080/config/xxx.ics”)

      in html is looks like a

      <span class="fas fa-fw fa-" style="padding-left: 5px;"></span>
      

      is inserted for each update - I have some 25 of them now - there are a few less if I restart mm

      /Per-Eric

      S 2 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @emwtur
        last edited by sdetweil

        @emwtur can you show any custom.css you might have

        also please use code block around config or log entries

        paste into editor
        select pasted text hit the </> button above the editor

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @emwtur
          last edited by

          @emwtur do you have a custom symbol defined for the calendar urls?

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          E 1 Reply Last reply Reply Quote 0
          • E Offline
            emwtur @sdetweil
            last edited by

            @sdetweil Yes I did - but I have tried without

            Checked the code and it led me to checking symbol settings - tried disabling all kinds of symbols -

            sample cal

                           {
                                name: "Google",
                                symbol: "google",
                                color: "#00F0F0",
                                maximumEntries: 4,
                                url: "webcal://127.0.0.1:8080/config/emwtur-gmail.ics",
                            },
            
            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @emwtur
              last edited by

              @emwtur but did u install custom symbols before?

              the html seems like it is missing the symbol name

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • E Offline
                emwtur
                last edited by

                no custom css’s anywhere…

                Only thing, when I come to think of it - is that I have an old version of another calendar module …
                I’ll uninstall that to check that it’s not causing any problems

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @emwtur
                  last edited by

                  @emwtur there is only one custom.css
                  css/custom.css where all style overrides go

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  E 1 Reply Last reply Reply Quote 0
                  • E Offline
                    emwtur @sdetweil
                    last edited by

                    @sdetweil
                    Sorry if I’m not used to this forum messaging.

                    I have installed MM new - latest and greatest - after new year using the scripts at https://github.com/sdetweil/MagicMirror_scripts

                    your’s I believe :-)
                    I have not modified anything inside MM - only added a few modules - the same I had with my previos version - which was the penultimate release I think.
                    I have not touched any css files - god forbid - I am a backend dev cheating a little in react.js at work css always end up with !important and strange stuff

                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @emwtur
                      last edited by

                      @emwtur is that cal entry the one with the html?

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      E 1 Reply Last reply Reply Quote 0
                      • E Offline
                        emwtur @sdetweil
                        last edited by

                        @sdetweil No it was another calendar module showing a week view -

                        I was showing the html I get when I browse to the url of the machine showing the magic mirror - should be the same html that is shown on the mirror - I have the same problems in both anyway

                        I have removed the other calendar module and still have the problem

                        /P

                        S 1 Reply Last reply Reply Quote 0
                        • S Offline
                          sdetweil @emwtur
                          last edited by

                          @emwtur still, the symbol name is not being used

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          E 1 Reply Last reply Reply Quote 0
                          • E Offline
                            emwtur @sdetweil
                            last edited by

                            @sdetweil

                            Doing the dirty fix :
                            round line 320 in calendars.js :

                                                        const symbols = this.symbolsForEvent(event);
                                                        symbols.forEach((s, index) => {
                            

                            // const symbol = document.createElement(“span”);
                            // symbol.className = s;
                            // if (index > 0) {
                            // symbol.style.paddingLeft = “5px”;
                            // }
                            // symbolWrapper.appendChild(symbol);
                            });
                            eventWrapper.appendChild(symbolWrapper);

                            removes the issue for me - I assume the calculation goes wrong somehow - I tried to remove my different calendars one by one and it did not affect the “move right” so

                            For today - I’ll leave it at that - can’t tell if it’s parsing the calendar and thinking there are more and more symbols ?

                            S 1 Reply Last reply Reply Quote 0
                            • S Offline
                              sdetweil @emwtur
                              last edited by

                              @emwtur can you show the calendar configs? xxx out the urls

                              there was a fix in the area…

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              E 1 Reply Last reply Reply Quote 0
                              • E Offline
                                emwtur @sdetweil
                                last edited by

                                @sdetweil
                                I’ll reinstall some stuff and try to remove all calendars I had and only use the one from the sample config and see how that goes.
                                Should point to something being wrong with my .ics files ( or how they are parsed, if it works
                                /P

                                S 1 Reply Last reply Reply Quote 0
                                • S Offline
                                  sdetweil @emwtur
                                  last edited by

                                  @emwtur the fix was when there were multiple symbols

                                  symbol:[x,y,z]

                                  in the calendar specification

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  E 2 Replies Last reply Reply Quote 0
                                  • E Offline
                                    emwtur @sdetweil
                                    last edited by

                                    @sdetweil
                                    Yes I had multiple but tried to remove all of them - didn’t help.

                                    Anyway having ONLY the cal from config.js.sample looks to work - having restored calendar.js to original

                                    1 Reply Last reply Reply Quote 0
                                    • E Offline
                                      emwtur @sdetweil
                                      last edited by

                                      @sdetweil
                                      it has to do with multiple symbols.
                                      looks like the bug can be reproduced using the cal setting from the sample file , just add another symbol and watch it move

                                      {
                                      		module: "calendar",
                                      		header: "US Holidays",
                                      		position: "top_left",
                                      		config: {
                                      			calendars: [
                                      				{
                                      					fetchInterval: 7 * 24 * 60 * 60 * 1000,
                                      					symbol: ["calendar-check","google"]
                                      					url: "https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics"
                                      				}
                                      			]
                                      		}
                                      	},
                                      
                                      S 1 Reply Last reply Reply Quote 0
                                      • S Offline
                                        sdetweil @emwtur
                                        last edited by sdetweil

                                        @emwtur great!!! thsnks

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        E 1 Reply Last reply Reply Quote 0
                                        • E Offline
                                          emwtur @sdetweil
                                          last edited by

                                          @sdetweil

                                          Having single symbols is something I can live with - was just confused - it worked before updating…

                                          thank YOU for great work with Magic Mirror.
                                          regards
                                          /Per-Eric

                                          S 1 Reply Last reply Reply Quote 0
                                          • S Offline
                                            sdetweil @emwtur
                                            last edited by sdetweil

                                            @emwtur ok, i made the change , so gotta figure out how i screwed that up

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            S 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 2 / 2
                                            • 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