MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. shbatm
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    S
    Offline
    • Profile
    • Following 0
    • Followers 3
    • Topics 12
    • Posts 208
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: [octomirror-module] Monitor & Control an OctoPrint 3D Printer Server

      @michael24h @citizendevpi Please update the module to the latest version and give it a try.

      Short version: OctoPrint changed the way the API login works.
      Long version: The new bundled OctoPrint plugin ForceLogin now requires the API to get a session ID and send it back to the socket before it will send any detailed messages. Detailed here and here.

      posted in Productivity
      S
      shbatm
    • RE: Clean installation... fails left and right

      @devinhedge said in Clean installation... fails left and right:

      Install Node.js from source

      The Nodesource install scripts will save you some time/steps:

      curl -sL https://deb.nodesource.com/setup_10.x | bash -
      apt-get install -y nodejs
      

      It looks like everything installed correctly. As has been said before:

      @michmich said in Clean installation... fails left and right:

      As others have said, most of your problems are because you use Raspbian Lite.

      The electron-quick-start app tries to install electron v4.0, which as I said above, does not work on the latest version of Raspbian–you need to use v3.0.13 (npm i electron@3.0.13).

      Also, are you trying to run electron from the Pi’s desktop or SSH? If you’re running it from SSH you need to run it with DISPLAY=:0 npm start

      posted in Bug Hunt
      S
      shbatm
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @djuscha said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      both streams are on stop and error messages

      This looks like the same error I got when I tried to use omxplayer with the OpenGL driver enabled in raspi-config. You’ll have to use the legacy driver if you want to use omxplayer on the most recent version of Raspbian.

      EDIT 10-Jan-19: Use the latest develop branch version. omxplayer requires the --no-osd flag to work properly with the OpenGL (Fake KMS) driver.

      posted in Utilities
      S
      shbatm
    • RE: [MMM-AlexaOnOff] Simple Mirror Control from External Home Assistant (Alexa/Google Home/HASS.io)

      @richland007 – So I just noticed something interesting: I tried adding multiple devices, and running “Discover my devices” from my echo. Alexa said she didn’t find any new devices, but when I looked in the device list on alexa.amazon.com, she had already found the other devices. Maybe try deleting all of the Wemo devices on your Alexa app and then retrying discovery?

      posted in System
      S
      shbatm
    • RE: [MMM-AlexaOnOff] Simple Mirror Control from External Home Assistant (Alexa/Google Home/HASS.io)

      @djsunrise19 said in [MMM-AlexaOnOff] Simple Mirror Control from External Home Assistant (Alexa/Google Home/HASS.io):

      Thanks. I’m using an echo dot 3rd generation. Sadly, I have to wait. There seems to be no problems with your module / the mirror / network.

      I’d suggest posting a comment on the fauxmojs issue–maybe it will prompt them that more people are waiting for a fix. It looks like the python version has been fixed, so I’m sure it’s just a matter of them getting around to it.

      posted in System
      S
      shbatm
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @cr4z33 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      With omxplayer stream switching is almost OK if it wasn’t that it doesn’t select the wanted stream.

      I can’t replicate this issue. Directly sending notifications: of the form notification: "RTSP-PLAY", payload: "streamX" works as expected and switches to the correct stream when using autoStart: false, rotateStreams: true, rotateStreamTimeout: 0.

      How many streams do you have again? Is it less than 10?

      @cr4z33 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      With vlc it’s a mess as multiple streams ALWAYS start at the same time after a voice command.

      I think this is related to the fact that VLC doesn’t close the streams automatically when switching, it puts the window in the background until it times out, then it closes. Try adding a shutdownDelay: 0 to your module config to make the VLC stream close immediately on hiding. Same thing with omxplayer though, switching appears to work as expected on my end.

      Please also make sure you have the latest version of PM2: sudo npm install -g pm2

      posted in Utilities
      S
      shbatm
    • RE: Clean installation... fails left and right

      @dazza120

      cat ~/MagicMirror/node_modules/electron/package.json | grep '"version":'
      

      Upgrade with:

      cd ~/MagicMirror/
      npm install electron@3.0.13
      
      posted in Bug Hunt
      S
      shbatm
    • RE: [MMM-AlexaOnOff] Simple Mirror Control from External Home Assistant (Alexa/Google Home/HASS.io)

      @richland007 said in [MMM-AlexaOnOff] Simple Mirror Control from External Home Assistant (Alexa/Google Home/HASS.io):

      How do i read more log lines not only tailing the last 15 from pm2 logs mm ??

      They should be in ~/.pm2/logs by default. You can also stop the pm2 version and run the mirror manually using the instructions above.

      I’ll let you know if I can replecate the CPU issue, but that’s very strange. I haven’t seen that.

      Make sure you update to the latest version of the module to see the correct line, but other than that I don’t know why its not working for more than one device. At this point it sounds like a fauxmojs issue… You can always open an issue on their GitHub repo.

      posted in System
      S
      shbatm
    • RE: [octomirror-module] Monitor & Control an OctoPrint 3D Printer Server

      @citizendevpi said in [octomirror-module] Monitor & Control an OctoPrint 3D Printer Server:

      Any help

      Sorry, I haven’t had a chance to fire up my printer and take a look yet. Going to try in the next few days. They’ve probably updated something in Octoprint that broke it.

      One thing I did think of to have you check on: make sure you have Allow CORS turned on in your Octoprint settings.

      posted in Productivity
      S
      shbatm
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @evroom said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      Back on develop branch again.

      Please send me your config in a chat.

      posted in Utilities
      S
      shbatm
    • RE: Clean installation... fails left and right

      @shbatm said in Clean installation... fails left and right:

      I’m seeing issues with the newest “Raspbian Stretch with desktop image” (Nov 2018–non-bloatware) as well – I did a fresh, manual installation, no errors, but electron will not start with the OpenGL driver (full KMS or fake KMS) enabled.

      Confirming what I confirmed in the issue on GitHub just so others aren’t misled… Upgrading to Electron v3.0.13 is working fine (this is now the version installed if you use the develop branch of MM). V2.x is not working on the new Raspbian because of the OpenGL driver and we can’t use V4.x yet because of bad dependency references.

      posted in Bug Hunt
      S
      shbatm
    • RE: Clean installation... fails left and right

      @devinhedge said in Clean installation... fails left and right:

      for the last couple months Node.js and npm are currently BROKEN on RaspberryPi.

      What version of node are you using and how are you trying to install it? Node.Js works fine with Raspberry Pi, just don’t install it from the default repos. Use these instructions:

      https://github.com/nodesource/distributions/blob/master/README.md

      I’ve installed both v8 and v10 successfully multiple times on new Pis in the last few months.

      posted in Bug Hunt
      S
      shbatm
    • RE: HELP to use a cam with MM PLEASE

      @axel said in HELP to use a cam with MM PLEASE:

      see my usb cam in live on the mirror!

      If you can get an RTSP stream URL from your IP camera you can use my module: MMM-RTSPStream. Use the develop branch right now–and search this forum if you’re having issues getting it to work.

      If you want to stream your USB camera by hooking it up to the Pi, you can look at something like mjpg-streamer (Google ‘OctoPrint mjpg-streamer setup’ for some good guides) and then use MMM-iframe to show the image.

      posted in Troubleshooting
      S
      shbatm
    • RE: [MMM-AlexaOnOff] Simple Mirror Control from External Home Assistant (Alexa/Google Home/HASS.io)

      So I was looking at the Fauxmojs project–what this module uses to handle the “devices”–and it looks like there are some issues with Gen 2 Echos not discovering the devices–but for most, the alexa.amazon.com website was working. I’ll keep an eye on that project–but at the moment, I don’t have anything else I can do from my end.

      If you want to see some more detailed logs–start the MM manually with the following:

      cd ~/MagicMirror
      export DEBUG=sstp-server,deviceEndpoints,discoveryService
      npm start
      

      @richland007 - I just tested my installation with 3 devices and, while it wasn’t showing all of the ports on the log line due to a bug, it was opening the ports (visible with netstat -tulpn | grep electron – see below). Just in case anyone is wondering–port 1900 is the discovery port.

      tcp        0      0 0.0.0.0:21900           0.0.0.0:*               LISTEN      15738/electron.js
      tcp        0      0 0.0.0.0:21901           0.0.0.0:*               LISTEN      15738/electron.js
      tcp        0      0 0.0.0.0:21902           0.0.0.0:*               LISTEN      15738/electron.js
      tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      15738/electron.js
      udp        0      0 0.0.0.0:1900            0.0.0.0:*                           15738/electron.js
      
      posted in System
      S
      shbatm
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @evroom said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      Will revert back to the master branch and try again.

      Yes, the omx_stream1 is created the first time you play a stream with the module.

      Please use the develop branch with omxplayer. It was working on my machine the last time I started.

      posted in Utilities
      S
      shbatm
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @Cr4z33 try inserting this.playing = true; at Line 574 as the first line in the if statement and see if that works. I’ll test later today.

      EDIT: Just pushed an update. Please try the latest release in develop

      posted in Utilities
      S
      shbatm
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @cr4z33 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      With omxplayer (and autoStart: false) I see stream labels changing when giving a voice command, but then no stream is starting.

      OK. I’ll check this later today, the notification RTSP-PLAY should switch and start the stream so that’s an issue.

      posted in Utilities
      S
      shbatm
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @evroom said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      after every mm restart

      There was a problem with the steams not stopping on a restart, so the module sends a stop command first whenever it starts, do you have autoStart: true in your config?

      posted in Utilities
      S
      shbatm
    • RE: [MMM-AlexaOnOff] Simple Mirror Control from External Home Assistant (Alexa/Google Home/HASS.io)

      @richland007 said in [MMM-AlexaOnOff] Simple Mirror Control from External Home Assistant (Alexa/Google Home/HASS.io):

      It only show that 1 one port 0.0.0.0:21900

      It would be in pm2 logs mm or ~/.pm2/logs folder. I’ll check when I get a chance why it’s not opening more than 1 port.

      posted in System
      S
      shbatm
    • RE: [MMM-AlexaOnOff] Simple Mirror Control from External Home Assistant (Alexa/Google Home/HASS.io)

      @djsunrise19 said in [MMM-AlexaOnOff] Simple Mirror Control from External Home Assistant (Alexa/Google Home/HASS.io):

      wemo skill

      You shouldn’t need a separate skill with it. It looks like everything is working from the mirror side so I’m not sure what else to try…

      posted in System
      S
      shbatm
    • 1 / 1