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

Voltage not showing #12

Closed
juanrarodriguez18 opened this issue Dec 12, 2020 · 7 comments
Closed

Voltage not showing #12

juanrarodriguez18 opened this issue Dec 12, 2020 · 7 comments
Labels
permissions Errors/Bugs caused by (missing) permissions

Comments

@juanrarodriguez18
Copy link

Hi thank you for the App, is wonderfull! Only an issue, i can't see the voltage of my Raspberry pi :(

image

its shows blank as you can see. These are my Raspberry Pi information:

Model: Raspberry Pi 3 Model B Rev 1.2
OS: Raspbian GNU/Linux 10 (buster)

The command used in PHP to show the voltage its working fine in shell:

image

@femto-code femto-code added the permissions Errors/Bugs caused by (missing) permissions label Dec 13, 2020
@femto-code
Copy link
Owner

Hi @juanrarodriguez18, thank you very much for using the dashboard and creating this issue!
Based on your report I would assume the following problem: Since the vcgencmd command (which apparently works well for you in shell) is a system command that requires certain hardware rights. Specifically this is achived by adding the current user to a system group called video, which the standard user pi is part of by default. Therefore you would just need to run the following command, that I run in order to get it to work on my system (which is exactly the same as yours):
sudo usermod -aG video www-data
(assuming the webserver is running under www-data user)

Feel free to share other experiences and your ideas, so that I can improve the dashboard accordingly. Thank you!
Nice to hear that there are finally some people out there, who discovered my project.

@femto-code
Copy link
Owner

Soon there will be a new release v0.6 addressing this issue in which I will add instructions for this.

@juanrarodriguez18
Copy link
Author

Solved! It works like a charm :). Yes please, add to the next release, good Job!

@m-krebs
Copy link

m-krebs commented Mar 22, 2022

Same Problem but in my case that usermod-command doesn't solved that issue.

One reason for this error could be, that I'm using a docker Web Server(Apache).
So my Dashboard isn't located at /var/www/html but at /home/user/dapache2/www/.

And Thank you for that great Dashboard 👏

@femto-code
Copy link
Owner

I will have a look on your configuration circumstances @m-krebs - will get back on this soon!

@femto-code femto-code reopened this Mar 25, 2022
@femto-code
Copy link
Owner

Any updates on this? Does the problem persist?

@m-krebs
Copy link

m-krebs commented Oct 13, 2022

Unfortunately hadn't the time to try it again, but I will in the next days and answer you for sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
permissions Errors/Bugs caused by (missing) permissions
Projects
None yet
Development

No branches or pull requests

3 participants