I tried adding a recipe for controlling page rotation of EXT-Pages.However, when I execute the commands, the notifications do not seem to have any effect on the rotation behavior. Even the initial notification I send when the onReady
-Hook gets called does not stop the rotation. The content of the recipe is shown below:
var recipe = {
transcriptionHooks: {
PAGEROTATIONENABLE: {
pattern: "Rotation on",
command: "PAGEROTATIONENABLE",
},
PAGEROTATIONDISABLE: {
pattern: "Rotation off",
command: "PAGEROTATIONDISABLE",
},
},
commands: {
PAGEROTATIONENABLE: {
soundExec: {
chime: "open",
},
notificationExec: {
notification: "EXT_PAGES-RESUME",
},
},
PAGEROTATIONDISABLE: {
soundExec: {
chime: "close",
},
notificationExec: {
notification: "EXT_PAGES-PAUSE",
},
},
},
plugins: {
onReady: "PAGEROTATIONDISABLE",
},
};
exports.recipe = recipe; // Don't remove this line.
In my MM config file, the contents for EXT-Pages looks like this:
{
module: "EXT-Pages",
position: "top_bar",
config: {
pages: {
0: ["Home"],
1: ["Entertainment"],
2: ["Technical"],
},
fixed: [
"EXT-Pages",
"EXT-Screen",
"EXT-Internet",
"EXT-Detector",
"EXT-Spotify",
"EXT-RadioPlayer",
"clock",
"updatenotification",
"weather",
"compliments",
"newsfeed",
],
rotationTime: 10000,
},
I checked the source code a bit and saw that the fired notifications for changing resume only have an effect if EXT-Pages is not locked by the Gateway via the dedicated lock/unlock notifications. Might this be an issue here? And if yes, how can I solve it?
Thanks in advance!
Best regards,
devtobi