Solved Hook not activating GAv4
-
Hey!
Could somebody quickly revise this recipe I wrote for testing on my installation of GA? It is based on the Reboot-Restart-Shutdown recipe. I wanted to create my own recipe for music so I started off with this one with the goal to modify it step by step until it can control music.
The strange thing is, when both Reboot-Restart-Shutdown.js and recipe-deezer.js (my recipe) are activated in config.js, google reacts correctly to Reboot-Restart-Shutdown and completely ignore my recipe (No arrow icon/ tries to search my sentence on the internet).
So I think it’s probably just a syntax problem, though I can’t find what exactly…
Could you check it please??Here it is
var recipe = { transcriptionHooks: { "PLAY": { pattern: "mets de la musique", command: "PLAY" }, "PAUSE": { pattern: "test test test", command: "PAUSE" } }, commands: { "PLAY": { soundExec: { chime: "close", }, shellExec: { exec: "sudo reboot now" } }, "PAUSE": { soundExec: { chime: "close", }, shellExec: { exec: "pm2 restart 0" } } } } exports.recipe = recipe // Don't remove this line.
Thanks a lot!
-
for now the recipe is just supposed to reboot/restart, but with different hooks
-
right so I just retried the program today and now it works! (even though I didn’t change anything)
I’ll just consider yesterday was a bad day, problem solved -
-
bugsounet