femto-code / Raspberry-Pi-Dashboard

Web-App Dashboard to monitor Raspberry Pi hardware and software status. Nothing more than Webserver + PHP required.
GNU General Public License v3.0
260 stars 26 forks source link

Voltage not showing #12

Closed juanrarodriguez18 closed 1 year ago

juanrarodriguez18 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

juanrarodriguez18 commented 3 years ago

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

m-krebs commented 2 years ago

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 commented 2 years ago

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

femto-code commented 1 year ago

Any updates on this? Does the problem persist?

m-krebs commented 1 year ago

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