EXT-Photos is a plugins for displaying any photos urls in full-screen discover by assistant
This module need
EXT-Alert
plugins to display any errors or informations on the screen
Clone the module into your MagicMirror module folder and execute npm intall in the module's directory.
cd ~/MagicMirror/modules
git clone https://github.com/bugsounet/EXT-Photos
cd EXT-Photos
npm install
Insert your configuration in the config.js file of MagicMirror.
{
module: "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/EXT-Photos
npm run update