A command line sensor logger for TEMPer1 devices
Uses pcsensor.c by Michitaka Ohno, Juan Carlos Perez and Robert Kavaler
Install libusb-0.1.4 and dev package, build-essential and libargtable2
sudo apt-get install build-essential libusb-0.1.4 libusb-dev libargtable2-dev
Compile
make
Install
sudo make install
Uninstall
sudo make uninstall
Run log.sh
./log.sh
This will log the temperature every 5 seconds to stdout as a CSV stream which you can pipe to a text file and open in your favourite spreadsheet package later.
automatically
sudo make group
sudo make rules-install
sudo usermod -aG temper <USER>
Reboot to apply udev rules and group settings.
manually
- Add the udev rule set in /etc/udev/rules.d/ using the 99-temper.rules
- Add a 'temper' group (using groupadd or edit the /etc/group file)
- Add users to the 'temper' group
- Reload the udev rules
- udevcontrol reload_rules or sudo udevadm trigger
- Unplug and replug the TEMPer device
- If groups are not updated or udev still cases trouble (Does work with root permission, but not with user permissions), reboot.
alternativilly
Use commented out lines from 99-temper.rules to allow all users reading the devices.