Klettner / MM-Remote

MM-Remote is an Android :iphone: Linux and Windows :computer: app to control your MagicMirror remotely
MIT License
60 stars 9 forks source link

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

Closed Dresch360 closed 3 years ago

Dresch360 commented 3 years ago

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

Klettner commented 3 years ago

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

Dresch360 commented 3 years ago

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"

Klettner commented 3 years ago

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 , and to your specific values).

To create a refresh custom command in the app:

I hope that helps