Skip to content

Latest commit

 

History

History
67 lines (50 loc) · 1.75 KB

INSTALL.md

File metadata and controls

67 lines (50 loc) · 1.75 KB

Installation

  1. 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
  2. Add MMM-OneDrive module config in ~/MagicMirror/config/config.js

Upgrade

Run the following command. For example, the Magic Mirror directory is ~/MagicMirror.

cd ~/MagicMirror/modules/MMM-OneDrive
git pull
npm run install-prod

Authorise OAuth Token

On-device (Just do it on Raspberry PI with Desktop UI)

  1. Start MagicMirror as usual

    cd ~/MagicMirror
    npm start
  2. At first execution, It will open a browser and will ask you to login Microsoft account.

  3. Authorize it and close the browser when done

Sperated machine (When the device does not have Desktop UI)

  1. Install a copy in your local machine (Win / Mac)

  2. Start MagicMirror as usual

    cd ~/MagicMirror
    npm start
  3. At first execution, It will open a browser and will ask you to login Microsoft account.

  4. Authorize it and close the browser when done

  5. Copy the file msal/token.json to the folder MMM-OneDrive in the remote device