Tag Archives: Raspberry Pi

Nest Thermostat data logging with Raspberry Pi and Node.js

First problem: Node version

The version of Node installed from Raspbian repo is very old, and wouldn’t work with one of the required NPM modules.

Second attempt was to install Node using the official script from node.js, but this resulted in segmentation faults whenever you try to do anything. I assume it must have installed a version that wasn’t compiled for the ARM environment of the Raspberry Pi.

Third attempt: use a pre-built package mentioned on http://weworkweplay.com/play/raspberry-pi-nodejs/

I have no idea if it is a safe source, but I took a chance:

Second problem: installing modules with NPM

I needed to install these two modules:

https://www.npmjs.org/package/unofficial-nest-api
https://www.npmjs.org/package/thingspeakclient

NPM was failing to get these, with something like:

The URL was clearly working in a browser. It turned out that the certificate was being rejected. This is fixed by issuing this command: