Skip to content

Add battery reporting feature#135

Open
caco3 wants to merge 1 commit into
freakified:masterfrom
caco3:battery-reporting
Open

Add battery reporting feature#135
caco3 wants to merge 1 commit into
freakified:masterfrom
caco3:battery-reporting

Conversation

@caco3
Copy link
Copy Markdown

@caco3 caco3 commented May 22, 2026

  • Send battery data and charging state to phone when they change
  • Add JavaScript handler to POST data to configured endpoint
  • Add message keys to package.json for battery data
  • Increase app_message outbox buffer size to 512 bytes
  • Update BASE_CONFIG_URL
  • Update README with battery reporting feature attribution

This feature got adapted from https://github.com/skylord123/ForeCal, see skylord123/pebble-home-assistant-ws#4 for details.

Also note #136 for the Configuration UI part!

If you want to merge it, don't forget to change back BASE_CONFIG_URL!

- Send battery data and charging state to phone when they change
- Add JavaScript handler to POST data to configured endpoint
- Add message keys to package.json for battery data
- Increase app_message outbox buffer size to 512 bytes
- Update BASE_CONFIG_URL
- Update README with battery reporting feature attribution
@tilden
Copy link
Copy Markdown
Member

tilden commented May 30, 2026

Thanks for the MR, I appreciate the effort!

That said, I'm not sure if there would be a lot of demand for a feature like this, especially what with Muninn's battery monitoring and export capabilities.

@caco3
Copy link
Copy Markdown
Author

caco3 commented May 30, 2026

I see you point, but there are 2 different expectations:

  1. I want to receive the battery level in my home automation system, muninn can not give me this.
  2. I have other apps which I want to run (back- and foreground). I am not sure if this is possible with muninn or if they are mutually exclusive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants