Add plugin for mupihat #78
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces the initial plugin for the MuPiHAT.
It has been tested in hardware by different test users. The Plugin is for the RaspberryPI HAT see mupihat.de
It includes setup for the MuPiHAT Volumio plugin, providing battery monitoring and management capabilities for the MuPiHAT Raspberry Pi HAT. The changes include configuration files, UI definitions, localization, installation scripts, and package management files to enable full integration with Volumio. The most important changes are grouped below:
Plugin Configuration and UI:
UIConfig.jsonto define the plugin's configuration interface, allowing users to select battery types, set custom voltage thresholds, and view MuPiHAT status from the Volumio web UI.strings_en.jsonfor all UI elements and documentation tooltips.Plugin Settings and Defaults:
config.jsonto store default plugin settings, including battery type, current limit, and custom voltage thresholds for battery management.Installation and System Integration:
install.shthat sets up system and Python dependencies, copies necessary files, configures boot scripts, and installs/enables a systemd service for the MuPiHAT battery management daemon.mupi_hat.servicefor managing the MuPiHAT background service, ensuring it starts with the system and integrates with Volumio.Package Management:
package.jsonandpackage-lock.jsonto define Node.js dependencies, plugin metadata, and compatibility requirements for Volumio and Node.js versions. [1] [2]