@plainbroke
Happy to help.
Read the statement by Michael Teeuw here.

Posts
-
RE: MMM-MPlayer
Can you please provide me with the output of:
$ grep Version /home/admin/MagicMirror/modules/MMM-MPlayer/node_helper.js
And the commands found in this section of the README:
https://github.com/evroom/MMM-MPlayer?tab=readme-ov-file#data-gathering
I have a feeling you have placed the config from the old version into the ‘new’ version.
Or in other words: you installed version 2…0.1, without changing the config accordingly, which has changed quite a bit.
See https://github.com/evroom/MMM-MPlayer?tab=readme-ov-file#config-example -
RE: cron job hdmi on and off
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. -
RE: cron job hdmi on and off
@Sam-0 said in cron job hdmi on and off:
should it be modified in this way?
output HDMI-A-1 --on
Into
output HDMI-A-0 --onNo, like this:
export WAYLAND_DISPLAY=wayland-0
In both scripts.
-
RE: cron job hdmi on and off
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 :-) -
RE: cron job hdmi on and off
In de laatste 2 regels mist een spatie bij /home.
-
RE: cron job hdmi on and off
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.
-
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 lineswlr-randr --output HDMI-A-1 --off
wlr-randr --output HDMI-A-1 --onDo 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 shellYou 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 caseadmin
).
With
journalctl --since "1 day ago" --unit cron.service --no-pager
you can see if cron ran your script and withmail
you can see more details on the cron job executed.Good luck.
-
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.