-
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 first execution, It will open a browser and will ask you to login Microsoft account.
-
Install a copy in your local machine (Win / Mac)
-
Start MagicMirror as usual
cd ~/MagicMirror npm start
-
At first execution, It will open a browser and will ask you to login Microsoft account.
-
Copy the file
msal/token.json
to the folderMMM-OneDrive
in the remote device