EXT-Photos is a plugins for displaying any photos urls in full-screen discover by assistant
Execute
npm run install:EXT-Photos
in the MMM-GoogleAssistant's folder.
cd ~/MagicMirror/modules/MMM-GoogleAssistant
npm run install:EXT-Photos
Insert your configuration in the config.js file of MagicMirror.
{
module: "MMM-GoogleAssistant/EXTs/EXT-Photos",
config: {
debug: false,
displayDelay: 20 * 1000,
loop: false
}
},
Option Description Type Default debug Enable or not debug mode Boolean false displayDelay Delay before change photo automaticaly in ms. (default is 20 secs) Number 20000 loop Make a loop on all photos Boolean false
electronOptions
A new part of config is needed for displaying this module.
On the begining of MagicMirror config.js, modify with electronOptions
var config = {
address: "localhost",
electronOptions: {
webPreferences: {
webviewTag: true
}
},
port: 8080,
...
EXT_PHOTOS-OPEN
:
payload
.payload
must be an Array of URLsEXT_PHOTOS-CLOSE
: Close the photo playerEXT_PHOTOS-CONNECTED
: When the photo player just openEXT_PHOTOS-DISCONNECTED
: When the photo player just closeThis module will hide all modules for open the photo player
It's the better way to disable all modules to increase RPI performance
It will useEXT_PHOTOS-LOCKED
lockString
cd ~/MagicMirror/modules/MMM-GoogleAssistant
npm run update
cd ~/MagicMirror/modules/MMM-GoogleAssistant
npm run remove:EXT-Photos