Solved With-EXT-Screen ?
-
hello everybodyl, I just finished the installation of Ext-Screen and Ext-Pir without problem, I would like to know the best possibilities of method to play a brief chime like a soundExec of GA when the userpresence notification or screen wake up is detected. possible with “recipe”? a piece of code in the modules concerned?
Thanks to you -
Hi,
something like this, maybe?
var recipe = { commands: { "WakeUpSound": { moduleExec: { module: ["MMM-GoogleAssistant"], exec: (module, noti) => { if (noti.notification == "EXT_SCREEN-WAKEUP") { module.assistantResponse.playChime("opening") } } } } }, plugins: { onNotificationReceived: "WakeUpSound" } } exports.recipe = recipe
Other way:
-
You can replace
EXT_SCREEN-WAKEUP
byEXT_SCREEN-ON
for a sound when the screen turn on -
EXT-Screen send a popup to EXT-Alert for displaying turn on warning but i don’t emit some sound. Why ? just because i think it will make some noise for nothing
-
After… I can code this options but it will be disabled by default
-
-
Wouah, it’s exactly that. I haven’t totaly finished yo assimilate the logic of all de can do with tour modules, but you make me want to learn, and to code, thank you very much. I will try to tweak if it’s possible with a “mysound” chime by myself.
I seem to have already come across a similar topic in Portuguese so why not default option disabled, but here I am advanced.
-
replace
module.assistantResponse.playChime("opening")
bymodule.assistantResponse.playChime("your_sound.mp3", true)
your_sound.mp3
must be inresources
directory ofGA
-
Thanks so much, i will test it today, Yesterday tried i’ve add the last line "recipe. export recipe and test EXT_SCREEN-WAKEU and EXT-SCREEN-ON , the module there Is upload but no chime, i will look what logs tell me. Or maybe just try a simple notification with soundExec
-
Bonjour, merci beaucoup, la recette fonctionne parfaitement
le sujet peut être résolu
-
bugsounet