Jopyth / MMM-Remote-Control

Magic Mirror Module to shutdown or configure your mirror
MIT License
498 stars 149 forks source link

Module update-status from API #276

Open sindrebroch opened 2 years ago

sindrebroch commented 2 years ago

Description

Hi.

I would love to be able to check if there are any updates available per module through the API. As far as I can tell it's not possible as of now? I see that it is possible check mmUpdateAvailable, and to run an update-command, but I would love to be able to see state as well, without running the update-command.

I'm writing an integration for HomeAssistant, and update-control would be a great addition.

Great work on the API, it's fantastic!

Changelog

No response

Requirements

No response

Additional info

No response

ezeholz commented 2 years ago

You're right, there isn't any check-update. I'm gonna work on it. Thanks!

sindrebroch commented 2 years ago

Not super comfortable with express-apis, but I threw together something in a fork. There is also a bunch of formatting changes, so the diff is a bit messy.

I guess you can use it for inspiration if you want to add it at some point: https://github.com/sindrebroch/MMM-Remote-Control

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.