baumi's blog

baumi's personal blog … Linux, OS X, Windows, Random things, …

TEMPer 1.4 on GNU/Linux Ubuntu

git clone https://github.com/padelt/temper-python.git
cd temper-python
sudo python setup.py install
sudo temper-poll

gives …

parallels@ubuntu:~/temper-python$ sudo temper-poll
Found 1 devices
Device #0: 31.2°C 88.1°F

Needed to adjust scale and offset, it was off for +6.5 Celsius. So first find out which USB bus TEMPer is connected to:

lsusb | grep "0c45:7401"

Now we get the ports:

lsusb -t

which would print:

parallels@ubuntu:~/temper-python$ lsusb -t
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/12p, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
    |__ Port 1: Dev 3, If 0, Class=Human Interface Device, Driver=, 1.5M
    |__ Port 1: Dev 3, If 1, Class=Human Interface Device, Driver=, 1.5M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/15p, 480M
    |__ Port 1: Dev 44, If 0, Class=Video, Driver=uvcvideo, 480M
    |__ Port 1: Dev 44, If 1, Class=Video, Driver=uvcvideo, 480M
    |__ Port 2: Dev 45, If 0, Class=Printer, Driver=usblp, 480M
    |__ Port 3: Dev 46, If 0, Class=Printer, Driver=usblp, 480M
    |__ Port 4: Dev 47, If 0, Class=Printer, Driver=usblp, 480M
    |__ Port 5: Dev 48, If 0, Class=Printer, Driver=usblp, 480M

Mine is on Bus 02, Port 1 … therefore…

#either one:
#echo "bus-port = 1.0, offset = -6.5" > /etc/temper.conf
#echo "bus-port.subport = 1.0, offset = -6.5" > /etc/temper.conf
echo "2-1: scale = 1.0, offset = -6.5" > /etc/temper.conf

Hint: make sure the values are float, didn’t work for me otherwise.

Comments are currently closed.