• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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-usonic Problems

Scheduled Pinned Locked Moved Unsolved Troubleshooting
24 Posts 2 Posters 5.3k 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.
  • S Offline
    sdetweil @sgarg15
    last edited by Mar 29, 2020, 12:05 AM

    @sgarg15 maybe can look tomorrow, not home now

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    S 1 Reply Last reply Mar 29, 2020, 6:15 AM Reply Quote 0
    • S Offline
      sdetweil @sdetweil
      last edited by Mar 29, 2020, 6:15 AM

      @sdetweil that module (mmm-usonic) is not for magic mirror, but a library for a potential module to use to talk to the hardware…

      sadly has same labeling and same verbiage (module)

      he wrote MMM-Swipe, which uses his library (mmm-usonic)

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      S 1 Reply Last reply Mar 29, 2020, 6:21 AM Reply Quote 0
      • S Offline
        sdetweil @sdetweil
        last edited by Mar 29, 2020, 6:21 AM

        @sgarg15 to fix the electron rebuild problem,

        the package.json file in MMM-Swipe and change

        this

            "postinstall": "node_modules/.bin/electron-rebuild -e ../../node_modules/electron-prebuilt"
        

        to this

            "postinstall": "node_modules/.bin/electron-rebuild"
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        S 1 Reply Last reply Mar 29, 2020, 8:09 PM Reply Quote 0
        • S Offline
          sgarg15 @sdetweil
          last edited by sgarg15 Mar 29, 2020, 8:10 PM Mar 29, 2020, 8:09 PM

          @sdetweil So the install worked properly but then when i ran sudo npm start it gave this error

          [1580:0329/130746.224199:FATAL:electron_main_delegate.cc(211)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
          

          Any idea what that means?

          S 2 Replies Last reply Mar 29, 2020, 8:10 PM Reply Quote 0
          • S Offline
            sdetweil @sgarg15
            last edited by Mar 29, 2020, 8:10 PM

            @sgarg15 what version of electron are u running?

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            S 1 Reply Last reply Mar 29, 2020, 8:12 PM Reply Quote 0
            • S Offline
              sdetweil @sgarg15
              last edited by Mar 29, 2020, 8:11 PM

              @sgarg15 do NOT use sudo, just npm start

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • S Offline
                sgarg15 @sdetweil
                last edited by Mar 29, 2020, 8:12 PM

                @sdetweil I am pretty sure i updated the electron yesterday using npm install --save-dev electron@latest

                S 1 Reply Last reply Mar 29, 2020, 8:12 PM Reply Quote 0
                • S Offline
                  sdetweil @sgarg15
                  last edited by Mar 29, 2020, 8:12 PM

                  @sgarg15 do not use sudo

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  S 1 Reply Last reply Mar 29, 2020, 8:15 PM Reply Quote 0
                  • S Offline
                    sgarg15 @sdetweil
                    last edited by sgarg15 Mar 29, 2020, 8:18 PM Mar 29, 2020, 8:15 PM

                    @sdetweil Oh ok i was just following the instruction, so i used npm start and now it has another error

                    [13:13:56.836] [LOG]    Error: unknown hardware: "BCM2835"
                        at /home/pi/MagicMirror/modules/MMM-Swipe/node_modules/mmm-gpio/lib/gpio.js:34:29
                        at ChildProcess.exithandler (child_process.js:299:7)
                        at ChildProcess.emit (events.js:210:5)
                        at maybeClose (internal/child_process.js:1021:16)
                        at Socket.<anonymous> (internal/child_process.js:430:11)
                        at Socket.emit (events.js:210:5)
                        at Pipe.<anonymous> (net.js:658:12)
                    [13:13:56.862] [LOG]    Error: unknown hardware: "BCM2835"
                        at /home/pi/MagicMirror/modules/MMM-Swipe/node_modules/mmm-usonic/lib/usonic.js:34:29
                        at ChildProcess.exithandler (child_process.js:299:7)
                        at ChildProcess.emit (events.js:210:5)
                        at maybeClose (internal/child_process.js:1021:16)
                        at Socket.<anonymous> (internal/child_process.js:430:11)
                        at Socket.emit (events.js:210:5)
                        at Pipe.<anonymous> (net.js:658:12)
                    

                    Any Ideas?

                    S 1 Reply Last reply Mar 29, 2020, 8:20 PM Reply Quote 0
                    • S Offline
                      sdetweil @sgarg15
                      last edited by Mar 29, 2020, 8:20 PM

                      @sgarg15 something to do with the MMM-Swipe config info

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      S 1 Reply Last reply Mar 29, 2020, 8:48 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      2 / 3
                      • First post
                        11/24
                        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