Version 3 (modified by mitty, 9 years ago) (diff) |
---|
lm-sensors
- Bug #418246 “it87 (sensors) module broken, needs automatic addin...” : Bugs : “linux” package : Ubuntu
- $ sudo modprobe -v it87
insmod /lib/modules/2.6.32-42-generic/kernel/drivers/hwmon/it87.ko FATAL: Error inserting it87 (/lib/modules/2.6.32-42-generic/kernel/drivers/hwmon/it87.ko): Device or resource busy
- $ sudo modprobe -v it87
SystemTap
Watt Checker
- 現在所持しているもの
- TAP-TST5
- TAP-TST10
TAP-TST10
- Arch Linux 4.1.6-1-ARCH
- $ pacaur -S python2-pyusb-git
- aur:python2-pyusb-git (python2-pyusbは0.4.3-7とバージョンが古い)
- $ vim taptst10ctl.py
-
taptst10ctl.py
diff --git a/taptst10ctl.py b/taptst10ctl.py index 1207fef..f5e8724 100644
a b watts = [] 83 83 kWhs = [] 84 84 outep.write('\x02\x18\x0a') 85 85 while True: 86 data = dev.read(ENDPOINT, 17, intf,1000)86 data = dev.read(ENDPOINT, 17, 1000) 87 87 # dump raw data 88 88 #print(" ".join("{:02x}".format(x) for x in data)) 89 89
-
- $ sudo python2 taptst10ctl.py
No.,DateTime,Watt,kWh 1,2015/09/23 10:30,4.5,0.00 2,2015/09/23 10:40,41.5,0.00 3,2015/09/23 10:50,41.3,0.01 4,2015/09/23 11:00,40.3,0.02
Attachments (2)
- TAP-TST10.png (57.2 KB) - added by mitty 9 years ago.
- F-PLUG115-update.png (353.1 KB) - added by mitty 9 years ago.
Download all attachments as: .zip