Skip to content

Instantly share code, notes, and snippets.

Avatar

Gerwert onderweg

View GitHub Profile
@onderweg
onderweg / inkbird.js
Last active March 26, 2022 12:50
Read temperature and humidity data from Inkbird ibs-TH1.
View inkbird.js
const DATA_HND = 0x002d;
const parseData = (data) => {
const rawTemp = data.readInt16LE(0);
const rawHum = data.readInt16LE(2);
return {
temperature: rawTemp / 100,
humidity: rawHum / 100
}
}