Measuring temperature

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.

Péter 2011-10-13 10:04:43

Nagyon jó lett! Tetszenek a megoldásaid! :))

 
A.P. 2013-02-11 23:43:15

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…

Nonoo 2013-02-12 07:06:56

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.

 
 
Trackback by Blog J.Schweiss 2013-12-11 12:43:05

Measuring Temperature

Measuring Temperature

 
exhibition stands 2017-04-08 22:30:15

Very soon this web site will be famous among all blogging visitors, due to it’s good
articles or reviews

 
Name (required)
E-mail (required - never shown publicly)
Webpage URL
Comment:
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> in your comment.

Trackback responses to this post

About me

Nonoo
I'm Nonoo. This is my blog about music, sounds, filmmaking, amateur radio, computers, programming, electronics and other things I'm obsessed with. ... »

Twitter

Listening now

My favorite artists