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

Erik Jan

@evroom

MagicMirror version: 2.29.0
Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
Raspbian GNU/Linux 12 (bookworm)

51
Reputation
2.7k
Profile views
474
Posts
2
Followers
0
Following
Joined Jun 14, 2018, 5:53 PM
Last Online 27 minutes ago

evroom Unfollow Follow
Project Sponsor

Best posts made by evroom

  • RE: I am stuck need help

    @dcarls91
    I understand that in the beginning the amount information can be overwhelming, but how are you going to find out what you are doing when you scrape your project?
    Especially when you are so close in getting the ‘Mirror’ started; just a few characters are missing in the config file.
    The community here is very active and very helpful and can step down a nodge when it is getting too technical.
    Of course it is expected that you have a certain level of knowledge or that you are willing to obtain that level.

    Besides spending several hours, did you spend any money on equipment, etc?

    If you decide to give it a last effort, then it would help to tell us on what platform your Mirror is running (Raspberry, PC, Ubuntu, etc) and it would help to report back with a bit more details (other than I tried and it did not work).
    And if someone tells you to perform action XYZ and you have no idea what the heck XYZ is or how to execute, then don’t be afraid to say so.

    The suggestions given, like try it module by module and the config check are very useful (I guess everyone was in this position, I know I was) and will solve your issues.

    If you decide to move away from Magic Mirror, then I respect that, but perhaps you will reconsider.

    Disclaimer: I do not have any shares in the project and am by no means an expert. Just reaching out. :-)

    posted in Troubleshooting
    E
    evroom
    Feb 4, 2019, 10:32 PM
  • RE: MMM-MPlayer

    @myfingersarecold said in MMM-MPlayer:

    I don’t feel like actually uploading it to github, but here is the source code, and an example config.

    I took the liberty to take the provided code, make changes to it and make it available as a public repository:

    https://github.com/evroom/MMM-MPlayer

    My own main purpose for using it, is to setup a new Raspberry Pi (Raspberry Pi 4 Model B), with Debian 12 (bookworm) and the latest MM version (2.30.0).
    Replacing a Pi 3b 32-bit Debian 10 buster setup where OMXPlayer is still working.
    I will be using a single window with a single RTSP stream (for an Axis Network Camera).
    Nothing fancy.

    Best regards,

    E.J.

    posted in Utilities
    E
    evroom
    Dec 16, 2024, 5:11 PM
  • RE: MMM-PublicTransportHafas: Service Temporarily Unavailable

    @KristjanESPERANTO

    I did the update and it is looking much better now.
    I reverted back to db (npm run query dbis working again).
    Only one thing I noticed:

    MMM-PublicTransportHafas_20250112_001.png

    On display (last update 11:15)
    11:08 +1.0333333333333334
    11:28 +0

    The 11:08 entry is in the past (maxUnreachableDepartures: 2,).
    The +1.0333333333333334 is a bit too much :-)

    posted in Troubleshooting
    E
    evroom
    Jan 12, 2025, 10:27 AM
  • RE: CANNOT ADD MODULES

    Hi,

    For beginners, the catchphrase is “JSON syntax”.
    There are many articles to be found, both short and lengthy.
    A small article would be:
    https://restfulapi.net/json-syntax/

    The main things to look for in your config.js file are:

    • does every [ have a matching ]
    • are all arrays separated by a , (the last array does not need a ,)
    • does every { have a matching }
    • are all objects separated by a , (the last object does not need a ,)
    • is every name value pair separated by a ,

    The syntax checker will try to find out if this syntax is correct and tries to predict where the error could be.
    So, when it says it saw a [ and it cannot find a matching ] it tells you what was expected and what it saw.

    Try to format you config.js to make it more visible.
    For example this:

    [{},{}],[{},{[]}]
    

    is better written like this:

    [
      {},
      {}
    ],
    [
      {
      },
      {
        [
        ]
      }
    ]
    

    Pairs of [ ]and { } are better visible like this.

    Good luck :-)

    posted in Troubleshooting
    E
    evroom
    Feb 6, 2019, 9:56 PM
  • RE: MMM-MPlayer

    @KristjanESPERANTO said in MMM-MPlayer:

    @evroom Nice! 🚀 Please add it to the module list 🙂

    Done.

    posted in Utilities
    E
    evroom
    Dec 17, 2024, 10:31 AM
  • RE: Cronjob

    @CyruS1337 said in Cronjob:

    I have always used the command sudo crontab -e and with this it did not work.

    Just to clarify.

    Normally you are user pi: $ who am I

    So crontab -e will work for the pi user.
    Using sudo crontab -e will change the crontab for the root user.

    Now how can you tell what is what ?

    For the user pi:
    $ sudo crontab -l -u pi
    which is the same as
    $ crontab -l
    For the user root:
    $ sudo crontab -l -u root

    Furthermore, when you have activated the root crontab, then the command will run as root, in the root (/) directory.
    In this case pm2 reload command will search for the mm.sh script under / and will not find it.
    Whereas when activated the pi crontab, the mm.sh script will be searched in the /home/pi directory, where it should be, and it will work.

    Use pm2 show mmto show the details on mm under pm2.
    Then you will understand it better.

    Cron messages normally are directed to /var/log/cron.log, but on my system it is not directed:

    $ grep cron /etc/rsyslog.conf
    #cron.*				/var/log/cron.log
    

    To see the cron messages, when not in cron.log:

    $ tail -F /var/log/syslog | grep CRON
    

    [ On my system I see CRON messages for root, although I do not have root crontab entries. There is a crond running that runs alongside $ systemctl status cron.]

    Have fun :-)

    posted in Troubleshooting
    E
    evroom
    Mar 18, 2019, 9:02 PM
  • RE: MMM-Soccer - Standings, Schedules and Top Scorers

    It looks like I mixed up things.

    You have:
    MMM-soccer: uses api.football-data.org - api v1
    MagicMirror-FootballLeagues: api.football-data.org - api v1
    MMM-SoccerLiveScore: uses www.ta4-images.de

    Modules using api.football-data.org - api v1 - are not working and that leaves MMM-SoccerLiveScore as the only module working at this moment.

    Now … I promised to have a look at MMM-Soccer, which is MMM-soccer (small detail), to see if I can get v2 working.
    So I started with github (never used it before) and got MM working on my MacBook.
    Stupidly I got a copy of MMM-SoccerLiveScore and was surprised to see it working.
    Only then I realised that my comments were based on MagicMirror-FootballLeagues and not on MMM-Soccer.
    Not even speaking about MMM-SoccerLiveScore.

    Probably the heat-wave melted my brains, or what was left of it.

    What to do ?

    On the one hand we have MMM-SoccerLiveScore.
    Install it. Configure it. Run it. Go with it.
    Nothing needed.
    I have it running myself.

    Then we have MMM-soccer and MagicMirror-FootballLeagues.
    Both need to be adapted to run with api v2.
    MagicMirror-FootballLeagues, owner @master117, looks to be more up-to-date and a better start than MMM-soccer.
    It says to be a spin.off of MMM-SoccerLiveScore, but I do not know exactly why.
    And I do not know if an adapted MagicMirror-FootballLeagues will have more possibilities over the other(s).

    I might give it a try, just for the fun of it.

    posted in Sport
    E
    evroom
    Jul 27, 2018, 3:51 PM
  • RE: TV Tuner

    I got streaming from a Linux SAT receiver with enigma2 working, using the module MMM-RTSPStream-
    But you will need to supply a bit more information than rather ‘a TV tuner’.

    posted in Requests
    E
    evroom
    Jul 23, 2018, 9:20 PM
  • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

    Hi,

    Quite happy with MMM-RTSPStream so far; thx to those that contributed to it.

    Next thing I am trying to use MMM-RTSPStream for, is streaming sat-tv from a Dreambox & VU+ receivers.
    I am able to stream a channel using:

    omxplayer --vol -3000 --win “0 0 480 320” --live http://192.168.178.28:8001/1:0:19:283D:3FB:1:C00000:0:0:0:

    It is not a rtsp stream, but it can use omxplayer for streaming.
    When I try to use MMM-iFrame, I can add the URL, but then it tries to open a program that can play mpg (and MagicMirror won’t start).
    When I use it to stream using my browser (on my PC), I have it open VLC player, but installing VLC on Raspberry (using HW acceleration) is quite an act, so I would prefer to use omxplayer.

    Could this be done ?

    I am not so familiar with JavaScript and CCS (yet), more a Perl guy, but am willing to assist and test-drive.

    posted in Utilities
    E
    evroom
    Jun 18, 2018, 10:21 PM
  • RE: show info from a webpage

    Probably there are better and possible simpler ways to get it done, but I do something similar using a Perl script and this module:
    https://github.com/eouia/MMM-HTMLBox
    The Perl script reads values and builds a HTML page.
    The module displays it on the Magic Mirror.
    A cron job makes it semi-static as it runs the script regularly.

    posted in Troubleshooting
    E
    evroom
    Jun 16, 2019, 6:33 PM

