Skip to content

Instantly share code, notes, and snippets.

View onderweg's full-sized avatar

Gerwert onderweg

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