Screen Manager Recipe
-
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