Latest posts made by evroom

  • RE: cron job hdmi on and off

    @Sam-0

    You only had to change the 1 into a 0.
    Not to move the lines around, especially not the ones with export.

    #!/bin/bash
    export WAYLAND_DISPLAY=wayland-0
    export XDG_RUNTIME_DIR=/run/user/1000
    wir-randr --output HDMI-A-1 --on
    

    But you are slowly getting there :-)
    Wax on, wax off
    Screen on, screen off.

    posted in Troubleshooting
    E
    evroom
    Apr 11, 2025, 8:10 PM
  • RE: cron job hdmi on and off

    @Sam-0 said in cron job hdmi on and off:

    @evroom

    should it be modified in this way?

    output HDMI-A-1 --on
    Into
    output HDMI-A-0 --on

    No, like this:

    export WAYLAND_DISPLAY=wayland-0

    In both scripts.

    posted in Troubleshooting
    E
    evroom
    Apr 11, 2025, 2:09 PM
  • RE: cron job hdmi on and off

    @Sam-0

    So as stated before you most probably need to change wayland-1 to wayland-0 in your scripts.
    Give it a try.
    Furthermore the .lock file may cause a problem, but I guess this will show in your error log.
    And temporarily change the times in your cronjob to speed things up a bit.
    Waiting till ten and midnight is not really necessary :-)

    posted in Troubleshooting
    E
    evroom
    Apr 10, 2025, 7:27 PM
  • RE: cron job hdmi on and off

    @Sam-0

    In de laatste 2 regels mist een spatie bij /home.

    posted in Troubleshooting
    E
    evroom
    Apr 9, 2025, 8:32 PM
  • RE: cron job hdmi on and off

    @Sam-0

    So it seems that the cronjob is okay.

    Can you do:
    ˋˋˋls -als /run/user/1000/wayland*ˋˋˋ

    I think you need wayland-0 iso wayland-1.

    With ˋˋˋ grep username /etc/passwdˋˋˋ (use your username) you can verify that your user has uid 1000.

    posted in Troubleshooting
    E
    evroom
    Apr 9, 2025, 8:28 PM
  • RE: cron job hdmi on and off

    @Sam-0 said in cron job hdmi on and off:

    i created two files
    off.sh and on.sh
    they contain the following lines

    wlr-randr --output HDMI-A-1 --off
    wlr-randr --output HDMI-A-1 --on

    Do you have #!/bin/bash or #!/bin/sh at the very beginning of your shell scripts ?

    #! /bin/sh – Execute the file using the Bourne shell, or a compatible shell, assumed to be in the /bin directory
    #! /bin/bash – Execute the file using the Bash shell

    You can also put /bin/bash in the crontab entry (before /home/username/...).
    Then there is no way for cron to not execute it as a shell script and it will even run without the executable bit set.

    And what Sam mentioned: the scripts need to be executable but not necessarily writable (chmod 755).
    This should normally do the trick.

    If you have mail installed (which mail) you can put this at the very beginning of the crontab file:
    MAILTO=username (in my case admin).
    With
    journalctl --since "1 day ago" --unit cron.service --no-pager
    you can see if cron ran your script and with mail you can see more details on the cron job executed.

    Good luck.

    posted in Troubleshooting
    E
    evroom
    Apr 7, 2025, 1:33 PM
  • MMM-MPlayer - version 2.0.1

    Hi,

    I just published version 2.0.1 of the MMM-MPlayer module.
    Fixed some issued, added more options.

    https://github.com/evroom/MMM-MPlayer

    Please read the README carefully, especially when you are using the first version.

    If you are a user of version 1 of this module, please be aware that the configuration is slightly different and that more options are available. It is advisable to move a working version of this module before installing the new version.

    Best regards,

    E.J.

    posted in Utilities
    E
    evroom
    Mar 24, 2025, 7:52 PM
  • RE: MMM-MPlayer

    @clakkentt said in MMM-MPlayer:

    @evroom
    …
    Sorry for the delay in replying, I don’t get e-mail notices when someone replies to my posts.

    No problem.

    I discovered the reason why it happens and am busy with a new version.
    Hope to release it soon (first need to solve an issue with recalculating the window position).
    Those that are interested can have a look at the README of the dev branch.

    posted in Utilities
    E
    evroom
    Mar 23, 2025, 9:28 PM
  • RE: MMM-MPlayer - display issue

    To answer myself:

    I cleaned the array using:

        const mplayerArgumentsArrayFilter = mplayerArgumentsArray.filter(discardEmptyArgument);
        function discardEmptyArgument(value, index, array) {
          return value != '';
        }
    

    Then spawned using that array:

        // Spawn a new mplayer process
        const env = { ...process.env, DISPLAY: ':0' };
        const mplayerProcess = spawn(`mplayer`, mplayerArgumentsArrayFilter, {env: env});
    

    Now it is working correct.

    posted in Troubleshooting
    E
    evroom
    Mar 18, 2025, 3:50 PM
  • RE: MMM-MPlayer - display issue

    I found out following:

    When using

        // Spawn a new mplayer process
        const env = { ...process.env, DISPLAY: ':0' };
        const mplayerProcess = spawn(`mplayer`,
           ['-rtsp-stream-over-tcp',
            '-noborder',
            '-monitoraspect', '0',
            '-vf', 'rotate=-1',
            '-geometry', '5:225',
            '-x', '640',
            '-y', '360',
            'rtsp://axisviewer:password@192.168.178.55/axis-media/media.amp?streamprofile=ACC_Low'],
            {env: env});
    

    The stream is correct on the monitor.

    When using

        // Spawn a new mplayer process
        const env = { ...process.env, DISPLAY: ':0' };
        const mplayerProcess = spawn(`mplayer`,
           ['',
            '', '',
            '-rtsp-stream-over-tcp',
            '',
            '', '',
            '-noborder',
            '-monitoraspect', '0',
            '-vf', 'rotate=-1',
            '-geometry', '5:225',
            '-x', '640',
            '-y', '360',
            'rtsp://axisviewer:password@192.168.178.55/axis-media/media.amp?streamprofile=ACC_Low'],
            {env: env});
    

    The stream is NOT correct on the monitor (MPlayer window in the center).

    So the problem is spawning with empty parameters.
    When running it from the command line, this is not an issue, as the shell takes care of the empty places between the arguments.

    I tried with undefined and null iso ''but that does not work.

    Only idea how to solve this ?
    Cleaning the array somehow ?

    posted in Troubleshooting
    E
    evroom
    Mar 18, 2025, 10:24 AM
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