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.

    custom.css not executed on return from GoogleAssistant. MMM-GoogleAssistant

    Scheduled Pinned Locked Moved Troubleshooting
    google assistant
    23 Posts 4 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.
    • ? Offline
      A Former User
      last edited by A Former User

      @gelaw

      then … no idea … GA only deactivates all the modules for take place for fullscreen and reactivates them once the conversation is over (hidden and show)

      maybe @sdetweil can say more?

      G 1 Reply Last reply Reply Quote 0
      • G Offline
        gelaw @Guest
        last edited by

        @Bugsounet Thanks again for your response. I did a quick test putting my modified .css code into main.css and the exact same behavior occurred. That is: displayed correctly when MM started, incorrectly when GA exits, and ^w corrects the display again. I am not sure where the issue occurs.
        As you say, maybe @sdetweil has better insight.

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

          @gelaw can u open the developers window after return from GA display and look at your clock module css changes (select the elements tab, and navigate the dom tree)

          click on the element you changed with custom.css and look at the bottom of the dev window, which should give the classes used top to bottom, left to right… is your modified class there? then look on the right side to see the class content definitions are your changes there,

          another thing to try if address:“0.0.0.0”, and ipWhitelist:[] in config.js, you can access MM from another machine, use chrome on your PC and repeat the test… see if it fails on chrome…we are downlevel on electron (hard to test with so many changes going into it all the time)

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          G 1 Reply Last reply Reply Quote 0
          • G Offline
            gelaw @sdetweil
            last edited by

            @sdetweil Thanks! I will try this and report back

            1 Reply Last reply Reply Quote 0
            • G Offline
              gelaw
              last edited by

              @sdetweil I did a test with Google Chrome on a second machine. As far as I can tell I get the same response - that is on a return from GoogleAssistant it does not use my custom.css settings. Cntl-W has the same effect.
              I do not know how to work with the developers window. I opened the window, and the elements tab was open. I could not find the classes after that. I really do not know how to use the developers window. Can you point me to a write-up or tutorial on using the developers window?
              Thanks

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

                @gelaw I don’t know where to find any training.

                the elements tab shows the web page in the browser. ~/MagicMirror/index.html shows the format of the web page.

                mm puts content in ‘positions’ which are listed in the index.html

                when u get to an element, then u will see the classes used

                here I have navigated to the calendar and selected an element

                Screenshot_2020-09-02_00-17-54.png

                u can see the classes along the right edge, top to bottom, bottom is closer to main and custom.css
                top is closest to the element selected.
                You can see the class list left to right just above the console area, bottom of elements area (this machine doesn’t have an image editor on it so I can’t mark it up)

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                G 1 Reply Last reply Reply Quote 0
                • ? Offline
                  A Former User @gelaw
                  last edited by A Former User

                  @gelaw sure i use it ;)

                  I will try something

                  custom.css works with GA and other modules.
                  So maybe, i think there is an error with your custom.css code

                  try to correct it in real time, and past the new css code found

                  custom.png

                  1 Reply Last reply Reply Quote 0
                  • G Offline
                    gelaw @sdetweil
                    last edited by

                    @sdetweil Thanks! I see it now. Here is what I found:
                    When I start MM:
                    52623d5c-e39f-481e-9542-ccf96281b5f8-image.png
                    When I access GoogleAssistant:
                    31abf49d-9b9d-464f-a157-88f2581257f9-image.png
                    When the system exits GoogleAssistant and returns to MM the modified element.style persists and the position remains “fixed”.

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

                      @gelaw very interesting… @Bugsounet what do you think? is iframe causing this?

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • G Offline
                        gelaw
                        last edited by

                        @Bugsounet Thanks! When I navigate to the location that you posted it do not see an entry for custom.css. Perhaps I have it in the wrong location? Or I missed a setting to activate this in GoogleAssistant or Assistant2Display?

                        my custom.css file is simply:
                        85a5a824-a846-4725-8ab3-796bca7242e8-image.png

                        and it it located at /home/pi/MagicMirror/css

                        ? 1 Reply Last reply Reply Quote 0
                        • ? Offline
                          A Former User
                          last edited by A Former User

                          This post is deleted!
                          G 1 Reply Last reply Reply Quote 1
                          • G Offline
                            gelaw @Guest
                            last edited by

                            @hango said in custom.css not executed on return from GoogleAssistant. MMM-GoogleAssistant:

                            maybe help this:

                            position: absolute !important;
                            

                            YES! That fixed my issue. Thanks!

                            G 1 Reply Last reply Reply Quote 0
                            • G Offline
                              gelaw @gelaw
                              last edited by gelaw

                              @gelaw said in custom.css not executed on return from GoogleAssistant. MMM-GoogleAssistant:

                              @hango said in custom.css not executed on return from GoogleAssistant. MMM-GoogleAssistant:

                              maybe help this:

                              position: absolute !important;
                              

                              YES! That fixed my issue. Thanks!

                              @Bugsounet This made my display work, but it really is a brute force method. There must be a better solution. I still wonder what I missed in my original approach.

                              1 Reply Last reply Reply Quote 0
                              • ? Offline
                                A Former User
                                last edited by A Former User

                                It’s not a brut force … it’s because i use iframe

                                but Really, I don’t know who can have some problem like that

                                G 1 Reply Last reply Reply Quote 0
                                • G Offline
                                  gelaw @Guest
                                  last edited by

                                  @Bugsounet ok. Thanks!

                                  1 Reply Last reply Reply Quote 0
                                  • ? Offline
                                    A Former User
                                    last edited by A Former User

                                    @gelaw : if you want, give me a copy of your custom css … I want to inspect for fix GA (in private)

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

                                      @Bugsounet tiny custom.css back a few posts. only for clock

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      1 Reply Last reply Reply Quote 0
                                      • ? Offline
                                        A Former User @gelaw
                                        last edited by

                                        @gelaw said in custom.css not executed on return from GoogleAssistant. MMM-GoogleAssistant:

                                        @Bugsounet Thanks! When I navigate to the location that you posted it do not see an entry for custom.css. Perhaps I have it in the wrong location? Or I missed a setting to activate this in GoogleAssistant or Assistant2Display?

                                        my custom.css file is simply:
                                        85a5a824-a846-4725-8ab3-796bca7242e8-image.png

                                        and it it located at /home/pi/MagicMirror/css

                                        this ?

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

                                          @Bugsounet yes

                                          Sam

                                          How to add modules

                                          learning how to use browser developers window for css changes

                                          1 Reply Last reply Reply Quote 0
                                          • G Offline
                                            gelaw @Guest
                                            last edited by

                                            @Bugsounet
                                            Here is the custom.css file I use:

                                            /**
                                             * custom clock location
                                             */
                                            .clock {
                                              position: absolute !important;
                                              left: 200px;
                                              top:  20px;
                                            }
                                            
                                            
                                            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
                                            • 1 / 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