Humidity & the Internet of Things
Joining the Internet of Things for rather prosaic purpose of trying to track down the source of humidity in my flat. After finding a decent (i.e. cheap) humidity sensor with Bluetooth Low Energy (Texas Instruments SensorTag - monitors ambient temp (and object temp), humidity, magnetic field (or somesuch) and various other readings of no use to me (motion and height), the next task was to find something that could use it and make pretty graphs from it.
Installing The Things System
Following main instuctions, but first you ight need to install a selection from http://thethingsystem.com/dev/Bootstrapping-the-Raspberry-Pi.html , plus libbluetooth-dev
By the way npm install drags in a lotf of dependencies, about 200MB or so.
Starting up the steward leads to an error with sqlite:
Forcing a rebuild of sqlite3:
npm install sqlite3 --build-from-source
seemed to fix that. The next problem was:
uncaught exception: Error: Cannot find module 'sax'
which was fairly easily fixed with:
npm install sax
which helped get things further on, loading the drivers, before crashing out with
alert: [steward] exception diagnostic=ENOENT, no such file or directory '/home/richard/Git/steward/steward/node_modules/yoctolib/lib'
fixed with:
npm install yoctolib
Next error:
uncaught exception: Error: Cannot find module 'oauth'
Fix: npm install oauth
Next error:
uncaught exception: Error: Cannot find module 'ctype'
Fix: npm install ctype
Next error:
uncaught exception: Error: Cannot find module 'node-expat'
Fix:
npm install node-expat
Next error:
uncaught exception: Error: Cannot find module 'asn1'
Fix:
npm install asn1
Next error:
uncaught exception: Error: Cannot find module 'mathjs'
Fix:
npm install mathjs
Next error (getting close!)
uncaught exception: TypeError: object is not a function alert: [steward] exception stack=[{"fileName":"/home/richard/Git/steward/steward/node_modules/kumoapp-tsrp/kumoapp-tsrp.js","lineNumber":3,"functionName":"","typeName":"Object","methodName":null,"columnNumber":38,"native":false}
Fix:
npm -l install
npm install kumoapp-tsrp
Success!!