Thursday, July 26, 2012

[IoT] Drive a webpage on blogspot in real-time using LM35, Arduino, Bloom, SensorMonkey and Processing.js

Drive a webpage on blogspot in real-time using LM35, Arduino, Bloom, SensorMonkey and Processing.js

Monitoring the temperature in my Office via blogspot

using method2 from processing.org/learning the io.js and min.js are needed to work with sensormonkey, processing.js hosted on my dropbox, and code for Graph.pde written as java script code in the blogpost are used
myLM35
<!--canvas is html5 feature client.subscribeToStream( "/public/myOffice", function( e ) { if( e ) { alert( "Failed to subscribe to stream: " + e ); return; } client.on( "publish", function( name, fields ) { if( name === "/public/myOffice" ) { theLM35Graph.update( fields[ "myLM35" ] );//myLM35 is var of sensor created on sensor monkey } } ); client.on( "bulkPublish", function( name, fields ) { if( name === "/public/myOffice" ) { for( var i = 0, len = fields[ "myLM35" ].length; i < len; i++ ) { theLM35Graph.update( fields[ "myLM35" ][ i ] ); } } } ); } ); } ); client.on( "disconnect", function() { alert( "Client has been disconnected!" ); } ); } ); } --> -->

No comments: