EXT-Website is an embedded application.
This application is available directly through your browser.
It can be used locally or remotely over the internet.
Execute npm run install:EXT-Website
in the MMM-GoogleAssistant's folder.
cd ~/MagicMirror/modules/MMM-GoogleAssistant
npm run install:EXT-Website
Define your MMM-GoogleAssistant website configuration
{
module: "MMM-GoogleAssistant/EXTs/EXT-Website",
config: {
debug: false,
username: "admin",
password: "admin",
useAPIDocs: false
}
},
Notes:
** It's an example
** For better security, best way don't use default username and password
Option Description Type Default debug enable or not debug mode Boolean false username Define your username for login String admin password Define your password for login String admin useAPIDocs Display API Docs link in website false
MMM-GoogleAssistant website can be open with your browser
You have to know your ip address of your pi !
Sample:
192.168.0.200
Open your browser with this address: http://192.168.0.200:8081
Your browser will open MMM-GoogleAssistant website
Now, just enter your credentials defined in website config
MMM-GoogleAssistant will inform you in logs of MagicMirror²
[LOG] [WEBSITE] Start listening on port 8081 [LOG] [WEBSITE] Available locally at http://192.168.0.200:8081 [LOG] [WEBSITE] Website Ready!
With Internet, you can use it in remote too
Just map your prefered incoming port to MMM-GoogleAssistant port (8081) of your pi !
In this case, you can control MMM-GoogleAssistant over the world with another internet connexion, or with your phone wherever you are
EXT-Website
have now his proper API.
You can consult API docs by enable useAPIDocs: true
in your configuration.
You will discover API Docs
in MMM-GoogleAssistant
website navbar
Note:
This feature is only for testing and developing.
/sysinfo: Sends a summary of the state of your system in Telegram
/sysinfo show: Will display state of your system in MagicMirror²
/sysinfo hide: Will close sysinfo windows of MagicMirror²
cd ~/MagicMirror/modules/MMM-GoogleAssistant
npm run update
cd ~/MagicMirror/modules/MMM-GoogleAssistant
npm run remove:EXT-Website