-
Notifications
You must be signed in to change notification settings - Fork 33
Description
Hi,
First of all, thanks for making the amazing hardware and the great UI in software for it! I just got two LiFePO4wered/PI+ modules (18650 and 14500) for powering a pi3 b+ and a zero. These are FAR superior to anything else I have tried.
I was just reading through the product brief to configure the UPS (LiFePO4wered/PI+) for my DIY openVPN server at my parents house (it's easier to play tech support when I can actually access their hardware...) and encountered a brief moment of confusion:
I was reading through the manual and tried to execute the example command:
lifepo4wered-cli get vbat
and a value of -1 was returned. Eventually I realized that I was being foolish, and this is an error code that was caused by lack of root privileges. I have 3 suggestions to improve the UX and clarity of using the CLI tool:
- Have the CLI tools print a diagnostic message when it is run without root privs and should have been run as root.
- Document that the CLI tool should be run as root in the product brief. A change as simple as adding a leading ampersand before the example
lifepo4wered-clicommands to indicate that they are being run as the root user would be helpful. - Document the error return code.
Before I realized my mistake, since the LiFePO4wered module is connected to wall power, I had assumed that this -1 code returned by get vbat was an indication of a defective battery.
Anyway, many thanks once again!