Cooool, got it working with my 0c45:7401 :-D
Sources: https://github.com/petervojtek/usb-thermometer.git
Place the sources and the Makefile in package/utils/temper7401.
OpenWRT Makefile (based on [1]):
include $(TOPDIR)/rules.mk
PKG_NAME:=temper7401
PKG_RELEASE:=1
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
define Package/temper7401
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Temper Usb Temper Hid reading tool
DEPENDS:=+libusb-compat
endef
define Package/temper7401/description
temper7401 is a tool for reading temperature from TEMPer USB temperature sensors.
This version only works with devices with USB ID 0c45:7401 (TEMPerV1.4).
Sources: https://github.com/petervojtek/usb-thermometer.git
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) ./src/* $(PKG_BUILD_DIR)/
endef
define Package/temper7401/install
$(INSTALL_DIR) $(1)/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/pcsensor $(1)/bin/
endef
$(eval $(call BuildPackage,temper7401))
Note: I named the package temper7401, in order to distinguish it from other temper-programs, which are capable of reading other sensors (e.g. 1130:660c)
root@DIR-505-2:~# pcsensor -l1
2015/01/14 21:34:31 Temperature 79.25F 26.25C
2015/01/14 21:34:32 Temperature 79.70F 26.50C
2015/01/14 21:34:33 Temperature 81.05F 27.25C
2015/01/14 21:34:34 Temperature 82.85F 28.25C
2015/01/14 21:34:35 Temperature 84.20F 29.00C
2015/01/14 21:34:36 Temperature 84.88F 29.38C
2015/01/14 21:34:37 Temperature 85.55F 29.75C
2015/01/14 21:34:38 Temperature 86.00F 30.00C
2015/01/14 21:34:39 Temperature 86.45F 30.25C
2015/01/14 21:34:40 Temperature 86.90F 30.50C
2015/01/14 21:34:41 Temperature 88.03F 31.13C
root@DIR-505-2:~# pcsensor -vcl1
lvr_winusb with Vendor Id: c45 and Product Id: 7401 found.
iProduct: TEMPerV1.4
Detach failed: No such file or directory[2]
Continuing anyway
Detach failed: No such file or directory[2]
Continuing anyway
01 01 00 00 00 00 00 01
01 80 33 01 00 00 00 00
80 02 1a a0 65 72 46 31
01 82 77 01 00 00 00 00
82 01 00 a0 65 72 46 31
01 86 ff 01 00 00 00 00
54 45 4d 50 65 72 46 31
2e 34 4d 50 65 72 46 31
01 80 33 01 00 00 00 00
80 02 1a a0 65 72 46 31
2015/01/14 21:44:40 Temperature 26.63C
01 80 33 01 00 00 00 00
80 02 1a a0 65 72 46 31
2015/01/14 21:44:41 Temperature 26.63C
01 80 33 01 00 00 00 00
80 02 1a a0 65 72 46 31
2015/01/14 21:44:42 Temperature 26.63C
01 80 33 01 00 00 00 00
80 02 1a a0 65 72 46 31
2015/01/14 21:44:43 Temperature 26.63C
[1] https://dev.openwrt.org/raw-attachment/ … temper.zip
(Last edited by tmo26 on 14 Jan 2015, 21:44)