Skip to content

Latest commit

 

History

History
56 lines (44 loc) · 1.61 KB

File metadata and controls

56 lines (44 loc) · 1.61 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

Device code (SSH or VNC with Desktop UI)

  1. Start MagicMirror as usual

    cd ~/MagicMirror
    npm start
  2. 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.
    

    You can see the message on screen also.

  3. Open the URL in your mobile phone / PC / any device and follow the instructions