Read the statement by Michael Teeuw here.
MMM-Remote-Control
-
@KristjanESPERANTO
I donât get a failure, however the alert/showalert function does not work:{"success":false,"message":"Module alert does not have any actions defined."} -
@bloodknot Thanks for the quick feedback. Okay, that was still progress. Now please try v4.2.2.
-
@KristjanESPERANTO
That seems to have fixed my specific problem. Thank you!!!
I have tested:
http://magicmirror2:8080/api/monitor/on -
@KristjanESPERANTO
Sorry for the split message.
I have successfully tested:
http://magicmirrorip:8080/api/monitor/on
http://magicmirrorip:8080/api/monitor/off
http://magicmirrorip:8080/api/refresh
http://magicmirrorip:8080/api/reboot
http://magicmirrorip:8080/api/alert/showalert -
@bloodknot Perfect, thank you for testing! đ
-
hey guysâŚ
having some issues using the shutdown/reboot commandsâŚthey throw this error, even though I have the API key in the config
{âsuccessâ:false,âmessageâ:âForbidden: API Key Not Provided!â}
hereâs the config
{ module: 'MMM-Remote-Control', // position: 'bottom_left', // Required to show URL/QR code on mirror // you can hide this module afterwards from the remote control itself config: { showModuleApiMenu: true, secureEndpoints: true, apiKey: "111111111-2222-3333-4444-555555555555", customCommand: { monitorOnCommand: 'loginctl unlock-session 1', monitorOffCommand: 'loginctl lock-session 1', shutdownCommand: 'systemctl poweroff', rebootCommand: 'systemctl reboot', // Optional, See "Using Custom Commands" below }, } }, -
said in MMM-Remote-Control:
hey guysâŚ
having some issues using the shutdown/reboot commandsâŚthey throw this error, even though I have the API key in the config
{âsuccessâ:false,âmessageâ:âForbidden: API Key Not Provided!â}
hereâs the config
{ module: 'MMM-Remote-Control', // position: 'bottom_left', // Required to show URL/QR code on mirror // you can hide this module afterwards from the remote control itself config: { showModuleApiMenu: true, secureEndpoints: true, apiKey: "111111111-2222-3333-4444-555555555555", customCommand: { monitorOnCommand: 'loginctl unlock-session 1', monitorOffCommand: 'loginctl lock-session 1', shutdownCommand: 'systemctl poweroff', rebootCommand: 'systemctl reboot', // Optional, See "Using Custom Commands" below }, } },i figure it outâŚhad to append the apiKey at the end of the url for all commands
http://192.168.1.5:8888/api/command/rebootCommand?apiKey=111111111-2222-33333-4444
