Klettner/MM-Remote

Possible to add "Refresh mirror" to the main menu under "Shutdown mirror?"

Dresch360 opened this issue · 3 comments

Thanks again! - looks like the API calls aren't working well and would be great to add this to the main menu under "Shutdown Mirror". Is this possible?

http://localhost:8080/remote?action=REFRESH

Could you try to explain what's not working with the API calls? Maybe you can have a look at wiki/custom-commands to see how to use it. I had no issues with it so far.

Sure, I can add this. This shouldn't be too much effort

Thanks for your reply! Sure, every time I do any type of API call, I receive "Cannot Get...." - i.e. http://192.168.x.xx:8080/smartmirror/refresh
I get: "Cannot GET /smartmirror/refresh"

Make sure your Mirror and MMM-Remote-Control are running the current version.

If you want to invoke a refresh from outside of the App you can use: http://<your_ip-Address>:<your_port>/api/refresh you might also need to include your api key in the header of the request e.g "Authorization: "apiKey <your_API_key>" (And don't forget to change <your_ip-Address>, <your_port> and <your_API_key> to your specific values).

To create a refresh custom command in the app:

  • Click on the + in the custom commands tab
  • specify a command name e.g. refresh mirror
  • specify the notification, here /refresh
  • payload should be empty
  • click on create and everything should work

I hope that helps