Read outside temperature with Ubuntu part 1

I was wondering how low or high is going temperature in my cabinet and decided to buy module for measuring temperature over USB. I order this modul over Ebay and pluged in my home Ubuntu server.

 

Server detected new device (dmesg):

[421796.525432] input: RDing TEMPerV1.4 as /devices/pci0000:00/0000:00:12.0/usb4/4-5/4-5:1.0/0003:0C45:7401.0005/input/input5

First update and install next packages:

apt update
apt install python-usb python-setuptools git screen

 

Next download and unpack temper-python package from Github:

wget https://github.com/padelt/temper-python/archive/master.zip
unzip master.zip

 

Just in case I downloaded package to my server. Continue with installing python module:

cd temper-python-master
sudo python setup.py install

 

When we are done we can read temperature from module:

sudo temper-poll

 

I get this results:

Found 1 devices
Device #0: 22.6°C 72.6°F

 

But my plan is to read temperature and save output in some file, so I can see what was the temperature in the past. Continue in part 2.

Leave a Comment