git clone https://github.com/ooopSnake/pressure_watcher
./build_all.sh
sudo ./pressure_watcher_arm
{
"cpuInfo": [
{
"id": "cpu 0",
"freq": "1.008 GHz",
"usage": "21.6 %"
},
{
"id": "cpu 1",
"freq": "1.008 GHz",
"usage": "21.1 %"
},
{
"id": "cpu 2",
"freq": "1.008 GHz",
"usage": "25.5 %"
},
{
"id": "cpu 3",
"freq": "1.008 GHz",
"usage": "23.5 %"
}
],
"cpuTemp": "39.9 °C"
}
Usage of ./pressure_watcher:
-addr string
http addr , eg : 127.0.0.1 (default "0.0.0.0")
-nohttp
disable http server
-port string
http listen port , eg : 8080 (default "12345")
WTFPL