Status¶
This resource gets status information from the NIC including battery voltage and processor temperature.
Resource |
api/nic/status |
Returns |
NIC status structure |
Supported methods |
|
Attributes¶
Field |
Type |
Description |
---|---|---|
processor/temperature_c |
float |
Temperature of the CPU in degrees centigrade. |
power/input_voltage |
float |
Voltage measured at the input of the NIC-500. |
memory/bytes_total |
integer |
Total amount of RAM available in bytes. |
memory/bytes_free |
integer |
Amount of unused RAM in bytes. |
memory/bytes_used |
integer |
Amount of used RAM in bytes. |
memory/percent_free |
float |
Amount of RAM free as a percentage of the total available. |
memory/percent_used |
float |
Amount of RAM used as a percentage of the total available. |
Read the NIC device status¶
Sample request¶
response = requests.get("http://192.168.20.221:8080/api/nic/status")
curl http://192.168.20.221:8080/api/nic/status
Sample response data¶
{
"processor": {
"temperature_c": 32.4
},
"power": {
"input_voltage": 12.2
},
"memory": {
"bytes_free": 503791616,
"bytes_total": 1052139520,
"percent_free": 47.9,
"percent_used": 52.1,
"bytes_used": 548347904
}
}