Skip to content

Extension for Change Background For GoogleAssistant

License

Notifications You must be signed in to change notification settings

2hdlockness/MMM-GABackground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MMM-GABackground

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

Installation:

cd ~/MagicMirror/modules
git clone https://github.com/bugsounet/MMM-GABackground
cd MMM-GABackground
npm install

Configuration

  • 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 it
    • with-Background.js: allow to change the background of the assistant with your prefered background

How add a recipe to GoogleAssistant ?

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"],

How configure your wanted recipe:

Open your prefered editor and edit your wanted recipe !

  • with-BackgroundStatus.js

    Actually I have prepared 4 models:
    • jarvis:
    • lego:
    • old:
    • cortana:

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 have var file = "myprefered.jpg"
    Just replace the value with your wanted the file name ! (Attention to uppercase,lowercase,...)

Creation of a model

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 !

Notes:

  • For working GoogleAssistant need the fullscreen_above position !
  • No other configuration needed in config.js !

Support and Helping:

Support is now on the 4th Party Modules Forum

Donate

Donate, if you love this module !

About

Extension for Change Background For GoogleAssistant

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published