getInfo 2.8.1

This commit is contained in:
kyodev 2017-10-17 19:48:43 +02:00
parent 5f26837cb5
commit 7edcab52e0
2 changed files with 20 additions and 19 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash
version=2.8.0
version=2.8.1
date="17/10/2017"
projet="simpledeb"
contact="IRC freenode ##sdeb ou https://framagit.org/kyodev/kyopages/issues/"
@ -1348,9 +1348,9 @@ figet_hw_test(){ # 17/10/2017
local text temp
text+="## hwmon test \n\n"
text+='```\n'
echo -e "$text" >> "$fileOutput"
echo -e "$text" >> "$fileOutput" # flush avant f__scandir
f__scandir "/sys/class/hwmon/" 2
text='```\n' >> "$fileOutput"
text='```\n'
if [ "$(which sensors)" ]; then
text+="\`sensors\` \n"
text+='```\n'
@ -1363,32 +1363,32 @@ figet_hw_test(){ # 17/10/2017
text+="$(acpi -V) \n"
text+='```\n'
fi
text+='```\n' >> "$fileOutput"
text+='```\n'
text+="\`/sys/class/thermal/ 1\` \n"
text+='```\n'
echo -e "$text" >> "$fileOutput"
echo -e "$text" >> "$fileOutput" # flush avant f__scandir
f__scandir "/sys/class/thermal/" 1
text='```\n' >> "$fileOutput"
text='```\n'
text+="\`/sys/devices/virtual/thermal/ 1\` \n"
text+='```\n'
echo -e "$text" >> "$fileOutput"
echo -e "$text" >> "$fileOutput" # flush avant f__scandir
f__scandir "/sys/devices/virtual/thermal/" 1
text='```\n' >> "$fileOutput"
text='```\n'
figet_hw
text+="figet_hw \n"
text+='```\n'
text+="$fget_hw \n"
text+='```\n'
if [ -f "/sys/class/hwmon/hwmon0/temp1_input" ]; then
temp="$(< "/sys/class/hwmon/hwmon0/temp1_input")"
temp="$((temp * 100 / 10000))" # 33000 x 100 / 10 000 = 330
temp="[${temp/${temp: -1}}.${temp: -1}°C]" # formatage 1 point décimal
fi
text+="hwmon0 temp1_input \n"
text+='```\n'
text+="$temp \n"
text+='```\n'
# tempo pour analyse méthode figet_cpu
if [ -f "/sys/class/hwmon/hwmon0/temp1_input" ]; then
temp="$(< "/sys/class/hwmon/hwmon0/temp1_input")"
temp="$((temp * 100 / 10000))" # 33000 x 100 / 10 000 = 330
temp="[${temp/${temp: -1}}.${temp: -1}°C]" # formatage 1 point décimal
fi
text+="hwmon0 temp1_input \n"
text+='```\n'
text+="$temp \n"
text+='```\n'
echo -e "$text" >> "$fileOutput"
}

View File

@ -15,12 +15,13 @@
thermal_zone0 -> ../../devices/virtual/thermal/thermal_zone0
* smartmontools/smartctl (root,temp?)
* batterie souris? /sys/class/input/input19/ , 20
filtrer temperature 0 (sur i5: 6temp!)
---
* f__requis f__wget_test fscript_get_version fscript_update fscript_cronAnacron
## 2.8.0 17/10/2017
## 2.8.1 17/10/2017
* nouveau: figet_hw_test, acpi -V si disponible, tests (temporaires) sur
/sys/class/thermal/ & /sys/devices/virtual/thermal/ & hwmon0(méthode neofetch)