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

    Posts

    Recent Best Controversial
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @BKeyport Yes, making good progress thanks to those of you who’ve helped. I’m having a difficult time with placing the window. I can get it in the upper-left of the screen using --win “0 0 600 300”, but I can’t seem to manipulate those coordinates to get the window to the lower-right. Can you point me to information that will help me understand this?

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

      OK…I’ve got it displaying my Wyze rtsp live stream on the screen while MM2 is running. The live stream seems to start and stop so I’ll work on that. Also, I need to position it in the correct place (lower-right corner).

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

      @dwburger It took several seconds, but entering the correct rtsp URL got my camera’s video stream onto the RPi4 screen (full-screen). I’ll follow it a while to see how stable it is.

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

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

      rtsp://admin:admin@192.168.1.20/live

      I see I made an error with the rtsp URL. Here’s the correct one for my Wyze cam masking the username and password:

      rtsp://d____:b____@192.168.1.117/live

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

      @evroom I ran the following command via SSH to a headless RPi 4. I stopped MM2 via PM2 so the RPi4 GUI desktop is all I see.

      omxplayer -g rtsp://admin:admin@192.168.1.20/live

      The omxplayer.log file looks like this:

      23:13:40 T:18446744072105597939 DEBUG: DllBcm: Using omx system library
      23:13:40 T:18446744072105599016 DEBUG: DllOMX: Using omx system library
      23:13:40 T:18446744072105599609 DEBUG: DllAvFormat: Using libavformat system library
      23:13:40 T:18446744072105600891 DEBUG: DBus connection succeeded
      23:13:40 T:18446744072105601616 DEBUG: Keyboard: DBus connection succeeded
      23:13:40 T:18446744072105601755 DEBUG: OMXThread::Create - Thread with id -1387290944 started
      23:13:40 T:18446744072105601853 DEBUG: DllAvUtilBase: Using libavutil system library
      23:13:40 T:18446744072105601872 DEBUG: DllAvCodec: Using libavcodec system library
      23:13:40 T:18446744072105601888 DEBUG: DllAvFormat: Using libavformat system library
      23:13:40 T:18446744072105602188 DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://admin:admin@192.168.1.20/live
      23:13:43 T:18446744072108706892 DEBUG: COMXPlayer::OpenFile - avformat_open_input enabled SEEKING
      23:13:43 T:18446744072108707062 ERROR: COMXPlayer::OpenFile - avformat_open_input rtsp://admin:admin@192.168.1.20/live
      23:13:43 T:18446744072108717572 DEBUG: OMXThread::Run - Exited thread with id -1387290944
      23:13:43 T:18446744072108718100 DEBUG: OMXThread::StopThread - Thread stopped

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

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

      omxplayer --genlog --avdict rtsp_transport:tcp --live --video_queue 4 --fps 30 --win “0 0 640 360” rtsp://user:password@192.168.178.56/axis-media/media.amp?resolution=640x360

      I’m just getting the “have a nice day” error. What would the most basic omxplayer command be? I just want to see the Wyze rtsp stream anywhere on the RPi 4 screen. I’ve tried: omxplayer rtsp://:@IP address and I get the “have a nice day” error.

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

      Updating didn’t solve the problem. Just wondering…I’ve seen recent references to using OMXplayer independent of MM2. Does this mean that the OMXplayer window is on top of the MM2 screen or somehow incorporated into it. Could someone give me a little push into understanding this?

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

      @BKeyport Yes, I’m using an RPi4. Thanks for the link for updating!

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

      @evroom Thanks! I haven’t been able to get OMXplayer to work, only VLC. However, if I can’t get the auto-restart to work with VLC, I’ll see if I can’t get OMXplayer to work.

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

      I’ve got this module working with my Wyze camera, but the connection drops and the image freezes after a few minutes. Is there a way to automatically reconnect to the camera from within the module? I can do it by stopping and starting MM2 using PM2, but I’d rather not have to do that every few minutes. Thanks for any help or guidance!

      posted in Utilities
      D
      dwburger
    • RE: MM on Ubuntu

      Right. I’ll watch more carefully for any error messages I receive from Ubuntu. Thanks!

      posted in Troubleshooting
      D
      dwburger
    • RE: MM on Ubuntu

      @sdetweil I just restarted my Ubuntu MiniPC 3 times after minimizing the MM2 window and MM2 started up perfectly each time. If it starts to act up again I’ll install the MMM-Logging module. When the problem was more evident the other day Ubuntu was displaying an error message that indicated it had some kind of issue with my WiFi and a “localhost”. I was focused on other things at the time and didn’t pay enough attention to this error message. I’ve not been receiving it lately so maybe something got resolved between my Ubuntu and my WiFi connection that also took care of this startup issue with MM2???

      posted in Troubleshooting
      D
      dwburger
    • RE: MM on Ubuntu

      @sdetweil I’m using the MiniPC solely for the MM2. The MiniPC is mounted to the back of an old wall-mounted LCD monitor and serves, basically, as an information kiosk for me running clock, calendar, radar, traffic, weather and to-do list modules.

      posted in Troubleshooting
      D
      dwburger
    • RE: MM on Ubuntu

      This is on a MiniPC running Ubuntu 18.04.4.

      posted in Troubleshooting
      D
      dwburger
    • RE: MM on Ubuntu

      No, just 1…MagicMirror.

      posted in Troubleshooting
      D
      dwburger
    • RE: MM on Ubuntu

      OK…your script did a great job in getting a new MM installed onto another Ubuntu machine. There’s one odd behavior I’m noticing. When the MM2 first comes up after power-on or reboot, not all the modules get started. I have to press the key and the File -> Close. When the MM2 comes up again all is well. I’m wondering why that is??? Is it possible to place a delay in the config.js (or somewhere else) so each module has plenty of time to get started. Maybe there’s another solution to this behavior???
      BTW…thanks for all your work on the installation scripts and the help you’ve provided!

      posted in Troubleshooting
      D
      dwburger
    • RE: MM on Ubuntu

      I may have given you the wrong impression…I really don’t know my way around Linux/Ubuntu. However, I was able to run your fixuppm2 script and I now see what you mean about not having to do anything else. I’m getting the behavior I want. When I reboot my machine MM2 starts right up. I’m getting ready to make another MM2 on a mini PC running Ubuntu. This time, I’m going to use your install script!

      posted in Troubleshooting
      D
      dwburger
    • RE: MM on Ubuntu

      Hmmm…installed the default MTA for Ubuntu 18 which fixed the error message in the logfile, but pm2 still didn’t restart the MM2. I’m afraid I don’t really understand your note about pi versus root cron running. I can “sudo crontab -e” if that’s a better idea. I will add, my Ubuntu is starting up with its GUI and then I’m opening a terminal window to start MM2 using “pm2 start mm.sh”.

      posted in Troubleshooting
      D
      dwburger
    • RE: MM on Ubuntu

      Well…I learned something. I didn’t know about crontab logs and I found this command to try:

      sudo grep CRON /var/log/syslog

      When I did that I found this line on the end of the log:

      Apr 24 10:40:01 dave-ubuntu CRON[2931]: (CRON) info (No MTA installed, discarding output)

      I guess I need to install an MTA???

      posted in Troubleshooting
      D
      dwburger
    • RE: MM on Ubuntu

      My MM2 is running well under Ubuntu 18.04. I’ve installed pm2 and that works as well to start/stop MM2. However, I’m not able to get pm2 to work when using crontab. My crontab script looks like this:

      40 * * * * pm2 restart mm.sh

      so I can restart MM2 at 40 minutes after each hour. I don’t really plan to restart MM2 that often, I just want to get this working. I don’t know my way around Linux well enough to figure out what’s wrong. Can anyone point me to solution or an approach to one? Thanks!

      posted in Troubleshooting
      D
      dwburger
    • 1
    • 2
    • 3
    • 4
    • 2 / 4