-
-
Notifications
You must be signed in to change notification settings - Fork 286
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
add warnings for charge thresholds #679
Conversation
Good idea, but the issue is these messages will only be printed once in There needs to be something that is called every time the daemon refreshes. A potential solution I can think of would be to save any messages thrown by the battery scripts during setup and just append those to the stats on every daemon refresh |
I think for the mean time this will work it will give warnings with --live --monitor --status Mabye in a future PR we can add these other functions |
Great start and definitely needed, but we can make this PR better :) Logging is definitely a much needed feature, work was started on this long time ago as part of #182 but unfortunately was never completed. Hence, until we don't have that. What I would propose is to output both:
lines as part of live, monitoring (already there, just let's format them to be as above with line breaks separating it from rest of the output) and also include this as part of |
ive reformatted the output of the battery information how does this look? -------------------------------- Battery Info --------------------------------- battery count = 2 battery0 start threshold = 80 battery0 stop threshold = 90 battery1 start threshold = 80 battery1 stop threshold = 90 |
Looks good, but I would remove the empty lines between these, i.e:
|
unfortunately i cant remove the blank lines for some reason in python when you read a file it prints a blank line. ive tried other ways but it didnt work. |
Just add |
@PurpleWazard I didn't see it, did you add these changes? Thinking of making a release in few days so want to merge all PR that will be part of it. |
just pushed it sorry about the delay |
No worries and thanks! Unfortunately after install
Also, let's add it to |
on it |
--debug is already working i fixed the typo --stats works |
Debug and install (--stats) works perfectly now, but
Couldn't replicate this on changes from |
-live works without issues for me. that issue your having might have alreadly been fix its just my repo hasnt gotten that commit yet. i just updated my fork so it should have those changes now. |
Perfect! As always, thank you for your contribution and you'll be credited for you work as part of upcoming release. |
this PR added warning messages. #675 suggested this change. instead of try and except this replaces it with
os.path.exists
andos.path.isfile
checks