Driver for the MLX90614 Infrared Temperature Sensor
npm install mlx90614This module was wirtten by prosperv, and you can check original code in: https://github.com/prosperv/mlx90614-driver. I just published to npm for easy installion. I also added i2c-bus dependency to package.json.
$ npm install mlx90614
`#### Raspberry PI
Enable i2c on your Pi if you haven't done already. To avoid having to run the i2c tools as root add the ‘pi’ user to the i2c group:
`
sudo adduser pi i2c
`Usage
`
var MLX90614 = require('mlx90614-driver');var sensor = new MLX90614();
function getTemp() {
var temp = sensor.readObject();
console.log(temp);
}
window.setInterval(getTemp, 1000);
``