====== USB Temp ======
Details for the USB Temperature Probe from usbtemp.com
https://usbtemp.s3.amazonaws.com/manuals/usb-thermometer_installation-en.pdf
Generate device by serial number for easier identification of probe like /dev/serial/by-serial/AYAV...:
sudo vi /etc/udev/rules.d/usbtemp.rules
SUBSYSTEM!="tty", GOTO="serial_end"
ENV{ID_SERIAL_SHORT}=="", GOTO="serial_end"
SYMLINK+="serial/by-serial/$env{ID_SERIAL_SHORT}"
LABEL="serial_end"
sudo udevadm control --reload-rules
sudo udevadm trigger
dmesg | tail
sudo apt-get install digitemp
?
sudo apt-get install owfs
sudo usermod -a -G dialout wuff
newgrp dialout
#initialisation
digitemp_DS9097 -i -s /dev/ttyUSB0
#read temp
digitemp_DS9097 -t 0
Python scripting example:
#sudo pip install DS18B20 pydigitemp
mkdir digitemp
cd digitemp
git clone https://github.com/mcsakoff/pydigitemp
mv pydigitemp/digitemp .
rm -rf pydigitemp
from digitemp.master import UART_Adapter
from digitemp.device import DS18B20
import time
bus = UART_Adapter('/dev/ttyUSB0')
sensor = DS18B20(bus)
while True:
print(sensor.get_temperature())
time.sleep(1)