Read the statement by Michael Teeuw here.
MMM-ModuleScheduler for Monitor control
-
@sdetweil it tell me it could not validate the config file.
then this is below that "SyntaxError: Invalid destructuring assignment target
" -
@tootiemac3 what line number is shown? I don’t see an error like that. show rest of module section in config. use code block pleasr
-
@sdetweil im not 100% sure what you mean
-
@sdetweil its showing line 201 has the error.
-
@tootiemac3 ok, I can’t see line 201. show the config. paste the text, select it, and use the code block marker ‘</>’ button to mark the selected text
-
Line 201 according to the config file is the line
module: “MMM-ModuleScheduler”, -
@tootiemac3
ok, that means the real error occurred BEFORE line 201, and was detected there. so. show us before -
above that is the working news feed module.
-
@tootiemac3 can u show the config please. change 1 or 2 char in any API key to something to make it garbage
-
{ module: "newsfeed", position: "bottom_bar", config: { feeds: [ { title: "BBC UK", url: "https://feeds.bbci.co.uk/news/rss.xml?edition=uk" } ], showSourceTitle: true, showPublishDate: true, broadcastNewsFeeds: true, broadcastNewsUpdates: true } }, ] // < --- this? }, // < --- this? { module: "MMM-ModuleScheduler", config: { notification_schedule: [ // TURN THE MONITOR/SCREEN ON AT 07:30 EVERY DAY {notification: 'REMOTE_ACTION', schedule: '20 15 * * *', payload: {action: "MONITORON"}}, // TURN THE MONITOR/SCREEN OFF AT 22:30 EVERY DAY {notification: 'REMOTE_ACTION', schedule: '25 15 * * *', payload: {action: "MONITOROFF"}}, // RESTART THE MAGICMIRROR PROCESS AT 2am EVERY SUNDAY {notification: 'REMOTE_ACTION', schedule: '0 2 * * SUN', payload: {action: "RESTART"}} ] } }; //< --- ';' this -
@tootiemac3 said in MMM-ModuleScheduler for Monitor control:
] //< — what is this?
}, // < - what is this?
{
module: “MMM-ModuleScheduler”]; // < – what is ‘;’ this?
-
i would guess that you pasted the ModuleScheduler module block in the wrong place, after the end for the modules ;[] array closure
-
@sdetweil thank you so much for this. i think this is what i did then messed up the rest of the coding when i tried to move it around.
the advice you gave above about looking at the ] and } was great! i actually managed to get the mirror to boot with scheduler coded and i am now just testing if it will actually work.
Fingers crossed! -
temporary fix for npm config:check
edit ~/MagicMirror/js/check_config.jschange line 57 to look like this
const messages = linter.verify(data);change line 66 to look like this
// throw new Error("Wrong syntax in config file!");
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login