EXT‐Photos - bugsounet/MMM-Bugsounet GitHub Wiki
EXT-Photos is a plugins for displaying any photos urls in full-screen discover by EXT-Assistant
Installation
Execute npm run setup:EXT-Photos
in the MMM-Bugsounet's folder.
cd ~/MagicMirror/modules/MMM-Bugsounet
npm run setup:EXT-Photos
Configuration
Insert your configuration in the config.js file of MagicMirror.
{
module: "MMM-Bugsounet/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
MagicMirror 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,
...
Developer Notes
Incoming notification:
Bugsounet_PHOTOS-OPEN
:- Open the photo player with the URLs designed in
payload
. payload
must be an Array of URLs
- Open the photo player with the URLs designed in
Bugsounet_PHOTOS-CLOSE
: Close the photo player
Outgoing notification:
Bugsounet_PHOTOS-CONNECTED
: When the photo player just openBugsounet_PHOTOS-DISCONNECTED
: When the photo player just close
When the photo player is open:
This 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 use EXT_PHOTOS-LOCKED
lockString