This projects combines the MagicMirror² project with the balenaCloud platform. It drastically improves management of multiple MagicMirror² devices.
- Free Balena Cloud Account (Depending on how many devices you want to manage)
- Raspberry Pi (Not the Zero)
- Clone this repository to your local PC
- Initialize submodules
- execute
git submodule update --init --recursive
- execute
The config.js
file defines the content of your MagicMirror. Modify the existing config.js
file in MagicMirror/config
as you like.
You need to set the GPU memory to something suitable for hardware accelerated graphics. You can set only one of the following if you know how much RAM your Pi has or you can set all of them and your Pi will autoselect based on its memory.
Checkout the balena-wpe project for more information, it is used to display the MagicMirror² interface
Key | Value |
---|---|
RESIN_HOST_CONFIG_gpu_mem_256 |
128 |
RESIN_HOST_CONFIG_gpu_mem_512 |
196 |
RESIN_HOST_CONFIG_gpu_mem_1024 |
396 |
Modules must be placed in MagicMirror/modules
. You can use git submodules or just copy the module into this directory.
- Install the
balena
CLI tools and push to your project by executingbalena push MY_PROJECT
- You should see a unicorn if everything is finished
- In your balena cloud dashboard you should see your device (or fleet) to update and fetch the just pushed changes
In Balena Cloud add an environment variable named TZ
, as a value add your timezone according to this documentation
The environmental variable can either be added to the whole fleet, or just to an individual device
Add RESIN_HOST_CONFIG_display_rotate
as a custom configuration variable, note the values below.
Description | Value |
---|---|
Normal |
0 |
90° |
1 |
180° |
2 |
270° |
3 |
You can't use the port 8080
, it is already used by the "Browser" service.
The default port has been changed to 90
instead.
- Unstable MagicMirror service (restarting every now and then)
- Browser starting before the MagicMirror service has been started resulting in a white screen on rare occasions
- Workaround: Just restart the
Browser
service when this happens
- Workaround: Just restart the
- Original MagicMirror Project: https://github.com/MichMich/MagicMirror
- MagicMirror Docker Port: https://github.com/bastilimbach/docker-MagicMirror
- balena-wpe: https://github.com/balena-io-projects/balena-wpe