Skip to content

RFE: More meaningful output when not cli not run with correct permissions #25

@zbeekman

Description

@zbeekman

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:

  1. Have the CLI tools print a diagnostic message when it is run without root privs and should have been run as root.
  2. 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-cli commands to indicate that they are being run as the root user would be helpful.
  3. 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions