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

SD card utilisation returns NaN #9

Open
hailigsblechle opened this issue May 9, 2022 · 0 comments · May be fixed by #10
Open

SD card utilisation returns NaN #9

hailigsblechle opened this issue May 9, 2022 · 0 comments · May be fixed by #10

Comments

@hailigsblechle
Copy link

Hi,
first, thanks for this great project. The raspberry stats are very useful in Signalk.
However the path "environment.rpi.sd.utilisation" shows just NaN.

First analysis when executing the stored command

df / | grep -v Used | awk '{print $5}' |awk 'gsub("%","")' (after removing the escaping character "")

in Terminal, the following output is shown:

Verw
71

This might be connected to the 'de_DE.UTF-8' locale I'm using, but it seems like the title column is not removed and therefore a type casting from string to int fails.

Raspbian stats (cat /etc/os-release):

PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Best regards
hailigsbleche

@hailigsblechle hailigsblechle linked a pull request May 9, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant