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.

    YAPi0 Installer Stretch Lite

    Scheduled Pinned Locked Moved General Discussion
    118 Posts 4 Posters 103.9k 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.
    • B Offline
      bdream
      last edited by

      Just get following warnings similar to my post 3 days ago

      npm WARN npm npm does not support Node.js v10.15.2
      npm WARN npm You should probably upgrade to a newer version of node as we
      npm WARN npm can't make promises that npm will work with this version.
      npm WARN npm Supported releases of Node.js are the latest releases of 4, 6, 7, 8, 9.
      npm WARN npm You can find the latest version at https://nodejs.org/
      /usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
      /usr/local/bin/npx -> /usr/local/lib/node_modules/npm/bin/npx-cli.js
      + npm@6.11.3
      added 430 packages from 833 contributors in 299.269s
      npm installation Done!
      

      –
      cheers, bdream

      1 Reply Last reply Reply Quote 0
      • B Offline
        bdream
        last edited by

        also this warning

        Installing dependencies ...
        npm WARN deprecated time-grunt@2.0.0: Deprecated because Grunt is practically unmaintained. Move on to something better. This package will continue to work with Grunt v1, but it will not receive any updates.
        

        –
        cheers, bdream

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

          @bdream so far so good… ignore warnings… 1st upgraded npm to latest

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • B Offline
            bdream
            last edited by

            < magicmirror2.8.0 install /home/pi/MagicMirror
            > cd vendor && npm install
            
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
            npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: ("os":"linux","arch":"arm") 
            

            –
            cheers, bdream

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

              @bdream so far so good…

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • B Offline
                bdream
                last edited by

                npm WARN grunt-stylelint@0.11.1 requires a peer of stylelint@^10.0.0 but none is installed. You must install peer dependencies yourself.
                

                –
                cheers, bdream

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

                  @bdream still good

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    bdream
                    last edited by

                    now the question if I want to use pm2 for autostart MM I will state YES

                    –
                    cheers, bdream

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

                      @bdream correct, reply yes or y

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • B Offline
                        bdream
                        last edited by

                        
                        [PM2][WARN] Application MagicMirror not running, starting...
                        [PM2] App [MagicMirror] launched (1 instances)
                        
                        App name | id | version | node | pid | status | restart | uptime | cpu | mem | user | watching
                        MagicMirror | 0 | 2.8.0 | fork | 4835 | online | 0 | 3s | 0% | 2.5 MB | pi | enabled
                        
                        use 'pm2 show <id|name>' to get more details about an app
                        

                        I used pm2 show mm and got [PM2][WARN] mm doesn’t exist

                        –
                        cheers, bdream

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

                          @bdream said in YAPi0 Installer Stretch Lite:

                          pm2 show mm

                          correct,

                          its called MagicMirror

                          App name | id | version |
                          MagicMirror | 0 | 2.8.0 |

                          says its running…

                          show me pm2 logs

                          you can also use the id, instead of the name

                          pm2 start 0,
                          pm2 stop 0,
                          pm2 show 0…

                          etc

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          1 Reply Last reply Reply Quote 0
                          • B Offline
                            bdream
                            last edited by

                            here you are
                            last 3 rows coming multiple times
                            0_1569432084042_pm2log.JPG

                            –
                            cheers, bdream

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

                              @bdream ok, there are two logs… error and out…

                              maybe best to do

                              cd ~/MagicMirror
                              pm2 stop 0
                              npm start

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              1 Reply Last reply Reply Quote 0
                              • B Offline
                                bdream
                                last edited by

                                pi@RasPiZeroW:~ $ cd ~/MagicMirror/
                                pi@RasPiZeroW:~/MagicMirror $ pm2 stop 0
                                [PM2] Applying action stopProcessId on app [0](ids: 0)
                                [PM2] [MagicMirror](0) ✓
                                ┌─────────────┬────┬─────────┬──────┬─────┬─────────┬─────────┬────────┬─────┬────────┬──────┬──────────┐
                                │ App name    │ id │ version │ mode │ pid │ status  │ restart │ uptime │ cpu │ mem    │ user │ watching │
                                ├─────────────┼────┼─────────┼──────┼─────┼─────────┼─────────┼────────┼─────┼────────┼──────┼──────────┤
                                │ MagicMirror │ 0  │ 2.8.0   │ fork │ 0   │ stopped │ 31      │ 0      │ 0%  │ 0 B    │ pi   │ disabled │
                                └─────────────┴────┴─────────┴──────┴─────┴─────────┴─────────┴────────┴─────┴────────┴──────┴──────────┘
                                 Use `pm2 show <id|name>` to get more details about an app
                                pi@RasPiZeroW:~/MagicMirror $ npm start
                                
                                > magicmirror@2.8.0 start /home/pi/MagicMirror
                                > sh run-start.sh
                                
                                /home/pi/MagicMirror/node_modules/electron/dist/electron: error while loading shared libraries: libgtk-3.so.0: cannot open shared object file: No such file or directory
                                npm ERR! code ELIFECYCLE
                                npm ERR! syscall spawn
                                npm ERR! file sh
                                npm ERR! errno ENOENT
                                npm ERR! magicmirror@2.8.0 start: `sh run-start.sh`
                                npm ERR! spawn ENOENT
                                npm ERR!
                                npm ERR! Failed at the magicmirror@2.8.0 start script.
                                npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                                
                                npm ERR! A complete log of this run can be found in:
                                npm ERR!     /home/pi/.npm/_logs/2019-09-25T17_26_03_649Z-debug.log
                                pi@RasPiZeroW:~/MagicMirror $
                                
                                

                                –
                                cheers, bdream

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

                                  @bdream

                                  you MUST install the graphical UI desktop on the pi, right? MM uses graphics to display the screen.

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  1 Reply Last reply Reply Quote 0
                                  • B Offline
                                    bdream
                                    last edited by

                                    hmm, I guess I have to investigate about this in a few weeks.

                                    So far many thanks for your help here. Will have a look later today and see what can I handle. Otherwise later. I have to run for a meeting now.

                                    –
                                    cheers, bdream

                                    1 Reply Last reply Reply Quote 0
                                    • B Offline
                                      bdream
                                      last edited by

                                      @sdetweil said in YAPi0 Installer Stretch Lite:

                                      graphical UI desktop on the pi
                                      I wonder. I understood Pi0 don’t need to have UI installed. therefor I installed the light raspbian image - maybe I’m wrong :confounded_face:

                                      Do I have to install lightdm or other?

                                      And then I assume use raspi-config to boot to desktop?

                                      –
                                      cheers, bdream

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

                                        @bdream you can do node serveronly , instead of npm start…

                                        for pm2, edit installers/mm.sh and change npm start to node serveronly

                                        then pm2 restart 0

                                        others have had success at running UI on p0 as well…

                                        make sure u change config/config.js to allow other machines to connect
                                        to allow all

                                        address: “”,
                                        and
                                        ipWhitelist: [],

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        1 Reply Last reply Reply Quote 0
                                        • B Offline
                                          bdream
                                          last edited by

                                          Í’m back now and started to work further on my Pi0 with MM installation.

                                          I tried to get UI desktop running by installing lightdm.
                                          Then reconfigured Boot option to start Desktopn and Auotologin.
                                          After reboot, wich looks good, PI starts an give Debian logon screen.

                                          How to autologon?

                                          After I put in my credentials pi and raspberry I stuck in login-loop.

                                          –
                                          cheers, bdream

                                          1 Reply Last reply Reply Quote 0
                                          • B Offline
                                            bdream
                                            last edited by

                                            Any idea what to do?
                                            Maybe Pi0 is not the Hardware MM will run good. Especialy in regards to upcoming updates :dizzy_face:
                                            But this small device will give more oportunities for nice looking projects based on MM :grinning_face_with_smiling_eyes:

                                            –
                                            cheers, bdream

                                            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
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 3 / 6
                                            • 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