wiki:TipAndDoc/monitor

Version 3 (modified by mitty, 9 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
    

Attachments (2)

Download all attachments as: .zip