EXT-Browser is a plugins for displaying any internet web page like a real browser in fullscreen
Execute
npm run install:EXT-Browser
in the MMM-GoogleAssistant's folder.
cd ~/MagicMirror/modules/MMM-GoogleAssistant
npm run install:EXT-Browser
Insert your configuration in the config.js file of MagicMirror.
{
module: "MMM-GoogleAssistant/EXTs/EXT-Browser",
config: {
debug: false,
displayDelay: 60 * 1000,
scrollActivate: false,
scrollStep: 25,
scrollInterval: 1000,
scrollStart: 5000
}
},
Option Description Type Default debug Enable or not debug mode Boolean false displayDelay Delay before closing the browser automaticaly in ms. If you want to disable this delay, set it to 0 (default is 60 secs) Number 60000 scrollActivate Activate or not auto-scrolling Boolean false scrollStep Scrolling step in px for scrolling down Number 25 scrollInterval Scrolling interval for next scrollStep Number 1000 scrollStart Delay before scrolling down in ms (after url loaded ) Number 5000
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_BROWSER-OPEN
: Open the browser with the URL designed in payload
EXT_BROWSER-CLOSE
: Close the browserEXT_BROWSER-CONNECTED
: When the browser just openEXT_BROWSER-DISCONNECTED
: When the browser just closeThis module will hide all modules for open the browser
It's the better way to disable all modules to increase RPI performance
It will useEXT_LOCKED
lockString
cd ~/MagicMirror/modules/MMM-GoogleAssistant
npm run update
cd ~/MagicMirror/modules/MMM-GoogleAssistant
npm run remove:EXT-Browser