wiki:TipAndDoc/monitor

Version 4 (modified by mitty, 7 years ago) (diff)

--

lm-sensors

SystemTap

Watt Checker

  • 現在所持しているもの
    • TAP-TST5
    • TAP-TST10

TAP-TST10

  • Arch Linux 4.1.6-1-ARCH
  1. $ pacaur -S python2-pyusb-git
  2. $ vim taptst10ctl.py
    • taptst10ctl.py

      diff --git a/taptst10ctl.py b/taptst10ctl.py
      index 1207fef..f5e8724 100644
      a b watts = [] 
      8383kWhs = [] 
      8484outep.write('\x02\x18\x0a') 
      8585while True: 
      86     data = dev.read(ENDPOINT, 17, intf, 1000) 
       86    data = dev.read(ENDPOINT, 17, 1000) 
      8787    # dump raw data 
      8888    #print(" ".join("{:02x}".format(x) for x in data)) 
      8989 
  3. $ 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
    

bug?

  • github:nonakap/taptst10ctl は消費電力が増えるとオーバーフローするのか値がおかしくなる模様
  • 100W~ 程度の負荷下
    • $ sudo python2 taptst10ctl.py
      No.,DateTime,Watt,kWh
      1,2015/09/23 11:00,40.0,0.01
      2,2015/09/23 11:10,106.0,0.02
      3,2015/09/23 11:20,3251.0,2.56
      4,2015/09/23 11:30,3251.0,5.10
      5,2015/09/23 11:40,3251.0,7.64
      
    • 3251Wになってしまう
  • TAP-TST10 Watt Monitor USB Program (公式アプリ)

Attachments (2)

Download all attachments as: .zip