Sun Dec 01, 2013 11:00 am
Not really a Pi specific post is it?
There would be several ways to do this. You might consider a (bash) shell script that reads the data from the USB device and writes it to a file in a comma-separated format (for example). This script might be executed at system start-up, run periodically as a cron job or triggered to run when the USB device is plugged in to the Pi. In any case it is running independently of the Web server.
To view the data you write a cgi script to retrieve the data from the above file and process to some valid html. The cgi could be a shell script too, or written in Python or any other language, just follow the usual rules for that constitute a cgi program. You could use JQuery to provide timers to auto-refresh your page, display as a graph, all inserted into a portion of an otherwise static web page. All depends on your own requirements.
You could also have your cgi access the device directly, access its data, format and display as the web page is loaded.