• 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
  1. Home
  2. Medo
  3. Posts
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Offline
  • Profile
  • Following 0
  • Followers 0
  • Topics 7
  • Posts 44
  • Groups 0

Posts

Recent Best Controversial
  • MMM-Wunderground: Weather alert not disappearing...

    Hi!
    I wonder, why this message (yellow text) is not cleared.

    0_1488222077128_Bildschirmfoto vom 2017-02-27 19:51:24.png

    I do have this for about 5 days now. Reboot will not help.

    Can someone give me a hint, how to clear this?

    Besides: Its pretty warm right now and no “Glätte” (ice) nor “Wind” (wind) can be expected. Its clearly an old message ;-)

    Thanx!

    posted in Troubleshooting
    M
    Medo
    Feb 27, 2017, 7:01 PM
  • RE: VoiceControl module

    Searching for endless hours now, but no solution in sight…

    Im trying to trigger the mm-music-player module with this voicecontrol module (i say “MUSIK ON” and the mm-music-player starts a certain mp3 file). But no luck…

    My microfone can record audio (tested with arecord …) …

    (note: i had to change my “sudo nano /usr/share/alsa/alsa.conf” and the entries “defaults.ctl.card 1” and “defaults.pcm.card 1” from “0” to “1” to get my USB microphone working/recording)

    …and my mp3 soundfile can be played (tested with “omxplayer -o hdmi …”) - and also if i click on the mm-music-player-module…

    pm2 logs mm (after a reboot) shows this:

    [STREAMING] Now streaming realtime logs for [mm] process
    0|mm | ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
    0|mm | ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
    0|mm | ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
    0|mm | ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
    0|mm | ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
    0|mm | ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
    0|mm | ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
    0|mm | ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
    0|mm | ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
    0|mm | ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
    0|mm | ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused
    0|mm | ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused
    0|mm | ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
    0|mm | Cannot connect to server socket err = No such file or directory
    0|mm | Cannot connect to server request channel
    0|mm | jack server is not running or cannot be started
    0|mm | Expression ‘paInvalidSampleRate’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 2048
    0|mm | Expression ‘PaAlsaStreamComponent_InitialConfigure( &self->capture, inParams, self->primeBuffers, hwParamsCapture, &realSr )’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 2719
    0|mm | Expression ‘PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 2843
    0|mm | Traceback (most recent call last):
    0|mm | File “./modules/voicecontrol/snowboy/kws-multiple.py”, line 34, in
    0|mm | detector = snowboydecoder.HotwordDetector(models, sensitivity=sensitivity)
    0|mm | File “/home/pi/MagicMirror/modules/voicecontrol/snowboy/snowboydecoder.py”, line 115, in init
    0|mm | stream_callback=audio_callback)
    0|mm | File “/usr/lib/python2.7/dist-packages/pyaudio.py”, line 747, in open
    0|mm | stream = Stream(self, *args, **kwargs)
    0|mm | File “/usr/lib/python2.7/dist-packages/pyaudio.py”, line 442, in init
    0|mm | self._stream = pa.open(**arguments)
    0|mm | IOError: [Errno Invalid sample rate] -9997

    I…

    • installed the voicecontrol and mm-music-player
    • double checked the code
    • changed the mp3 file with another
    • implemented the code like “GinSeng” stated some lines above.
    • created the hotwords over at snowboy and copied them to “/MagicMirror”, “voicecontrol” and “mm-music-player” directories
    • …
      But im not able to find the problem…

    Any suggestions?

    Thanks a lot for your help…

    posted in Utilities
    M
    Medo
    Jan 5, 2017, 9:36 PM
  • RE: MMM-PIR-Sensor - White Screen

    @zichao92
    What i also did, was a complete reinstall of the PIR-Sensor

    I followed the steps, “Banglee” described some lines above:

    ok so lets go step by step:
    cd ~/MagicMirror/modules/

    now we will remove the PIR folder:
    rm -rf MMM-PIR-Sensor

    and from here, we’re going to reinstall the MMM-PIR-Sensor modul:

    git clone https://github.com/paviro/MMM-PIR-Sensor.git
    cd MMM-PIR-Sensor
    

    run the following cmd here:
    npm install and wait, this can take a few minutes.

    Now you’ll have to add pi to gpio
    sudo useradd -g pi gpio

    and reboot your Raspi:
    sudo reboot

    Sorry, no further ideas so far (maybe you can open a PIR-Sensor troubleshooting thread)?


    Note from admin: Please use Markdown on code snippets for easier reading!

    posted in Troubleshooting
    M
    Medo
    Jan 2, 2017, 11:39 AM
  • RE: MMM-PIR-Sensor - White Screen

    @zichao92

    First things that come to my mind:

    • maybe a “sudo” is missing? Like sudo npm install --unsafe-perm?
    • are you executing this from the MMM-PIR-Sensor directory ?
    posted in Troubleshooting
    M
    Medo
    Jan 2, 2017, 10:22 AM
  • RE: MMM-PIR-Sensor - White Screen

    Also had the “white screen” problem. I installed a complete new Raspian (with PIXEL), a new MagicMirror - including node.js in version 7.3.0
    As soon as i tried to get the MMM-Pir-Sensor working, it failed (with an white screen). Heres, how i solved my problem.

    At first: Theres no need to downgrade the node (i tried this too, and had no luck)

    I figured out, that my problem was an MMM-PIR-Sensor installation error i did not recognized at the beginning. When i tried “npm install” i got something like this (an error):

    "gyp WARN EACCES user “root” does not have permission to access the dev dir “/root/.node-gyp/5.12.0”

    I figured out, that there are two ways of solving this:

    1. CHOWN the directory the install procedure tries to install
    2. use “npm install --unsafe-perm”

    Im aware that option two is not the “elegant” way, but it solved my problem (and i did not have to change directory permissions).

    I removed all files and git the files again (like described some lines above from banglee) and then just use “npm install --unsafe-perm”

    The “–unsafe-perm” option was the key to my problem…

    posted in Troubleshooting
    M
    Medo
    Dec 29, 2016, 9:55 AM
  • RE: News feed refresh?

    Same problem here. My newsfeed works for some time (can not say how long) and then stops receiving new news…

    posted in Troubleshooting
    M
    Medo
    Nov 29, 2016, 8:23 PM
  • RE: Newsfeed only loads once, then stops udating...

    @lolobyte

    Try to look at the original files which came in the downloaded package. I also had problems and realized later, that i had forgotten some characters…

    In your case, i think you have to put each title and url in parentheses. Look at my example from above and also dont miss commas…

    Something like this:

                                   {
                                    title: "Süddeutsche Zeitung",
                                    url: "http://rss.sueddeutsche.de/rss/Topthemen",
                                    },
                                    title: "Tagesschau",
                                    url: "http://www.tagesschau.de/xml/rss2",
                                    "http://www.stimme.de/storage/rss/rss/regioticker/regioticker.xml",
                                     }
    

    As i mentioned above - take the original files as reference, go throug it character by character and you will get it some trys later…

    posted in Troubleshooting
    M
    Medo
    Nov 20, 2016, 10:13 AM
  • RE: Bathroom mirror and humidity

    @Stellanova
    I build a bathroom mirror and its doing well (but installed it just a few days before). See my thread: link
    I read a lot about humidity and elektronics, but could not get a valid result if a monitor would get damaged or not.

    I think it also depends a bit in how your bathroom is constructed and how humidity is handled. My bathroom is based on chalk walls which absorb nearly 85% of the fog i produce when i shower.

    The monitor i used for my mirror, has also no air holes at the back. I think this will also prevent some damage…

    posted in Hardware
    M
    Medo
    Nov 9, 2016, 7:18 AM
  • RE: Newsfeed only loads once, then stops udating...

    Managed to get it working again. Cant say, what went wrong before. Thread can be closed…

    posted in Troubleshooting
    M
    Medo
    Nov 9, 2016, 7:03 AM
  • RE: Medos Bathroom Mirror

    @Knox

    Yes, my wife admitted the mirror with "if you like to play with your new toy…and i can still use it as an mirror - its okay for me " rolleyes

    :-D

    posted in Show your Mirror
    M
    Medo
    Nov 7, 2016, 6:13 PM
  • 1 / 1
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