EXT‐Updates - bugsounet/MMM-Bugsounet GitHub Wiki

The updatenotification module is one of the default modules of the MagicMirror. This will display a message whenever a new version of the MagicMirror application is available.

Now, let's apply automatic updates on EXTs and MMM-Bugsounet And restart MagicMirror when process is done (optional)

Installation

Execute npm run setup:EXT-Updates in the MMM-Bugsounet's folder.

cd ~/MagicMirror/modules/MMM-Bugsounet
npm run setup:EXT-Updates

Configuration

use MagicMirror²'s config.js file to configure EXT-Updates

Simple

{
  module: "MMM-Bugsounet/EXTs/EXT-Updates",
  configDeepMerge: true
},

Full & Detailed

This is the default configuration if no values are defined

{
  module: "MMM-Bugsounet/EXTs/EXT-Updates",
  config: {
    debug: false,
    autoUpdate: true,
    autoRestart: true,
    logToConsole: true,
    timeout: 2*60*1000,
    welcome: true,
    watchdog: true
  }
},

Configurable fields

field description type default value
debug When you set debug to true, detailed log will be recorded. If you don't want log, set it to false. BOOLEAN false
autoUpdate If you want an automated update process, just activate it! BOOLEAN true
autoRestart Restart MagicMirror after update automatically. BOOLEAN true
logToConsole Log update process and result in console. BOOLEAN true
timeout Maximum execution time of an update in ms NUMBER 2 * 60 * 1000
welcome Informs MagicMirror² PID process number at startup BOOLEAN true
watchdog Checks all processes and ensures that MagicMirror² is run only once BOOLEAN true

Notes:

If you use pm2 app: EXT-Updates will detect it automaticaly!

EXT-TelegramBot Commands

EXT-TelegramBot is a pretty plugin !

So, we are going to use it like a real bot!

This is commands:

/update

update manager

It will check if any update is needed

If an update is found, it will inform you

You can update manually a module (if an update is needed) with /update <module_name> command

Only EXTs plugins and MMM-Bugsounet can be updated !

/scan

Perform a new scan of any modules on github and display if any update is needed