-
Install Module
Run the following command. For example, the Magic Mirror directory is
~/MagicMirror.cd ~/MagicMirror/modules git clone https://github.com/hermanho/MMM-OneDrive.git cd MMM-OneDrive npm run install-prod
If you are using Docker
cd ~/MagicMirror/modules git clone https://github.com/hermanho/MMM-OneDrive.git docker exec -it -w /opt/magic_mirror/modules/MMM-OneDrive magic_mirror npm run install-prod
-
Add MMM-OneDrive module config in ~/MagicMirror/config/config.js
Run the following command. For example, the Magic Mirror directory is ~/MagicMirror.
cd ~/MagicMirror/modules/MMM-OneDrive
git pull
npm run install-prod-
Start MagicMirror as usual
cd ~/MagicMirror npm start
-
At the first time execution, a message will be shown about the Device Code and sign in URL in the terminal.
[2025-03-18 01:23:45.000] [INFO] [ONEDRIVE:AuthProvider] To sign in, use a web browser to open the page https://www.microsoft.com/link and enter the code ABCZ68UH to authenticate. -
Open the URL in your mobile phone / PC / any device and follow the instructions

