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

    Posts

    Recent Best Controversial
    • RE: CPU 100%. started too many instances of MM

      @capedbuffethero
      Hi there,

      Concerning pip you will need to find out what is calling it.
      Normally it is not a daemon process, meaning something else is calling it.

      Can you get the following output:

      ps aux | grep pip
      

      And then using the lowest PID found:

      pstree -a <PID>
      

      You can find the lowest PID using:

      ps aux | grep pid | awk '{print $2}' | sort -u
      

      You can also check if there is a cronjob running that is calling pip:

      crontab -l | egrep 'pip|python'
      

      From there we can Google ourselves to a solution :-)

      Best regards,

      E.J.

      posted in Troubleshooting
      evroomE
      evroom
    • v2.26.0 - default calendar rrule / event.recurrences issue

      This event:

      BEGIN:VEVENT
      DTSTART;TZID=Europe/Berlin:20240104T180000
      DTEND;TZID=Europe/Berlin:20240104T200000
      RRULE:FREQ=WEEKLY;WKST=MO;COUNT=10;BYDAY=TH
      DTSTAMP:20240102T212443Z
      UID:63c23cpe0h356vgjl0o4tsnjbi@google.com
      CREATED:20240102T212139Z
      LAST-MODIFIED:20240102T212139Z
      SEQUENCE:0
      STATUS:CONFIRMED
      SUMMARY:#:SingleEventRepeating
      TRANSP:OPAQUE
      END:VEVENT
      

      Leads to this:

      0|MagicMirror  | [02.01.2024 22:22.25.197] [DEBUG] Title: #:SingleEventRepeating, with dates: ["2024-01-04T17:00:00.000Z","2024-01-11T17:00:00.000Z",null,null,"2024-02-01T17:00:00.000Z","2024-02-08T17:00:00.000Z",null,null,null,"2024-03-07T17:00:00.000Z"]
      0|MagicMirror  | [02.01.2024 22:22.25.197] [DEBUG] event.recurrences: undefined
      

      So:

      [
          "2024-01-04T17:00:00.000Z",
          "2024-01-11T17:00:00.000Z",
          null,
          null,
          "2024-02-01T17:00:00.000Z",
          "2024-02-08T17:00:00.000Z",
          null,
          null,
          null,
          "2024-03-07T17:00:00.000Z"
      ]
      

      Resulting in MM showing only 5 of the 10 events.

      I would like to know where to look for the RRULE processing; cannot find anything in the calendar code.
      As there are some other issues that I found, I could perhaps learn something from it.

      Otherwise I will open an issue for it.

      posted in Troubleshooting
      evroomE
      evroom
    • RE: Calendar module: problem with moved Allday event (Google Calendar).

      @sdetweil

      I applied your fixed calendarutils.js and ical.js files and it works like a charm now.
      Many thanks for solving this, very much appreciated !!

      E.J.

      posted in Troubleshooting
      evroomE
      evroom
    • RE: Calendar module: problem with moved Allday event (Google Calendar).

      Sam,

      Thanks a lot for diving into this.
      I had massive Internet problems the last 4 weeks and could not get to it myself.

      I am happy to modify a file or two to see if your fix works.
      Just send me the filename(s) and what to modify and I will test it.

      Btw, the Internet problems showed that when the calendar module cannot connect for some time, it just gives up and stalls.
      When Internet is present again it does not try to connect again or does not put an effort to get calendar data (ics file).
      But that is another topic.

      Greetings,

      E.J.

      posted in Troubleshooting
      evroomE
      evroom
    • Calendar module: problem with moved Allday event (Google Calendar).

      Hi,

      I have an issue with the calendar module that occurs when you move an Allday event.
      It can be recreated.
      Perhaps someone has an idea where it goes wrong ?

      Scenario:

      Added an event ‘ThirdAllday event (date, repeating weekly)’, starting Nov 01.

      –> On MMM: event seen on all Tuesdays, including this event on Tuesday Nov 08.

      Moved one ‘ThirdAllday event (date, repeating weekly)’ event from Tuesday Nov 08 to Wednesday Nov 09.
      Used click and drag.
      ‘Edit recurring event: This event’

      On Google Calendar:

      events seen on all Tuesdays, except the moved event (correct)
      moved event not on Tuesday Nov 08 (correct).
      moved event on Wednesday Nov 09 (correct).

      On MMM:
      events seen on all Tuesdays, including the moved event (false)
      still the moved event on Tuesday Nov 08 (false).
      NO moved event on Wednesday Nov 09 (false).

      basic.ics on event creation:

      BEGIN:VEVENT
      DTSTART;VALUE=DATE:20221101
      DTEND;VALUE=DATE:20221102
      RRULE:FREQ=WEEKLY;BYDAY=TU
      DTSTAMP:20221026T100527Z
      UID:1gfcnpgedl6tfe33rpebem95fm@google.com
      CREATED:20221026T100523Z
      LAST-MODIFIED:20221026T100523Z
      LOCATION:
      SEQUENCE:0
      STATUS:CONFIRMED
      SUMMARY:ThirdAllday event (date\, repeating weekly)
      TRANSP:TRANSPARENT
      END:VEVENT
      

      basic.ics after moving 1 event:

      BEGIN:VEVENT
      DTSTART;VALUE=DATE:20221109
      DTEND;VALUE=DATE:20221110
      DTSTAMP:20221026T100622Z
      UID:1gfcnpgedl6tfe33rpebem95fm@google.com
      RECURRENCE-ID;VALUE=DATE:20221108
      CREATED:20221026T100523Z
      DESCRIPTION:
      LAST-MODIFIED:20221026T100610Z
      LOCATION:
      SEQUENCE:1
      STATUS:CONFIRMED
      SUMMARY:ThirdAllday event (date\, repeating weekly)
      TRANSP:TRANSPARENT
      END:VEVENT
      BEGIN:VEVENT
      
      DTSTART;VALUE=DATE:20221101
      DTEND;VALUE=DATE:20221102
      RRULE:FREQ=WEEKLY;BYDAY=TU
      DTSTAMP:20221026T100622Z
      UID:1gfcnpgedl6tfe33rpebem95fm@google.com
      CREATED:20221026T100523Z
      LAST-MODIFIED:20221026T100523Z
      LOCATION:
      SEQUENCE:0
      STATUS:CONFIRMED
      SUMMARY:ThirdAllday event (date\, repeating weekly)
      TRANSP:TRANSPARENT
      END:VEVENT
      
      posted in Troubleshooting
      evroomE
      evroom
    • 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
    • 1 / 1