Dies ist eine alte Version des Dokuments!
Install the Base System via RaspberryPiInstaller
Download latest MM Package from GitHUB MagicMirrorPage in my case it was Version 2.20.0. Download and Unpack it with
wget https://github.com/MichMich/MagicMirror/archive/refs/tags/v2.20.0.tar.gz tar -xvzf v2.20.0.tar.gz
but better clone it with git:
git clone https://github.com/MichMich/MagicMirror cd MagicMirror/ npm install --only=prod --omit=dev
During Install, I see, we need NodeJS Version 14 or newer. On my Raspi there were NodeJS in Version 12, so we have to upgrade NodeJS
cp config/config.js.sample config/config.js
start it with npm run start
To make sure you have all dependencies, issue a
npm install ping npm install sudo
as those both were missing in my case.
List of additional Modules: 3rd-party-modules
Because the Raspi inside the Waveshare MM is very weak in Terms of Performance, I would try to run it in Server and Client mode.
So we copy over the whole Code to an other Raspi and run it there in Server Mode. This Way the Raspi in the Waveshare MM only needs to display the "Browser" Window.
In order to be able to change the Brightness and Backlight of the Monitor you need to tweak a few things. Idea taken from MagicMirror Forum Post by aprilmaccydee
Edit nano /boot/config.txt
Add: dtparam=i2c2_iknowwhatimdoing
and then reboot the Raspberry
Then sudo apt install ddcutil
Run sudo ddcutil detect
You should see an output like:
pi@raspberrypi:~ $ sudo ddcutil detect Display 1 I2C bus: /dev/i2c-2 EDID synopsis: Mfg id: RTK Model: RTK FHD Serial number: [redacted] Manufacture year: 2011 EDID version: 1.3 VCP version: 2.2
If you do, you can then run:
sudo ddcutil getvcp 10 to get the brightness
sudo ddcutil setvcp 10 [1-100]
to set the brightness, where 1-100 is the desired value of the brightness
Number | Description | Values (default) |
---|---|---|
10 | Brightness | 1-100 (20) |
12 | Contrast | 1-100 (50) |
14 | Color Preset | 0x01 = sRGB |
16 | Red Color Gain | 1-100 (50) |
18 | Green Color Gain | 1-100 (50) |
20 | Horizontal Position (Phase) | 0-100 (0) |
22 | Horizontal Size | unsupported |
30 | Vertical Position (Phase) | 0-100 (0) |
32 | Vertical Size | unsupported |
44 | Rotation | unsupported |