Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] Host system Battery Status #1262

Open
phil2sat opened this issue Feb 4, 2024 · 0 comments
Open

[FR] Host system Battery Status #1262

phil2sat opened this issue Feb 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@phil2sat
Copy link

phil2sat commented Feb 4, 2024

Requested feature

Since i use a tablet and its battery powered i wanted to have a battery Status in the bar.

i know this Feture was requested ages ago and some users all over the web want such a feature.

i think about something:

make a configurable option like
BATTERY_STATUS_COMMAND: cat /sys/class/power_supply/battery/capacity
which is send periodicly
BATTERY_STATUS_COMMAND_REFRESH: 30 #seconds to refresh

the Output has to be the status in percent, how the user get there is up to him, like with tee and/or some regex

also it would be possible to simply monitor a file on change so either the user writes a script wich periodically updates the file or such file exists like in my case:
/sys/class/power_supply/battery/capacity, under normal circumstances every battery powered linux device has such a file, the location only differs slightly, like someone has:
/sys/class/power_supply/surface-rt-battery/capacity.

Also possible to just run a gcode_shell_command macro and write the output to a file, but thats more complicated since normally klipper runs on another device than klipperscreen. at least in my case (but not impossible ssh will do just fine)

i hope i will knock on some open doors, in my case i would just programm it myself but im unable to write only a single liner in python. Away from this from what i know it cant be that hard to implement.

thanks in advance
phil2sat

Is your feature request related to a problem?

no

Describe alternatives you have considered

checked moonraker for such an option to just display it eg as fan but its not possible

Additional information

No response

@phil2sat phil2sat added the enhancement New feature or request label Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant