MMM-Remote-Control: Cannot access REST api.
Upgraded to v2. Config file is:
port: 9411
config: {
// customCommand: {}, // Optional, See "Using Custom Commands" below
// customMenu: "custom_menu.json", // Optional, See "Custom Menu Items" below
showModuleApiMenu: true, // Optional, Enable the Module Controls menu
apiKey: "", // Optional, See API/README.md for details
}
I can access and use web ui just fine.
From home directory I run:
curl -X GET http://localhost:9411/api/monitor/off
Output:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /api/monitor/off</pre>
</body>
</html>
Is there something I need to do to enable the API?
I have installed/ updated manually and via the script with no failures.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 2
- Comments: 20
I GOT IT!!! Finally. With a bit of debugging and inserting a lot of
console.log
statements. 😉 To all, who might have the same issue: Make sure, you do not have any more files or folders in "MagicMirror\modules" folder, than actually necessary!!! Cheers, Tim.Same here - not working with error “
cannot GET
”Same here!