nf-iot-end
is part of nf-iot framework which consist of :
nf-iot-end
, running on a raspberry pi devicenf-iot-middleware
, running on a virtual private servernf-iot-ng
, running on browser or as hybrid mobile app.
<--socket.io-- <---rest API--- nf-iot-end nf-iot-middleware nf-iot-ng ---socket.io--> ---socket.io-->
- A raspberry pi (B, B+)
- node v4.x
root
user in Rasbian.- DHT11 Sensor, two resistor and a LED (optional)
- Run a
nf-iot-middleware
instance on somewhere. For example, it running on10.0.0.1
(hostname) and port2999
. - Download
bcm2835
source code from http://www.airspayce.com/mikem/bcm2835/../configure
,make
thenmake install
. - Clone to raspberry pi side,
git clone https://github.com/herpiko/nf-iot-end.git
cd nf-iot-end
npm install
HOST=10.0.0.1 PORT=2999 node index.js
nf-iot-end
provide basic code example in index.js
that follow the schematic bellow.
MIT