News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Thomas Weinert:
Building A Sensor Phalanx With PHP
November 18, 2013 @ 09:15:12

Thomas Weinert continues his series looking at merging the physical and virtual using PHP to with messages coming from servers and how to build it into a sensor phalanx.

Sensors are fun. They report from the physical world into the digital. But getting the signal into php is only the first part, you will have to get them out again. This post shows how to get data from analog sensors pushed to the browser. It uses Carica Chip, if you haven't read my previous blog post you should do it first.

He talks about the use of ReactPHP in the Carica library and the addition of Ratchet to help with the websocket messaging. He sets up two simple servers - one HTTP, the other websocket - to handle the reporting and interaction with the sensor. He includes the code for the HTTP server and uses his example code to make the phalanx listening on 8081. Some other code is included to make the listeners and the simple UI for the charts. A video is included showing it all in action, reacting to a moving light.

0 comments voice your opinion now!
sensor phalanx tutorial carica chip library reactphp ratchet

Link: http://www.a-basketful-of-papayas.net/2013/11/building-sensor-phalanx-with-php.html

blog comments powered by Disqus

Similar Posts

Oracle Technology Network: Scaling a PHP MySQL Web Application, Part 1

Lineke Kerckhoffs-Willems' Blog: How to use the Symfony2 SonataAdminBundle

php[architect]: Build a VM for Drupal 8 with Vagrant

Piotr Walczyszyn's Blog: Configuring Eclipse PDT & Flash Builder 4 Plug-in for PHP/Flex development

HowTo Forge: Installing The PHP-MemCache Module On CentOS 5.0


Community Events

Don't see your event here?
Let us know!


example version video unittest laravel5 podcast framework opinion list php7 api introduction language library voicesoftheelephpant series community laravel release interview

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework