Connects the DHT22 sensor to IBM's IoT Platform. To be used on a Raspberry Pi.
Run the prereq.sh script, it should prompt for the root password to install the required BCM 2835 library.
chmod +x prereq.sh | ./prereq.sh
npm install
Create a new device type and a new device in the IBM IoT platform. Details here: https://console.bluemix.net/docs/services/IoT/iotplatform_task.html#iotplatform_subtask1.
Configure fields in the config.json file with the respective org, device type, device ID and token from the IBM IoT platform.
npm start