Skip to content

Instantly share code, notes, and snippets.

View tobievii's full-sized avatar

Tobie Alberts tobievii

View GitHub Profile
@tobievii
tobievii / inkbird.js
Created September 17, 2019 15:42 — forked from onderweg/inkbird.js
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
}
}