In de laatste 2 regels mist een spatie bij /home.
Read the statement by Michael Teeuw here.
Posts
-
RE: cron job hdmi on and off
-
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/bashor#!/bin/shat 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/bashin 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
mailinstalled (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 withmailyou 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.
-
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. -
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.
-
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
undefinedandnulliso''but that does not work.Only idea how to solve this ?
Cleaning the array somehow ? -
RE: MMM-MPlayer
There is a main branch now that contains the original code.
And a dev branch that contains the new code.
The new code needs a different entry in the config.js. -
RE: MMM-MPlayer
@clakkentt said in MMM-MPlayer:
@hrmax23
I don’t know why but the MPlayer header show up in the latest MMM-MPlayer update, at least in my setup, it does not show up in the previous version. I upgraded and then downgraded.Hi, could you please sent me the output of
$ ps -eaf | grep mplayer | grep -v grepfor the version that is working?
I am currently busy with a new version, but I messed up a bit by not using a development branch.
Hope to have sorted that out soon.
The new version will have a bit different configuration setting than the old one.Also refer to
https://forum.magicmirror.builders/topic/19539/mmm-mplayer-display-issue
for the issue I am facing (related to what you are seeing with the new version).