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 93.7k 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

      @sdetweil said in YAPi0 Installer Stretch Lite:

      Does it open browser?

      pi@RasPiZeroW:~ $ ~/MagicMirror/node_modules/electron/dist/electron
      Speicherzugriffsfehler
      pi@RasPiZeroW:~ $ cd ~/MagicMirror/node_modules/electron/dist/electron
      -bash: cd: /home/pi/MagicMirror/node_modules/electron/dist/electron: Ist kein Verzeichnis
      pi@RasPiZeroW:~ $ cd ~/MagicMirror/node_modules/electron/dist/
      pi@RasPiZeroW:~/MagicMirror/node_modules/electron/dist $ ls -la
      insgesamt 107480
      drwxr-xr-x 4 pi pi     4096 Okt 19 10:56 .
      drwxr-xr-x 4 pi pi     4096 Okt 19 10:56 ..
      -rw-r--r-- 1 pi pi   145945 Okt 19 10:55 chrome_100_percent.pak
      -rw-r--r-- 1 pi pi   209147 Okt 19 10:55 chrome_200_percent.pak
      -rwxr-xr-x 1 pi pi  4202140 Okt 19 10:56 chrome-sandbox
      -rwxr-xr-x 1 pi pi 74648480 Okt 19 10:55 electron
      -rw-r--r-- 1 pi pi 10410272 Okt 19 10:55 icudtl.dat
      -rwxr-xr-x 1 pi pi   157372 Okt 19 10:55 libEGL.so
      -rwxr-xr-x 1 pi pi  1949660 Okt 19 10:55 libffmpeg.so
      -rwxr-xr-x 1 pi pi  4883208 Okt 19 10:55 libGLESv2.so
      -rw-r--r-- 1 pi pi     1060 Okt 19 10:54 LICENSE
      -rw-r--r-- 1 pi pi  3961766 Okt 19 10:54 LICENSES.chromium.html
      drwxr-xr-x 2 pi pi     4096 Okt 19 10:56 locales
      -rw-r--r-- 1 pi pi    83237 Okt 19 10:55 natives_blob.bin
      drwxr-xr-x 2 pi pi     4096 Okt 19 10:55 resources
      -rw-r--r-- 1 pi pi  8471329 Okt 19 10:54 resources.pak
      -rw-r--r-- 1 pi pi   275792 Okt 19 10:55 snapshot_blob.bin
      -rw-r--r-- 1 pi pi   608820 Okt 19 10:56 v8_context_snapshot.bin
      -rw-r--r-- 1 pi pi        6 Okt 19 10:55 version
      
      

      do I need to do eny else as ?

      ~/MagicMirror/node_modules/electron/dist/electron
      

      –
      cheers, bdream

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

        @bdream said in YAPi0 Installer Stretch Lite:

        no… I am researching the cause…

        thanks

        does

        cd ~/MagicMirror
        node serveronly 
        

        then use another browser to open the url shown
        work?

        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

          @sdetweil said in YAPi0 Installer Stretch Lite:

          then use another browser to open the url shown

          that means, I need to install another browser?
          Have you advise please?

          –
          cheers, bdream

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

            @bdream there is a browser installed… its that globe on the task bar… Chrome also is a nice browser

            i wonder if this is a Raspian Buster problem…

            I have a pi 0 w coming today.

            you and another user are having the same trouble. both have armv6l devices and are using Buster.

            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
              last edited by

              I see some debug for the current problem

              do

              cd ~/MagicMirror
              export ELECTRON_ENABLE_LOGGING=true
              export ELECTRON_ENABLE_STACK_DUMPING=true
              ~/MagicMirror/node_modules/electron/dist/electron
              

              thanks

              Sam

              How to add modules

              learning how to use browser developers window for css changes

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

                @bdream also can u do

                ldd --version

                thanks

                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

                  @sdetweil said in YAPi0 Installer Stretch Lite:

                  you and another user are having the same trouble. both have armv6l devices and are using Buster.

                  But I installed the armv7l :dizzy_face:

                  @sdetweil said in YAPi0 Installer Stretch Lite:

                  npm install --arch=armv7l electron@latest

                  @sdetweil said in YAPi0 Installer Stretch Lite:

                  there is a browser installed… its that globe on the task bar… Chrome also is a nice browser

                  Yes, there is the globe…
                  …and it success. localhost:8080 directs to MagicMirror² within all the standard modules :smiling_face:

                  Anyway I do the debucg stuff:
                  :backhand_index_pointing_up_light_skin_tone: um.
                  I had to ctrl-c the action (on ssh console) while the browser (on the pi itself) already run MagicMirror

                  pi@RasPiZeroW:~/MagicMirror $ node serveronly
                  Starting MagicMirror: v2.9.0
                  Loading config ...
                  Loading module helpers ...
                  No helper found for module: alert.
                  Initializing new module helper ...
                  Module helper loaded: updatenotification
                  No helper found for module: clock.
                  Initializing new module helper ...
                  Module helper loaded: calendar
                  No helper found for module: compliments.
                  No helper found for module: currentweather.
                  No helper found for module: weatherforecast.
                  Initializing new module helper ...
                  Module helper loaded: newsfeed
                  All module helpers loaded.
                  Starting server on port 8080 ...
                  Server started ...
                  Connecting socket for: updatenotification
                  Connecting socket for: calendar
                  Starting node helper for: calendar
                  Connecting socket for: newsfeed
                  Starting module: newsfeed
                  Sockets connected & modules started ...
                  
                  Ready to go! Please point your browser to: http://localhost:8080
                  Create new calendar fetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000
                  Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
                  
                  ^C[SIGINT] Received. Shutting down server...
                  Stopping module helper: updatenotification
                  Stopping module helper: calendar
                  Stopping module helper: newsfeed
                  
                  
                  cd ~/MagicMirror
                  export ELECTRON_ENABLE_LOGGING=true
                  export ELECTRON_ENABLE_STACK_DUMPING=true
                  ~/MagicMirror/node_modules/electron/dist/electron
                  

                  I got an storage acess error here.
                  just reboot and again storage acess error.

                  If I’m right, I can config the system running with standard browser.
                  Can you tell me what exactly I need to do therefor?
                  …and MagicMirror² run in this browser (It’s the Chromium) but not screenfilling.

                  And, would it make sense deinstalling Electron then? How? :face_screaming_in_fear:

                  Ohh, no. It sais localhost declined access :( why that is was running before?
                  Any about this configurations?

                  export ELECTRON_ENABLE_LOGGING=true
                  export ELECTRON_ENABLE_STACK_DUMPING=true
                  

                  –
                  cheers, bdream

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

                    @bdream no reason to uninstall electron…

                    to start mm using server only and then chrome

                    edit ~/MagicMirror/run-start.sh

                    comment out

                    #electron js/electron.js $1
                    

                    then add

                    # this starts the server in the background
                    node serveronly &
                    # waits 10 seconds -- you may need to increase this time
                    sleep 10
                    #you should test this from a command prompt window
                    chromium-browser -kiosk -start_maximized http://localhost:8080
                    

                    then pm2 start MagicMirror will launch this file.

                    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

                      @sdetweil said in YAPi0 Installer Stretch Lite:

                      #you should test this from a command prompt window

                      pi@RasPiZeroW:~/MagicMirror $ node serveronly &
                      [1] 3121
                      pi@RasPiZeroW:~/MagicMirror $ chromium-browser -kiosk -start_maximized http://localhost:8080
                      [3127:3127:1020/181325.903037:ERROR:browser_main_loop.cc(596)] Failed to put Xlib into threaded mode.
                      
                      (chromium-browser:3127): Gtk-WARNING **: 18:13:26.114: cannot open display:
                      pi@RasPiZeroW:~/MagicMirror $ Starting MagicMirror: v2.9.0
                      Loading config ...
                      Loading module helpers ...
                      No helper found for module: alert.
                      Initializing new module helper ...
                      Module helper loaded: updatenotification
                      No helper found for module: clock.
                      Initializing new module helper ...
                      Module helper loaded: calendar
                      No helper found for module: compliments.
                      No helper found for module: currentweather.
                      No helper found for module: weatherforecast.
                      Initializing new module helper ...
                      Module helper loaded: newsfeed
                      All module helpers loaded.
                      Starting server on port 8080 ...
                      Server started ...
                      Connecting socket for: updatenotification
                      Connecting socket for: calendar
                      Starting node helper for: calendar
                      Connecting socket for: newsfeed
                      Starting module: newsfeed
                      Sockets connected & modules started ...
                      
                      Ready to go! Please point your browser to: http://localhost:8080
                      
                      

                      –
                      cheers, bdream

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

                        @bdream
                        add

                        export DISPLAY=:0
                        

                        in front of

                        chromium...
                        

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 6
                        • 11
                        • 12
                        • 4 / 12
                        • 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