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

    Posts

    Recent Best Controversial
    • RE: How to turn off Raspberry Pi LEDs

      @GuestMirror

      Hi,

      I do not have a Pi 4 but on my Pi 3 Model B I have this:

      sudo nano /boot/config.txt
      
      # Disable the PWR LED
      dtparam=pwr_led_trigger=none
      dtparam=pwr_led_activelow=off
      
      # Disable the Activity LED
      dtparam=act_led_trigger=none
      dtparam=act_led_activelow=off
      
      crontab -e
      
      @reboot echo 0 | sudo tee /sys/class/leds/led1/brightness
      

      You can try this to see if the above cron entry works (before rebooting):

      echo 0 | sudo tee /sys/class/leds/led1/brightness
      

      Perhaps some stuff does not work or does the same, but both the power LED and activity LED on my Pi are off in the end.
      Btw, on my Pi 3 Model B Plus, only the /root/config.txt line are needed.

      Concerning the LAN LED’s I found following:

      # Disable LAN-LEDs on Raspberry Pi 3B+
      dtparam=eth_led0=14
      dtparam=eth_led1=14
      
      # Disable LAN-LEDs on Raspberry Pi 4
      dtparam=eth_led0=4
      dtparam=eth_led1=4
      

      Good luck!

      posted in System
      evroomE
      evroom
    • RE: Cron Job Question

      @Nneuland

      Just a small remark: /del/null is a typo.
      When off works, then on will work when you change to /dev/null.
      Unless it is right on your system and the typo is in your thread.

      posted in Troubleshooting
      evroomE
      evroom
    • RE: Crontab to Restart Magic Mirror does not work

      @desert-rat

      Could you please show the crontab ?

      $ crontab -l
      

      To get rid of this:

      (CRON) info (No MTA installed, discarding output)
      

      you have to add >/dev/null 2>&1

      Try:

      44 * * * * /usr/local/bin/pm2 start MagicMirror >/dev/null 2>&1
      
      posted in Bug Hunt
      evroomE
      evroom
    • RE: Crontab to Restart Magic Mirror does not work

      @desert-rat

      I would try pm2 iso PM2.
      And even would advise to use the full path, that can be determined using:
      which pm2

      With Debian it would be /usr/local/bin/pm2

      And you can check this log if cron did anything at all:
      /var/log/syslog

      Or edit /etc/rsyslog.conf and remove comment on the line with cron (around line 63)
      Then the dedicated cron log will be in /var/log/cron.log.
      After editing, restart with „sudo systemctl restart rsyslog“.

      Good luck,

      E.J.

      posted in Bug Hunt
      evroomE
      evroom
    • RE: MMM-GrafanaCharts page not found with Grafana 8.0.6

      @Babene1

      Your config looks okay to me.

      I do not use it anymore, but from my notes (June 2020):

      $ sudo vi /etc/grafana/grafana.ini
      
      [auth.anonymous]
      l
      # enable anonymous access
      enabled = true 
      
      # specify organization name that should be used for unauthenticated users
      org_name = MagicMirror
      
      # specify role for unauthenticated users
      org_role = Viewer
      
      [security]
      # https://grafana.com/docs/grafana/latest/installation/configuration/#allow-embedding
      allow_embedding = true
      
      $ sudo systemctl restart grafana-server
      

      I cannot remember why I needed this.
      Perhaps because of the allow_embedding and enabled settings.

      Good luck,

      E.J.

      posted in Troubleshooting
      evroomE
      evroom
    • RE: Grafana chart will not appear in MM

      Hi Peter,

      @peterkatana said in Grafana chart will not appear in MM:

      host: “http://pi-hole:3030/d/o9mIe_Aik/internet-connection?from=1624514783736&to=1624601183736&orgId=1&refresh=5m”, //Mandatory. See url when displaying within grafana

      I would try:

      host: "<grafana_host_ip>",
      

      Nothing to be seen in the pm2 logs ?

      I used both MMM-GrafanaChart and MMM-GrafanaGauges for a short time a while ago, but wasn’t really happy with it.
      But perhaps it will suit your needs.

      posted in Utilities
      evroomE
      evroom
    • RE: MMM-HomeConnect - Show the status of your Home Connect appliances (Bosch Group)

      Okay, understood.
      It means my oven is not on 🙂
      When I put on the oven, I see the Oven and the oven graphic.
      Neat !

      posted in Utilities
      evroomE
      evroom
    • RE: MMM-HomeConnect - Show the status of your Home Connect appliances (Bosch Group)

      @djerik

      Hi,

      I finally managed to have the password stuff sorted out and can login again.
      After restarting MM, the login screen came up and I was able to login and accept the settings.

      Now the MMM-HomeConnect shows: “No active devices”.
      In my Home Connect app I have the Oven Appliance (from Neff) and I can control the appliance.

      Perhaps I have registered the wrong application ?
      Is application on the developer site the same as appliance ?
      Any extra steps I might need to take ?

      posted in Utilities
      evroomE
      evroom
    • RE: [MMM-MieleAtHome] - Show the status of your Miele@Home Devices

      @djerik
      The problem at this moment is not related to your module.
      It is related to the home-connect accounts; the standard one and the developer one.
      I cannot login into both accounts; I cannot login into the account using the app.
      Password reset does not work; I do not get any mail.
      Even setup a new account and here too no mail to activate the account.
      I will need to contact the home-connect support, but could not find any time yet; hopefully this weekend.

      posted in Utilities
      evroomE
      evroom
    • RE: [MMM-MieleAtHome] - Show the status of your Miele@Home Devices

      @djerik said in [MMM-MieleAtHome] - Show the status of your Miele@Home Devices:

      it will start a browser and show the authorization screen using this URI.

      It will not take my password :-(
      I have the same login name (email address) as the home-connect account, perhaps that is the reason.
      I am trying to delete the account, but till now no luck.
      Will keep trying and will report back.

      posted in Utilities
      evroomE
      evroom
    • RE: [MMM-MieleAtHome] - Show the status of your Miele@Home Devices

      @djerik said in [MMM-MieleAtHome] - Show the status of your Miele@Home Devices:

      Inspired by the good work of @ViDiBi, I have created a version for Home Connect: https://github.com/djerik/MMM-HomeConnect

      Hi,

      I am having difficulties in registering an application in order to get a client ID and a client_secret.

      In the Register Application form, what do I use for example for the Redirect URI ?

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

      @warrendt

      Can you check following ?

      Process omx_stream1 present:

      $ pm2 status
      
      $ ps -eaf | grep -v grep | grep omxplayer
      

      Entries in pm2 log:

      $ pm2 logs --lines 100
      

      Might need to flush the logs and restart MM in order to show new RTSPStream log entries:

      $ pm2 flush
      $ pm2 restart MagicMirror
      
      $ pm2 logs --lines 100
      

      omxplayer version:

      $ omxplayer -version
      

      MMM-RTSPStream git status

      $ cd ~/MagicMirror/modules/MMM-RTSPStream
      $ git status
      

      I am on the develop branch, you might need o switch to that too.

      $ cd ~/MagicMirror/modules/MMM-RTSPStream
      $ git checkout develop
      $ npm install
      
      posted in Utilities
      evroomE
      evroom
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

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

      Please see below.

      Hi,

      I would first disable the module (disabled: true,) and restart MM.
      Check if there are no omx_streams running (pm2 status).
      Stop them when present (pm2 stop omx_stream1 / pm2 delete omx_stream1).

      Then verify if omxplayer works standalone (use your own user & password & IP address).
      If it does not work standalone, then there is no need to continue trying the module.

      $ omxplayer --avdict rtsp_transport:tcp --win 85,65,725,425 --live --video_queue 4 --fps 30 --no-osd rtsp://user:password@192.168.178.55/axis-media/media.amp?resolution=640x360
      

      If that works you can try this verified config (use your own user & password & IP address):

      $ vi ~/MagicMirror/config/config.js
      
        {
          module: "MMM-RTSPStream",
          //disabled: false,
          disabled: true,
          position: "middle_center",
          header: "Axis Security Monitor",
          config: {
            autoStart: true,
            rotateStreams: false,
            moduleWidth: 640,
            moduleHeight: 360,
            localPlayer: 'omxplayer',
            remotePlayer: 'none',
            showSnapWhenPaused: false,
            remoteSnaps: false,
            stream1: {
              name: 'Axis_P1448_LE',
              url: 'rtsp://user:password@192.168.178.55/axis-media/media.amp?resolution=640x360',
              frameRate: "30",
              protocol: "tcp",
              width: 640,
              height: 360,
              omxRestart: 1,
              hwAccel: true,
            }
          }
        },
      

      This works for Axis P1448-LE, M2026-LE Mk II and M1125-E.

      Good luck.

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

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

      Any thoughts would be appreciated.

      I am not able to respond to your settings right now, please remind me when I do not answer in a few days.

      posted in Utilities
      evroomE
      evroom
    • RE: [MMM-MieleAtHome] - Show the status of your Miele@Home Devices

      @ViDiBi said in [MMM-MieleAtHome] - Show the status of your Miele@Home Devices:

      just uploaded some screenshots

      Nice!
      I do not have Miele, but Neff and that makes use of Home Connect.
      I see that Bosch, Siemens and Neff are listed, but not Miele.
      Still a nice module for MM, well done.

      posted in Utilities
      evroomE
      evroom
    • RE: [MMM-MieleAtHome] - Show the status of your Miele@Home Devices

      Hi @ViDiBi

      Could you add one or more pictures?
      “Geräte werden geladen…“ is not vey exciting :-)

      And does it work with Home Connect, or is it for Miele only?

      posted in Utilities
      evroomE
      evroom
    • RE: pm2 Autostart invert issue

      @sdetweil said in pm2 Autostart invert issue:

      @Ethyx r u running buster?

      try this
      https://pimylifeup.com/raspberry-pi-rotate-screen/

      @Ethyx

      Did you try this?

      display_hdmi_rotate=2
      

      Make sure you only have one of the options active; not that you rotate a rotated screen. :-)

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

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

      I’m just getting the “have a nice day” error.

      Can you see if the omxplayer.log gives a clue?
      And what would your VLC url look like?

      It can be that your cam or codec is not supported.

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

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

      Could someone give me a little push

      When using the module or not, omxplayer always will be an overlay on top of your MM display.

      Test if it works at all (example for an Axis IP camera):

      $ omxplayer --avdict rtsp_transport:tcp --live --video_queue 4 --fps 30 --win "0 625 590 957" rtsp://user:password@192.168.178.56/axis-media/media.amp?resolution=640x360
      

      With log:

      $ 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
      

      The positioning of the stream can be a bit of a pain.
      Size of video stream:
      (x2 - x1) x (y2 - y1) = 640 x 360

      To use it under control of pm2 (iso of vi you also can use nano):

      $ cd /home/pi
      $ vi axis.sh
      #!/bin/bash
      echo "Starting Axis stream ..."
      
      # No rotation
      omxplayer --avdict rtsp_transport:tcp --live --video_queue 4 --fps 30 --win "0 625 590 957" rtsp://user:password@192.168.178.56/axis-media/media.amp?resolution=640x360
      
      $ pm2 start axis.sh
      $ pm2 save
      

      To see it run:

      $pm2 status
      

      To restart it:

      $ pm2 restart axis
      

      To stop it:

      $ pm2 stop axis
      

      To remove it from pm2:

      $ pm2 delete axis
      
      posted in Utilities
      evroomE
      evroom
    • 1 / 1