New Recipe for updating Magic Mirror
-
/This is a working Recipe for updating Magic Mirror it tweaked shutdown recipe to achieve this have fun/
/** Vocal commands script /
/ set partern in your language /
/ Thankyou @bugsounet **/var recipe = {
transcriptionHooks: {
“GA_UPDATE_GA”: {
pattern: “update google assistant”,
command: “GA_UPDATE_GA”
},
“GA_UPDATE”: {
pattern: “update magic mirror”,
command: “GA_UPDATE”
},
“GA_UPGRADE”: {
pattern: “upgrade magic mirror”,
command: “GA_UPGRADE”
}
},commands: {
“GA_UPDATE_GA”: {
soundExec: {
chime: “close”,
},![alt text](image url)
shellExec: {
exec: “lxterminal -e ‘cd ~/MagicMirror/modules/MMM-GoogleAssistant && npm run update’”,
}
},
“GA_UPDATE”: {
soundExec: {
chime: “close”,
},
shellExec: {
exec: “lxterminal -e ‘cd ~/MagicMirror/modules/MMM-GoogleAssistant && npm run refresh’”,
}
},"GA_UPGRADE": { soundExec: { chime: "close", }, shellExec: { exec: "lxterminal -e 'sudo apt-get update && full upgrade'", } }
}
}exports.recipe = recipe // Don’t remove this line.