See my other post about measuring temperature with USB Temper devices using a router with OpenWRT here!
I’ve bought two TEMPer USB sticks from eBay and installed one of them in my room and the other one on the pine tree in front of our house.
The outside sensor is around 3m from the ground, and my server is in my room around 13 meters from the ground, so I had to use a simple USB-RJ45 extender (this doesn’t support USB2.0 but TEMPer uses only USB1.1 so it works fine).
I have the two TEMPers on separate USB busses, so I’ve modified the source code of the driver to support using the first device on a given bus. I also had problems with one of the devices keep getting stuck with errors like “No device found” and “Protocol error”. A trace showed usb_set_configuration() gave an error. The only solution was to unplug and replug the device to the USB port. Now I modified temper.c to do the same thing: reset the USB device before use :) Seems to work pretty well.
I put the temperature values into a MySQL database every 5 minutes and I generate RRDTool graphs from the data. You can download the source code for the PHP webpage here and watch it online from my home server (slow ADSL connection) here.
An Android widget is available for the outside TEMPer data here.
Trackback URL
5 Comments »
Trackback responses to this post
About me
I'm Nonoo. This is my blog about music, sounds, filmmaking, amateur radio, computers, programming, electronics and other things I'm obsessed with.
... »
Nagyon jó lett! Tetszenek a megoldásaid! :))
Hi, nice setup!
I wonder what your Android Widget exactly does: Does it directly read from your USB logger device? (since it is possible to log in USB devices directly into Android 4.* phones…)
I appreciate your answer…
Hello, the widget reads the temperature value from a web server. The sensors are connected to my home server which uploads the data to that web server.
Measuring Temperature
Measuring Temperature
Very soon this web site will be famous among all blogging visitors, due to it’s good
articles or reviews