MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. hclaus
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.
    H
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 7
    • Best 0
    • Controversial 0
    • Groups 0

    hclaus

    @hclaus

    0
    Reputation
    1
    Profile views
    7
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    hclaus Unfollow Follow

    Latest posts made by hclaus

    • MMM-Selfieshot: fswebcam not working anymore

      Dear community, dear @MMRIZE,

      it is a pity but with an update to MM 2.18 and Raspbian Buster, it seems that MMM-Selfieshot doesn’t work anymore. Similar to our last bug search, I tried to manually call fswebcam, but the following
      error shows:

      pi@raspberrypi: ~$ fswebcam
      --- Opening /dev/video0...
      stat: No such file or directory
      

      I already tried to fix it by reinstalling fswebcam, but this didn’t help.

      Does anyone have an idea to get it running again?

      Thanks,
      Hendrik

      Here is the old bug search as a reference:
      https://forum.magicmirror.builders/topic/15925/mmm-selfieshot-high-resolution-for-selfie

      posted in Troubleshooting
      H
      hclaus
    • RE: "node-abi" problem with MM v2.18.0

      Thank you for this cross reference! I will follow the instructions in the other thread then and - in case - post further questions there.

      Cheers folks!

      posted in Troubleshooting
      H
      hclaus
    • "node-abi" problem with MM v2.18.0

      Hello everyone,

      after updating to MagicMirror v2.18.0, a couple of modules show some errors related with “node-abi”. I already did a fresh installation of MagicMirror and node.js but the problems persist. A separate installation of node-abi in the module folder and the main MagicMirror-folder (via command “npm i node-abi”) did not solve the issues, either.

      Can someone help me, how to fix it? Thank you in advance!

      The following terminal outputs are shown, when I try to install the module “MMM-Buttons”:

      pi@raspberrypi:~/MagicMirror $ cd ~/MagicMirror/modules # adapt directory if you are using a different one
      pi@raspberrypi:~/MagicMirror/modules $ git clone https://github.com/Jopyth/MMM-Buttons.git
      Cloning into 'MMM-Buttons'...
      remote: Enumerating objects: 54, done.
      remote: Total 54 (delta 0), reused 0 (delta 0), pack-reused 54
      Unpacking objects: 100% (54/54), done.
      pi@raspberrypi:~/MagicMirror/modules $ cd MMM-Buttons
      pi@raspberrypi:~/MagicMirror/modules/MMM-Buttons $ npm install
      npm WARN deprecated har-validator@5.1.5: this library is no longer supported
      npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
      npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
      
      > Magic-Mirror-Module-Buttons@1.0.0 postinstall
      > node_modules/.bin/electron-rebuild -e ../../node_modules/electron
      
      ⠋ Searching dependency tree
      An unhandled error occurred inside electron-rebuild
      Could not detect abi for version 16.0.5 and runtime electron.  Updating "node-abi" might help solve this issue if it is a new release of electron
      
      Error: Could not detect abi for version 16.0.5 and runtime electron.  Updating "node-abi" might help solve this issue if it is a new release of electron
          at Object.getAbi (/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/node-abi/index.js:36:9)
          at new Rebuilder (/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/electron-rebuild/lib/src/rebuild.js:126:48)
          at rebuildWithOptions (/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/electron-rebuild/lib/src/rebuild.js:404:23)
          at Object.doRebuild [as rebuild] (/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/electron-rebuild/lib/src/rebuild.js:427:16)
          at /home/pi/MagicMirror/modules/MMM-Buttons/node_modules/electron-rebuild/lib/src/cli.js:124:33
          at Generator.next (<anonymous>)
          at fulfilled (/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/electron-rebuild/lib/src/cli.js:6:58)
      npm ERR! code 255
      npm ERR! path /home/pi/MagicMirror/modules/MMM-Buttons
      npm ERR! command failed
      npm ERR! command sh -c node_modules/.bin/electron-rebuild -e ../../node_modules/electron
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /home/pi/.npm/_logs/2022-01-14T21_22_15_425Z-debug.log
      
      
      posted in Troubleshooting
      H
      hclaus
    • RE: MMM-Selfieshot: High resolution for selfie

      @mmrize

      Haha, but your original intentions were good and are now fully applied 😉

      It works now (with the native Raspi Camera v2.1) and I can now happily integrate the selfie function into my mirror. Thank you so much for looking deeper into it!! BrianHepler seems to have left this forum and does not react on GitHub issues anymore, so you were the last resort.

      posted in Troubleshooting
      H
      hclaus
    • RE: MMM-Selfieshot: High resolution for selfie

      @mmrize

      Thank you so much that you try tackling this issue together!!

      I tested both paths as recommended:

      1. fswebcam --resolution 3280x2464
        This gives me a wonderful picture at the required resolution. It is above 2MB so I didn’t upload it.

      2. Via node-webcam.js
        This doesn’t shoot a picture (which should be in the “/home/pi”-directory, right?). The following outputs appear in the console, which leave me wondering what I should do:

      pi@raspberrypi:~/MagicMirror/modules/MMM-Selfieshot/node_modules/node-webcam/bin $ node ./node-webcam.js --w 3280 --h 2464 --l ~/picture.jpg
      Options
      Main {
        width: [ [Function: Number], 1280 ],
        height: [ [Function: Number], 720 ],
        delay: [ [Function: Number], 0 ],
        device: [ [Function: String], false ],
        quality: [ [Function: Number], 100 ],
        output: [ [Function: String], 'jpeg' ],
        verbose: [ [Function: Boolean], true ],
        help: [ [Function: Boolean], false ],
        version: [ [Function: Boolean], false ],
        greyscale: [ [Function: Boolean], false ],
        rotation: [ [Function: String], false ],
        topBanner: [ [Function: Boolean], false ],
        bottomBanner: [ [Function: Boolean], false ],
        skip: [ [Function: Number], 0 ],
        location: <ref *2> {
          resolve: [Function: resolve],
          normalize: [Function: normalize],
          isAbsolute: [Function: isAbsolute],
          join: [Function: join],
          relative: [Function: relative],
          toNamespacedPath: [Function: toNamespacedPath],
          dirname: [Function: dirname],
          basename: [Function: basename],
          extname: [Function: extname],
          format: [Function: bound _format],
          parse: [Function: parse],
          sep: '/',
          delimiter: ':',
          win32: <ref *1> {
            resolve: [Function: resolve],
            normalize: [Function: normalize],
            isAbsolute: [Function: isAbsolute],
            join: [Function: join],
            relative: [Function: relative],
            toNamespacedPath: [Function: toNamespacedPath],
            dirname: [Function: dirname],
            basename: [Function: basename],
            extname: [Function: extname],
            format: [Function: bound _format],
            parse: [Function: parse],
            sep: '\\',
            delimiter: ';',
            win32: [Circular *1],
            posix: [Circular *2],
            _makeLong: [Function: toNamespacedPath]
          },
          posix: [Circular *2],
          _makeLong: [Function: toNamespacedPath]
        }
      }
      Shorthand {
        w: [ '--width' ],
        h: [ '--help' ],
        D: [ '--delay' ],
        d: [ '--device' ],
        q: [ '--quality' ],
        out: [ '--output' ],
        v: [ '--version' ],
        g: [ '--greyscale' ],
        r: [ '--rotation' ],
        l: [ '--location' ],
        S: [ '--skip' ]
      }
      
      
      posted in Troubleshooting
      H
      hclaus
    • MMM-Selfieshot: High resolution for selfie

      Dear fellow mirror builders,

      for my recent mirror project, I would like to include a selfie function in order to document my continuous aging process above 30 😉

      For my prototype, I already use MMM-Selfieshot but I have an issue with setting up the image resolution: I cannot use the full resolution of my raspi camera module (v2.1) which would have a native resolution of 3280 × 2464 pixels. If I set the values of “width” and “height” to 3280x2464, the module always takes pictures at 1280x720. I first thought that the module won’t go beyond 1080p resolution of my display (1920x1080) but this resolution is also not possible and remains at 1280x720.

      Does anyone know, whether 1280x720 is the maximum allowed resolution of MMM-Selfieshot (the github documentation doesn’t clarify either… ) or if there is another way to use the full camera resolution (while still being able to have the “result picture” shown after the taken shot)?

      If you know other solutions for selfie shots beside MMM-Selfieshot, please let me know as well.

      Best from Switzerland,
      Hendrik

      posted in Troubleshooting
      H
      hclaus
    • RE: Second Calendar is offset/ Indented

      Hello everyone, I have the same issue as @spoonek and don’t have a custom.css yet. It would be awesome to elaborate on potential solutions together! 💪

      posted in Troubleshooting
      H
      hclaus