Download - Raspberry pi - Node js - Drupal
Mark Corben
DrupalNodeJs
andRasperry Pi
mmmmm
Mark Corben
Mark Corben
And Alcohol …
Mark Corben
How it fits together
Arduino
Alcohol Sensor
Raspberry Pi Browser
Mark Corben
How the hardware fits together
ArduinoAlcohol SensorRaspberry Pi
Analog Sensor I2C Bus
Mark Corben
How do we read the bus ?
Raspberry Pi
I2C Bus
???????
Apache
Drupal
???
???
Mark Corben
NodeJs to the Rescue
Raspberry Pi
I2C BusNodeJsServer
Apache
Drupal
Mark Corben
Drupal Node.js Integration ModulesDrupal NodeJs Project
NodeJs Client Side (Drupal)
NodeJS Integration Module
NodeJS Config Module
NodeJS Notifications Module
NodeJs Server Side
drupal-node.js
NodeJsServer Drupal
Mark Corben
NodeJsapp.js
npm - nodejs package manager
Execute nodejs module
node app.js
Forever
forever app.js
Mark Corben
Drupal-node.js Server
Install drupal-node.js
npm install drupal-node.js
Running drupal-node.js server
Under node_modules/drupal-node.js/
node app.js
Mark Corben
Drupal-node.js Configuration
nodejs.config.js file
host: ''
serviceKey: 'FunkThatThingSweetMumma'
backend: { basePath: '/drupal7' }
Drupal Site
extensions: ['/alcohol_detector.extension.js'],
Mark Corben
Drupal Node.js Integration ModulesDrupal NodeJs Project
NodeJs Server Side
drupal-node.js
alcohol_detector.extension.js
app.jsExtension
Extension
Extension
alcohol_detector.extension.js
Mark Corben
Drupal NodeJs ModulesNodeJS Integration Module
NodeJS Config Module
NodeJS Notifications Module
nodejs_server_host: 192.168.1.25
nodejs_service_key: FunkThatThingSweetMumma
Mark Corben
The End