Hi @bugsounet, thanks for your work. I made a donation a couple of days ago, can you please send me a token?
Edit: Token created and sended in private message
Hi @bugsounet, thanks for your work. I made a donation a couple of days ago, can you please send me a token?
Edit: Token created and sended in private message
@Anthony You are correct, those 2 commands are not actually useful because there’s no native way to set the alarm time in the current code. I’ve only included them for completeness. You will need to modify the code to achieve that.
@Ray I have a black background and my mirror is landscape. I only did some minor changes to the .black_overlay in my custom.css. {width: 0px; height: 0px;}
@ricotte your command will only work if you set up your recipe accordingly.
@Ray it is not my module but this is a not-very-smart recipe that I wrote that works for me.
/** MMM-StopwatchTimer **/
/** vocal control **/
/** 08/09/2021 **/
var recipe = {
transcriptionHooks: {
"START_ALARM": {
pattern: "start alarm",
command: "START_ALARM"
},
"STOP_ALARM": {
pattern: "stop alarm",
command: "STOP_ALARM"
},
"PAUSE": {
pattern: "pause",
command: "PAUSE"
},
"UNPAUSE": {
pattern: "restart timer",
command: "PAUSE"
},
"START_STOPWATCH": {
pattern: "start stopwatch",
command: "START_STOPWATCH"
},
"UNPAUSE_STOPWATCH": {
pattern: "restart stopwatch",
command: "UNPAUSE_STOPWATCH"
},
"STOP": {
pattern: "stop timer",
command: "STOP"
},
"1m": {
pattern: "set timer for 1 minute",
command: "1m"
},
"2m": {
pattern: "set timer for 2 minutes",
command: "2m"
},
"3m": {
pattern: "set timer for 3 minutes",
command: "3m"
},
"4m": {
pattern: "set timer for 4 minutes",
command: "4m"
},
"5m": {
pattern: "set timer for 5 minutes",
command: "5m"
},
"6m": {
pattern: "set timer for 6 minutes",
command: "6m"
},
"7m": {
pattern: "set timer for 7 minutes",
command: "7m"
},
"8m": {
pattern: "set timer for 8 minutes",
command: "8m"
},
"9m": {
pattern: "set timer for 9 minutes",
command: "9m"
},
"10m": {
pattern: "set timer for 10 minutes",
command: "10m"
},
"15m": {
pattern: "set timer for 15 minutes",
command: "15m"
},
"20m": {
pattern: "set timer for 20 minutes",
command: "20m"
},
"25m": {
pattern: "set timer for 25 minutes",
command: "25m"
},
"30m": {
pattern: "set timer for 30 minutes",
command: "30m"
},
"35m": {
pattern: "set timer for 35 minutes",
command: "35m"
},
"40m": {
pattern: "set timer for 40 minutes",
command: "40m"
},
"45m": {
pattern: "set timer for 45 minutes",
command: "45m"
},
"50m": {
pattern: "set timer for 50 minutes",
command: "50m"
},
"55m": {
pattern: "set timer for 55 minutes",
command: "55m"
},
"60m": {
pattern: "set timer for an hour",
command: "60m"
},
},
commands: {
"START_ALARM": {
moduleExec: {
module: (param) => {
this.sendNotification("START_ALARM");
}
},
},
"STOP_ALARM": {
moduleExec: {
module: (param) => {
this.sendNotification("STOP_ALARM");
}
},
},
"PAUSE": {
moduleExec: {
module: (param) => {
this.sendNotification("PAUSE_STOPWATCHTIMER");
}
},
},
"UNPAUSE": {
moduleExec: {
module: (param) => {
this.sendNotification("UNPAUSE_TIMER");
}
},
},
"START_STOPWATCH": {
moduleExec: {
module: (param) => {
this.sendNotification("START_STOPWATCH");
}
},
},
"UNPAUSE_STOPWATCH": {
moduleExec: {
module: (param) => {
this.sendNotification("UNPAUSE_STOPWATCH");
}
},
},
"STOP": {
moduleExec: {
module: (param) => {
this.sendNotification("INTERRUPT_STOPWATCHTIMER");
}
},
},
"1m": {
notificationExec: {
notification: "START_TIMER",
payload: 1 *60,
},
},
"2m": {
notificationExec: {
notification: "START_TIMER",
payload: 2 *60,
},
},
"3m": {
notificationExec: {
notification: "START_TIMER",
payload: 3 *60,
},
},
"4m": {
notificationExec: {
notification: "START_TIMER",
payload: 4 *60,
},
},
"5m": {
notificationExec: {
notification: "START_TIMER",
payload: 5 *60,
},
},
"6m": {
notificationExec: {
notification: "START_TIMER",
payload: 6 *60,
},
},
"7m": {
notificationExec: {
notification: "START_TIMER",
payload: 7 *60,
},
},
"8m": {
notificationExec: {
notification: "START_TIMER",
payload: 8 *60,
},
},
"9m": {
notificationExec: {
notification: "START_TIMER",
payload: 9 *60,
},
},
"10m": {
notificationExec: {
notification: "START_TIMER",
payload: 10 *60,
},
},
"15m": {
notificationExec: {
notification: "START_TIMER",
payload: 15 *60,
},
},
"20m": {
notificationExec: {
notification: "START_TIMER",
payload: 20 *60,
},
},
"25m": {
notificationExec: {
notification: "START_TIMER",
payload: 25 *60,
},
},
"30m": {
notificationExec: {
notification: "START_TIMER",
payload: 30 *60,
},
},
"35m": {
notificationExec: {
notification: "START_TIMER",
payload: 35 *60,
},
},
"40m": {
notificationExec: {
notification: "START_TIMER",
payload: 40 *60,
},
},
"45m": {
notificationExec: {
notification: "START_TIMER",
payload: 45 *60,
},
},
"50m": {
notificationExec: {
notification: "START_TIMER",
payload: 50 *60,
},
},
"55m": {
notificationExec: {
notification: "START_TIMER",
payload: 55 *60,
},
},
"60m": {
notificationExec: {
notification: "START_TIMER",
payload: 60 *60,
},
},
},
}
exports.recipe = recipe
@bugsounet This is my recipe:
var recipe = {
transcriptionHooks: {
"MJ": {
pattern: "play MJ",
command: "MJ"
},
},
commands: {
"MJ": {
functionExec: {
exec: () => {
this.ExtentedOpen({
urls: ["https://www.youtube.com/watch?v=sOnqjkJTMaA"]
})
}
},
soundExec: {
chime: "open"
}
},
}
}
exports.recipe = recipe
After saying “play MJ”, there is a down arrow icon, so it looks like the recipe is being recognised but after the open chime sound, it just brings me back to the home screen and no YouTube video is played.
Similar to the Radio recipe functionality, is it possible to set one up to play a specific YouTube video upon command (using MMM-GA extension because of its better capability)?
If so, how should I modify the exec / command section?
"YouTube": {
functionExec: {
exec: () => {
this.radioCommand({
link: "https://www.youtube.com/watch?v=sOnqjkJTMaA"
})
}
},
So weird. That didn’t work but I eventually got vgencmd to work with this “/usr/bin/vcgencmd display_power 0”.
In the ScreenManager recipe example, it uses vgencmd to turn on and off the screen. In MMM-GA, I can only use mode 4 (HDMI CEC) in config to turn off my screen. Vgencmd doesn’t work.
If I want to change the ScreenManager recipe, what exec command should I use instead of this?
shellExec: {
exec: "vcgencmd display_power 0"
}
Thanks.
@ray I use MMM-StopwatchTimer. The notification is handy as I can create a recipe to start and stop the timer/stopwatch verbally with MMM-GA.