からダウンロードできるようです.現在 ver 26.2 で Windows 向けです.動作確認の為入れてみると複数の温度計を管理できるようになっていました.
TEMPer の設定
今回は監視用途なので,クライアントとして使っている Windows には入れられないし,Windows Server も Hyper-V サーバーとして利用しているので,これにいれるのもあまりよろしくなさそうです.
で,少し考えた結果,今回は常時動いていて低消費電力な Volumio2 が稼働している Raspberry pi に同居させることにしました.
まずは,温度計を USB ポートに差し,SSH サーバーを有効化した Volumio2 にログインし,まずはきちんと認識されているかどうかを確認します.
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$ lsusb
Bus 001 Device 005: ID 0781:5583 SanDisk Corp.
Bus 001 Device 006: ID 413d:2107
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
$ lsusb
Bus 001 Device 005: ID 0781:5583 SanDisk Corp.
Bus 001 Device 006: ID 413d:2107
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
$ lsusb
Bus 001 Device 005: ID 0781:5583 SanDisk Corp.
Bus 001 Device 006: ID 413d:2107
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
[602284.626416] usb 1-1.2: new full-speed USB device number 7 using dwc_otg
[602284.758947] usb 1-1.2: New USB device found, idVendor=413d, idProduct=2107
[602284.758960] usb 1-1.2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[602284.763895] input: HID 413d:2107 as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:413D:2107.0003/input/input1
[602284.827854] hid-generic 0003:413D:2107.0003: input,hidraw0: USB HID v1.11 Keyboard [HID 413d:2107] on usb-3f980000.usb-1.2/input0
[602284.832691] hid-generic 0003:413D:2107.0004: hiddev96,hidraw1: USB HID v1.10 Device [HID 413d:2107] on usb-3f980000.usb-1.2/input1
[602284.626416] usb 1-1.2: new full-speed USB device number 7 using dwc_otg
[602284.758947] usb 1-1.2: New USB device found, idVendor=413d, idProduct=2107
[602284.758960] usb 1-1.2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[602284.763895] input: HID 413d:2107 as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:413D:2107.0003/input/input1
[602284.827854] hid-generic 0003:413D:2107.0003: input,hidraw0: USB HID v1.11 Keyboard [HID 413d:2107] on usb-3f980000.usb-1.2/input0
[602284.832691] hid-generic 0003:413D:2107.0004: hiddev96,hidraw1: USB HID v1.10 Device [HID 413d:2107] on usb-3f980000.usb-1.2/input1
[602284.626416] usb 1-1.2: new full-speed USB device number 7 using dwc_otg
[602284.758947] usb 1-1.2: New USB device found, idVendor=413d, idProduct=2107
[602284.758960] usb 1-1.2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[602284.763895] input: HID 413d:2107 as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:413D:2107.0003/input/input1
[602284.827854] hid-generic 0003:413D:2107.0003: input,hidraw0: USB HID v1.11 Keyboard [HID 413d:2107] on usb-3f980000.usb-1.2/input0
[602284.832691] hid-generic 0003:413D:2107.0004: hiddev96,hidraw1: USB HID v1.10 Device [HID 413d:2107] on usb-3f980000.usb-1.2/input1
Bus 001 Device 006: ID 413d:2107 ってのが該当のものなので,大丈夫そうです.で,ググってみると,libusb-0.1 を使う
/dev/hidraw1 1: Failed to get the temperature: Not enough data was read from the sensor.
/dev/hidraw1 1: no sensor data available
$ sudo tempered
[sudo] password for volumio:
/dev/hidraw1 0: temperature 22.12 °C
/dev/hidraw1 1: Failed to get the temperature: Not enough data was read from the sensor.
/dev/hidraw1 1: no sensor data available
$ sudo tempered
[sudo] password for volumio:
/dev/hidraw1 0: temperature 22.12 °C
/dev/hidraw1 1: Failed to get the temperature: Not enough data was read from the sensor.
/dev/hidraw1 1: no sensor data available