This module is an extension for MMM-GoogleAssistant.
It allows to change the default Google Assistant background to your own or with animated gifs for each status of the assistant
Needed: MMM-GoogleAssistant
cd ~/MagicMirror/modules
git clone https://github.com/bugsounet/MMM-GABackground
cd MMM-GABackground
npm install
-
I have just to configure your recipe and update your recipe configuration in MMM-GoogleAssistant
-
npm installer have installed 2 new recipes in GoogleAssistant recipes directory
with-BackgroundStatus.js
: allow to change the background of the assistant for each status of itwith-Background.js
: allow to change the background of the assistant with your prefered background
In your GoogleAssistant configuration (in config.js), you have a recipe:[]
field, just add your wanted recipe on it !
Sample:
recipes: [ "with-BackgroundStatus.js"],
if you have already a recipes configuration just add it in the queue
recipes: [ "with-MMM-TelegramBot.js", "with-BackgroundStatus.js"],
Open your prefered editor and edit your wanted recipe !
You have just to replace the value of var model=
by your wanted model
By default, i have set jarvis
Sample: If you want lego
model just replace jarvis
par lego
var model= "lego"
with-Background.js
Past your prefered background file in the root directory of MMM-GABackground
In this recipe, you havevar file = "myprefered.jpg"
Just replace the value with your wanted the file name ! (Attention to uppercase,lowercase,...)
GoogleAssistant have some Status
: listen, standby, confirmation, reply, error, hook
The recipe read it
So we will apply a gif to all status !
- Make a directory with the name of the new model
- Past all wanted GIFs to apply
- Rename your GIF for reading with the status
Names of files MUST be:- listen.gif
- standby.gif
- confirmation.gif
- reply.gif
- error.gif
If a gif is missing: it return a black screen for the missing status GIF
Now, you have just to select your model in your recipe configuration
You can Make a PullRequest with your own model !
- For working GoogleAssistant need the
fullscreen_above
position ! - No other configuration needed in config.js !
Support is now on the 4th Party Modules Forum
Donate, if you love this module !