Interfacing with php

Here is how you can get your Pinguino simply communicate with your local Web Server. We are going to use 1-wire bus to communicate with a DS18B20 Temperature Sensor and USB CDC driver to communicate with the machine which host the Web Server. USB CDC allow you to take advantage of the simplicity of the USB (you only need a USB cable) while providing the functionality of a Serial port.  You must have a DS18B20 temperature sensor wired to your Pinguino to run this example : NB : 1-wire bus (DQ line) must have 4K7 pull-up resistor (connected to +5V)  Data's are sent to /dev/ttyACM0. Type : to see permissions and owner. Make sure you have persmissions on it : Maybe you will have to add your user name to the dialup group : 
 * pin 1: GND
 * pin 2: DQ (Data in/out) must be connected to the Pinguino (pin 2 (RB2) in this example)
 * pin 3: VDD (+5V)
 * ls -all /dev/ttyACM0
 * sudo chmod 666 /dev/ttyACM0 (ex. on a GNU/Linux System)
 * if it doesn't work try 777 : sudo chmod 777 /dev/ttyACM0
 * adduser YOURUSERNAME dialout

On Pinguino side : temp18b20.pde
Test it first on your computer in your favorite console :

On Computer (or NAS or Router) side : index.php
These notes assume you already have a Web Server (Apache, lighttpd, ...) running.

Here is the result on my D-link DNS 323 running a lighttpd web server : http://rblanchot.no-ip.org