UNPKG

pi-temperature

Version:

Measure the temperature of a Raspberry Pi.

9 lines (7 loc) 225 B
/** * Measures the temperature and calls the callback with the error and * temperature. * * **Note:** Temperature is in celsius. */ export function measure (callback: (err: Error | null, temp?: number) => void) : void;