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.

    MMM-EasyBack no autostart Video

    Scheduled Pinned Locked Moved Solved Troubleshooting
    35 Posts 4 Posters 16.7k Views 4 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.
    • StoffbeuteluweS Offline
      Stoffbeuteluwe Project Sponsor
      last edited by

      Ok i will try again 😀

      1 Reply Last reply Reply Quote 0
      • StoffbeuteluweS Offline
        Stoffbeuteluwe Project Sponsor
        last edited by

        Perfect thank you…:folded_hands:

        1 Reply Last reply Reply Quote 0
        • D Offline
          Darkmx-6
          last edited by

          So I’m not sure what’s going on with mine because it won’t autostart. I did all the changes suggested and below is a copy straight out of the MagicMirror/js/electron.js file.

          I’ve restarted it many times.

          Before I edited it it had everything there except

          'autoplay-policy', 'no-user-gesture-required'
          

          was

          "autoplay-policy", "no-user-gesture-required"
          
          let mainWindow;
          
          function createWindow() {
              app.commandLine.appendSwitch('autoplay-policy', 'no-user-gesture-required');  //< -------- added
                  var electronOptionsDefaults = {
                          width: 800,
                          height: 600,
                          x: 0,
                          y: 0,
                          darkTheme: true,
                          webPreferences: {
                                  nodeIntegration: false,
                                  zoomFactor: config.zoom
                          },
                          backgroundColor: "#000000"
                  };
          
          
          S 1 Reply Last reply Reply Quote 0
          • S Do not disturb
            sdetweil @Darkmx-6
            last edited by

            @Darkmx-6 can you open the developers window, using ctrl-shift-i on the keyboard, select the tab labeled console at the top of that window, and scroll up to see any info, or errors…

            u can also filter for just messages from a single module by putting part of the module name in the filter entryfield

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • D Offline
              Darkmx-6
              last edited by

              @sdetweil said in MMM-EasyBack no autostart Video:

              and scroll up to see any info, or errors…
              u can also filter for just messages from a single module by putting part of the module name in the filter entryfield

              Sure, I can do that, but is there a way to do that through the console? To physically access the pi I have to climb a ladder. I’m going to do that now but it would be awesome if I don’t have to next time.

              S 1 Reply Last reply Reply Quote 0
              • S Do not disturb
                sdetweil @Darkmx-6
                last edited by

                @Darkmx-6 not that I have found

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                D 1 Reply Last reply Reply Quote 0
                • D Offline
                  Darkmx-6 @sdetweil
                  last edited by

                  @sdetweil

                  Humm… ctrl shift i doesn’t seem to work. may be it is just slow, I’m rebooting now and am going to try again. I’m using a raspberry pi zero.

                  S 1 Reply Last reply Reply Quote 0
                  • D Offline
                    Darkmx-6
                    last edited by

                    yeah, it does nothing… is there a way to access it with the mouse?

                    My Keyboard is connected and working because I can quit magic mirror with the keyboard.

                    1 Reply Last reply Reply Quote 0
                    • S Do not disturb
                      sdetweil @Darkmx-6
                      last edited by

                      @Darkmx-6 all three keys together, ctrl-shift and the letter i (as in Initial)

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        Darkmx-6
                        last edited by

                        yep, like if I’m hitting ctrl + alt + delete correct?

                        instead it’s ctrl shift i

                        S 1 Reply Last reply Reply Quote 0
                        • S Do not disturb
                          sdetweil @Darkmx-6
                          last edited by

                          @Darkmx-6 correct

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          1 Reply Last reply Reply Quote 0
                          • D Offline
                            Darkmx-6
                            last edited by

                            Yeah I can’t get it to come up.

                            I’m not sure what else I can do.

                            S 1 Reply Last reply Reply Quote 0
                            • S Do not disturb
                              sdetweil @Darkmx-6
                              last edited by

                              @Darkmx-6 if u can change the startup, npm start dev opens the developers window

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              D 2 Replies Last reply Reply Quote 0
                              • D Offline
                                Darkmx-6 @sdetweil
                                last edited by

                                @sdetweil

                                I am trying a clean install now

                                1 Reply Last reply Reply Quote 0
                                • D Offline
                                  Darkmx-6 @sdetweil
                                  last edited by

                                  @sdetweil

                                  is this the start file you are talking about?

                                  pi@raspberrypi:~ $ ls
                                  chromium_start.sh  mmstart.sh                  package-lock.json
                                  MagicMirror        node-v10.16.0-linux-armv6l
                                  pi@raspberrypi:~ $ 
                                  
                                  

                                  mmstart.sh?

                                  pi@raspberrypi:~ $ sudo nano mmstart.sh
                                  
                                    GNU nano 3.2                       mmstart.sh                                 
                                  
                                  #!/bin/bash
                                  cd ~/MagicMirror
                                  node serveronly &
                                  sleep 30
                                  xinit /home/pi/chromium_start.sh
                                  
                                  npm start dev
                                  

                                  Is that where it goes?

                                  Man doing this project makes me feel so dumb I need to learn more, any suggestions?

                                  1 Reply Last reply Reply Quote 0
                                  • D Offline
                                    Darkmx-6
                                    last edited by

                                    Oh an just to update with the clean install I had the same issue.

                                    1 Reply Last reply Reply Quote 0
                                    • D Offline
                                      Darkmx-6
                                      last edited by Darkmx-6

                                      I am also now using a Raspberry Pi 3 B+

                                      1 Reply Last reply Reply Quote 0
                                      • D Offline
                                        Darkmx-6
                                        last edited by

                                        Well I ended up going to a static picture because I can’t think of what else to do.

                                        S 1 Reply Last reply Reply Quote 0
                                        • S Do not disturb
                                          sdetweil @Darkmx-6
                                          last edited by sdetweil

                                          @Darkmx-6 i don’t know where mmstart.sh came from… it is not part of the base MagicMirror solution.

                                          the MagicMirror start script is ~/MagicMirror/installers/mm.sh

                                          it does not run serveronly… it assumes you are running the mirror user experience ON the same machine.

                                          i don’t know if EasyBack works on the remote client of serveronly… THAT browser would have to enable autoplay… our fix was for the electron browser running ON the same machine

                                          edit:
                                          ok, i see what you are doing… using chromium for the browser for some reason…

                                          so u have to disable the autoplay blocker there , from
                                          https://developers.google.com/web/updates/2017/09/autoplay-policy-changes

                                          You can decide to disable entirely the autoplay policy by setting the 
                                          Chrome flag "Autoplay Policy" to "No user gesture is required" at chrome://flags/#autoplay-policy. 
                                          This allows you to test your website as if user were strongly engaged with your site and playback autoplay would be always allowed.
                                          

                                          Sam

                                          How to add modules

                                          learning how to use browser developers window for css changes

                                          1 Reply Last reply Reply Quote 2
                                          • D Offline
                                            Darkmx-6
                                            last edited by

                                            Ah I see! It works THANK YOU!
                                            Must be because of the pre-made image I installed MagicMirror with.

                                            Here is the link:

                                            http://emmanuelcontreras.com/how-to/how-to-create-a-magic-mirror-2-with-pi-zero-w/

                                            Here is the fix:

                                            I edited the file chromium_start.sh found here:

                                            pi@raspberrypi:~ $ ls
                                            chromium_start.sh  MagicMirror  mmstart.sh  node-v10.16.0-linux-armv6l  package-lock.json
                                            

                                            and added

                                            --autoplay-policy=no-user-gesture-required
                                            

                                            Example:

                                              GNU nano 3.2                          chromium_start.sh                                                                         
                                            
                                            #!/bin/sh
                                            unclutter &
                                            xset -dpms # disable DPMS (Energy Star) features.
                                            xset s off # disable screen saver
                                            xset s noblank # don’t blank the video device
                                            matchbox-window-manager &
                                            #midori -e Fullscreen -a http://localhost:8080
                                            chromium-browser --autoplay-policy=no-user-gesture-required --incognito --kiosk http://localhost:8080/
                                            
                                            S Mykle1M 2 Replies Last reply Reply Quote 1

                                            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