Read the statement by Michael Teeuw here.
Introducing the MirrorCommandLine project
-
The MirrorCommandLine project provides scripts to enable command line control of the MagicMirror system over a local network.
The MirrorCommandLine Debian format package installation scripts perform automatic installation and configuration of a MagicMirror including:
- Automated installation of the MagicMirror software if not already installed
- Automated configuration of the MagicMirror
- Automated installation and configuration of several MagicMirror modules
- PM2 process manager installation and configuration
- Semi-automated key management to enable a single source for adding, storing, and managing the several keys necessary to activate many MagicMirror modules
- Hundreds of MagicMirror configuration files preconfigured with layouts for both portrait and landscape mode displays and module activation
The
mirror
command can be installed on your MagicMirror to issue MagicMirror commands. Currently the command line MagicMirror control scripts include support for:- Specifying the MagicMirror configuration file to activate
- Starting, stopping, and restarting the MagicMirror
- Display of various system info
- Temperature
- Memory
- Disk
- Usb
- Network
- Wireless
- Screen
- List active/installed MagicMirror modules
- List available MagicMirror configuration files
- Rotate the MagicMirror screen
- Get or set the brightness level
- Control MagicMirror video playback
- Start/Stop video play
- Replay video
- Play next video
- Hide video playback module
- Show video playback module
- Control the MagicMirror audio output volume level
- Get MagicMirror status
- Auto generation of new MagicMirror configuration files
- Interactive mode via menu dialogs
- Invoked with no arguments the mirror command displays a command menu.
NOTE: The automated configuration requires access to some X11 graphical utilities. Depending upon your system’s X11 configuration, it may be necessary to grant the root user access to the display. To do so, prior to installation issue the command:
xhost +si:localuser:root
or grant everyone access with
xhost +
Visit the MirrorCommandLine Git Repository to learn more about this project, read the articles and documentation at the MirrorCommandLine Wiki, or download and install the MirrorCommandLine Debian format package.
-
@doctorwhen what platforms does this support? or pi only
on pi, buster, bullseye and legacy?, pi0/3/4?
-
@sdetweil I’ve successfully deployed and tested MirrorCommandLine on a Raspberry Pi 4 running Raspbian Buster and Ubuntu 20.04 on a couple of systems. The installation package format is Debian so the automated installation and configuration is limited to systems that support the Debian packaging format. However, it should deploy on most Debian based Linux environments. I do not know about Pi Zero or Pi 3. I would appreciate any feedback from folks who use those systems. I have a Pi 400 I can test on and will report the results.
I’ll add a Compatibility section to the README.
-
@sdetweil I should also add that some of the automated MagicMirror installation and configuration in MirrorCommandLine drew upon your previous work at https://github.com/sdetweil/MagicMirror_scripts
I should add a note about your contribution to the automated installation and configuration in the MirrorCommandLine README. Thanks!
-
@doctorwhen note that mm install needs some changes for the latest pi os bullseye. seems ok for reissued buster/ aka legacy (but other things are broken)