Screen Manager Recipe
-
It works!!
How can I turn it on now? exec: âecho âstandby 1â | cec-client -sâ ? -
to on
echo 'on 0' | cec-client -s
-
BINGO!! Thanks man, you rock!
-
Hereâs the Recipe code for other people use if they need to use CEC:
/** Screen Manager /
/ Vocal commands script /
/ set partern in your language /
/ @bugsounet **/var recipe = {
transcriptionHooks: {
âSCREEN_TURNOFFâ: {
pattern: âTurn your screen OFF in Your Own Languageâ,
command: âSCREEN_TURNOFFâ
},
âSCREEN_TURNONâ: {
pattern: âTurn your screen ON in Your Own Languageâ,
command: âSCREEN_TURNONâ
}
},commands: {
âSCREEN_TURNOFFâ: {
soundExec: {
chime: âcloseâ,
},
shellExec: {
exec: âecho âstandby 0â | cec-client -sâ
}
},
âSCREEN_TURNONâ: {
soundExec: {
chime: âopenâ,
},
shellExec: {
exec: âecho âon 0â | cec-client -sâ
}
}
}
}exports.recipe = recipe // Donât remove this line.
-
Donât forget to save it with a different file name because it will reset on next update
-
@bugsounet said in Screen Manager Recipe:
Donât forget to save it with a different file name because it will reset on next update
You bet! Thanks again
-
@bmachina
Hello,
For information, this recipe did not work for me.in effect,
echo âstandby 0â | cec-client -s
and
echo âon 0â | cec-client -s
did not work for me.
The appropriate commands are:
echo standby 0 | cec-client -s -d 1
and
echo on 0 | cec-client -s -d 1
I have another problem, unable to make the recipe work as it was written in French.
It was necessary to replace the commands with âTURN ONâ and TURN OFF "for this to work.
I am still trying to find a solution to this problem.
Hope this can help other people out.
Regards,
-
Awesome thanks for the update @Chris! These ones are also working for me but I do notice sometimes the older ones were returning ShellExec error but only sometimes. I will keep an eye on this ones now.
-
-
@bugsounet
Hello,
Thanks for the compliment.
as I am currently working on CEC utilities in order to save energy on the consumption of the TV connected to the magic mirror (rather useful in France with the price of electricity at the moment âŠ). I looked for a module that could transform a USB camera into a motion detector for waking up and sleeping a CEC compatible screen.
I may have found a solution by modifying a few command lines on an existing module. I continue my tests. If people are interested, I will pass the procedure on.Regards,
-
@chris: humm⊠maybe another @bugsounet library for thisâŠ
-
This post is deleted! -
@chris x2