{"action":"created","issue":{"url":"https://api.github.com/repos/xorbit/LiFePO4wered-Pi/issues/25","repository_url":"https://api.github.com/repos/xorbit/LiFePO4wered-Pi","labels_url":"https://api.github.com/repos/xorbit/LiFePO4wered-Pi/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/xorbit/LiFePO4wered-Pi/issues/25/comments","events_url":"https://api.github.com/repos/xorbit/LiFePO4wered-Pi/issues/25/events","html_url":"https://github.com/xorbit/LiFePO4wered-Pi/issues/25","id":384079506,"node_id":"MDU6SXNzdWUzODQwNzk1MDY=","number":25,"title":"RFE: More meaningful output when not cli not run with correct permissions","user":{"login":"zbeekman","id":279612,"node_id":"MDQ6VXNlcjI3OTYxMg==","avatar_url":"https://avatars3.githubusercontent.com/u/279612?v=4","gravatar_id":"","url":"https://api.github.com/users/zbeekman","html_url":"https://github.com/zbeekman","followers_url":"https://api.github.com/users/zbeekman/followers","following_url":"https://api.github.com/users/zbeekman/following{/other_user}","gists_url":"https://api.github.com/users/zbeekman/gists{/gist_id}","starred_url":"https://api.github.com/users/zbeekman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbeekman/subscriptions","organizations_url":"https://api.github.com/users/zbeekman/orgs","repos_url":"https://api.github.com/users/zbeekman/repos","events_url":"https://api.github.com/users/zbeekman/events{/privacy}","received_events_url":"https://api.github.com/users/zbeekman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-25T13:34:26Z","updated_at":"2018-11-26T18:36:48Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nFirst 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.\r\n\r\nI was just reading through the [product brief](https://lifepo4wered.com/files/LiFePO4wered-Pi+-Product-Brief.pdf) 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:\r\n\r\nI was reading through the manual and tried to execute the example command:\r\n\r\n```\r\nlifepo4wered­-cli get vbat\r\n```\r\n\r\nand 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:\r\n\r\n1. Have the CLI tools print a diagnostic message when it is run without root privs and should have been run as root.\r\n2. 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.\r\n3. Document the error return code.\r\n\r\nBefore 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.\r\n\r\nAnyway, many thanks once again!"},"comment":{"url":"https://api.github.com/repos/xorbit/LiFePO4wered-Pi/issues/comments/441748644","html_url":"https://github.com/xorbit/LiFePO4wered-Pi/issues/25#issuecomment-441748644","issue_url":"https://api.github.com/repos/xorbit/LiFePO4wered-Pi/issues/25","id":441748644,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTc0ODY0NA==","user":{"login":"xorbit","id":1054370,"node_id":"MDQ6VXNlcjEwNTQzNzA=","avatar_url":"https://avatars3.githubusercontent.com/u/1054370?v=4","gravatar_id":"","url":"https://api.github.com/users/xorbit","html_url":"https://github.com/xorbit","followers_url":"https://api.github.com/users/xorbit/followers","following_url":"https://api.github.com/users/xorbit/following{/other_user}","gists_url":"https://api.github.com/users/xorbit/gists{/gist_id}","starred_url":"https://api.github.com/users/xorbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xorbit/subscriptions","organizations_url":"https://api.github.com/users/xorbit/orgs","repos_url":"https://api.github.com/users/xorbit/repos","events_url":"https://api.github.com/users/xorbit/events{/privacy}","received_events_url":"https://api.github.com/users/xorbit/received_events","type":"User","site_admin":false},"created_at":"2018-11-26T18:36:48Z","updated_at":"2018-11-26T18:36:48Z","author_association":"OWNER","body":"It's very possible they tightened up security since I last did a fresh install.\r\nI should do that and see what happens by default when I find the time..."}}
{"actor":{"display_login":"xorbit"}}