MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. James
    J
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 16
    • Best 2
    • Controversial 1
    • Groups 0

    James

    @James

    1
    Reputation
    1038
    Profile views
    16
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    James Unfollow Follow

    Best posts made by James

    • RE: Camera module

      0_1473676523378_iOS_fly_54.jpeg

      0_1473676541747_iOS_fly_88.jpeg

      0_1473676556322_iOS_fly_41.jpeg

      0_1473676568707_iOS_fly_4.jpeg

      posted in Utilities
      J
      James
    • RE: MMM-PIR-Sensor - White Screen

      @paviro maybe 99% sure. FYI what I did yesterday as follows:

      1. Format & rewrite the sd card,
      2. Boot and run sudo apt-get update & upgrade & reboot,
      3. Install MagicMirror2 with the bash command,
      4. git MMM-PIR-Sensor in modules folder and run npm install in MMM-PIR-Sensor folder as well as useradd command,
      5. Add code in config.js with
                      {
                              module: 'MMM-PIR-Sensor',
                              config: {
                                     sensorPIN: 4
                              }
                      },
      
      1. After rebooting, run MM with pm2 and shows “White Screen”, I checked the pm2 error log shows something like “Expected 49, got 48” as before,
      2. Run npm rebuild --runtime=electron --target=1.3.4 --disturl=https://atom.io/download/atom-shell --abi=49 in the MMM-PIR-Sensor folder,
      3. Run pm2 restart mm and it works.

      I found there is another issue when a rebooting finished and MM runs automaticly with pm2, MMM-PIR-Sensor will not work(screen always on) until the sensor captured a motion.

      posted in Troubleshooting
      J
      James
    • RE: MMM-PIR-Sensor - White Screen

      The same issue with me, even after a totally re-installation.
      @paviro Could you do us a favor to compatible with and get the module work?
      Thank you.

      posted in Troubleshooting
      J
      James

    Latest posts made by James

    • RE: Camera module

      0_1473756248829_iOS_fly_93.jpeg

      posted in Utilities
      J
      James
    • RE: Camera module

      @alexyak bug report:

      1. pm2 won’t restart MM after a reboot and press Alt+F4 for the first time. (This occurs randomly, I tested for several times even if not the first time to press Alt+F4 after a reboot)
      2. I need to run “pm2 restart mm” to get MM restart again.
      3. After this sometimes the modules not work. I’m not sure which one is. camera or voicecontrol? Errors ouputs as follows:
      Expression 'r' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2097
      Expression 'PaAlsaStreamComponent_FinishConfigure( &self->capture, hwParamsCapture, inParams, self->primeBuffers, realSr, inputLatency )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2731
      Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2843
      Traceback (most recent call last):
        File "./modules/voicecontrol/snowboy/kws-multiple.py", line 34, in <module>
          detector = snowboydecoder.HotwordDetector(models, sensitivity=sensitivity)
        File "/home/pi/MagicMirror/modules/voicecontrol/snowboy/snowboydecoder.py", line 115, in __init__
          stream_callback=audio_callback)
        File "/usr/lib/python2.7/dist-packages/pyaudio.py", line 747, in open
          stream = Stream(self, *args, **kwargs)
        File "/usr/lib/python2.7/dist-packages/pyaudio.py", line 442, in __init__
          self._stream = pa.open(**arguments)
      IOError: [Errno Unanticipated host error] -9999
      
      1. Finally, I received Selfie, that the email & passward need to be filled in without “<>”. You may change the sample config code in the readme.md as well 🙂

      Thanks,

      posted in Utilities
      J
      James
    • RE: Camera module

      @alexyak Hotmail. And one thing I need to confirm with you is that “email & password” are filled in between “‘’” or “<>”?

      posted in Utilities
      J
      James
    • RE: Camera module

      Between the above two error codes, there are several similar code with different “PCM surroundNo.” end (21, 40, 41, 50, 51, 71) like:

      ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
      ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
      ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
      ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround21
      
      posted in Utilities
      J
      James
    • RE: Camera module
      ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
      ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
      ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
      ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM iec958
      ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
      ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
      ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
      ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM spdif
      ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
      ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
      ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
      ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM spdif
      ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
      ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
      ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
      ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
      ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
      ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
      ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused
      
      ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused
      
      Cannot connect to server socket err = No such file or directory
      Cannot connect to server request channel
      jack server is not running or cannot be started
      
      posted in Utilities
      J
      James
    • RE: Camera module

      @alexyak

      ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.front.0:CARD=0'
      ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
      ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
      ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM front
      ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
      ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
      ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
      ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
      ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
      ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
      ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround21
      
      posted in Utilities
      J
      James
    • RE: Camera module

      @paviro no permission for me to upload a file, I will try inline

      posted in Utilities
      J
      James
    • RE: Camera module

      @alexyak @paviro when I wanna to post the errors in mm-error-0.log, shows “Post content was flagged as spam by Akismet.com”.

      posted in Utilities
      J
      James
    • RE: Camera module

      0_1473676523378_iOS_fly_54.jpeg

      0_1473676541747_iOS_fly_88.jpeg

      0_1473676556322_iOS_fly_41.jpeg

      0_1473676568707_iOS_fly_4.jpeg

      posted in Utilities
      J
      James
    • RE: Camera module

      @alexyak I installed the both modules and here’s some issue need to be solved.

      1. In your readme.md of camera, the sample config code need to add the missing “{}” after config:
                      {
                              module: 'camera',
                              position: 'upper_third',
                              config: {
                                      selfieInterval: 3,  // Time interval in seconds before the photo will be taken.
                                      emailConfig: {
                                              service: 'Hotmail', // Email provider to use to send email with a photo.
                                              auth: {
                                                      user: '<name@email.com>', // Your email account
                                                      pass: '<password>'        // Your password for email account
                                              }
                                      }
                              }
                      },
      
      1. The voicecontrol module run well, it shows tips in the screen and could recognize my voice.
      2. The three voice command works, I didn’t receive any email and I need to say “hide camera” to let the countdown disappear.
      3. Another issue is if I don’t enter some email info, the module seems to be stacked on the screen.
      4. Is there a place I could find the selfie pics in Pi?

      Thanks for you and your great modules.

      posted in Utilities
      J
      James