Examples

Simple usage examples

Python /temperature

Example:

import requests   

response = requests.get("http://nexus.local/api/bmc/0.0.1/0/temperature", auth=("", ""))

if response.status_code == requests.codes.ok:
    response = response.json()
    print("Temperature sensor next to SoC: " + str(response['ntc_0']) + "°C")
    print("Temperature sensor ambient: " + str(response['ntc_1']) + "°C")

Output:

Temperature sensor next to SoC: 38.087°C
Temperature sensor ambient: 29.121°C

Last modified September 1, 2021