| 82 | |
| 83 | === Linux === |
| 84 | * github:goto2048/fplug_for_linux |
| 85 | * [http://obdnmagazine.blogspot.jp/2013/03/tested-f-plug-ax3a6.html OBDNマガジン: (.tested) 富士通ビー・エス・シー F-PLUG (AX3)(A6)] |
| 86 | * [http://www.bravotouring.com/~yano/diary/it/20140616fplug4linux.htm YANO's digital garage - fplug_for_linux] |
| 87 | * $ sudo ./fpstatus -with /dev/rfcomm0 |
| 88 | {{{ |
| 89 | FP_WATT=21.4;FP_ILLUM=83;FP_TEMP=25.0;FP_HUMID=33; |
| 90 | }}} |
| 91 | |
| 92 | * github:hasegaw/pyfplug |
| 93 | * pyfplug2.py |
| 94 | {{{#!diff |
| 95 | --- pyfplug.py 2015-10-25 17:45:30.577000467 +0900 |
| 96 | +++ pyfplug2.py 2015-10-25 18:05:20.859804410 +0900 |
| 97 | @@ -355,7 +355,7 @@ |
| 98 | self.sfile.flush() |
| 99 | |
| 100 | def test_fplug_dev(): |
| 101 | - dev = FPlugDevice('/dev/rfcomm0', debug = True) |
| 102 | + dev = FPlugDevice('/dev/rfcomm0', debug = False) |
| 103 | # print "init:", dev.plug_init() |
| 104 | |
| 105 | |
| 106 | }}} |
| 107 | * $ sudo python2 pyfplug2.py |
| 108 | {{{ |
| 109 | on: 1 |
| 110 | off: 0 |
| 111 | set_datetime: True |
| 112 | TMP: 25.0 degree C |
| 113 | HUM: 33 % |
| 114 | ILL: 84 |
| 115 | PWR: 21.4 W |
| 116 | ACC: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 22] |
| 117 | HIST PWR: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 22] |
| 118 | HIST MISC: [(None, None, None), (None, None, None), (None, None, None), (None, None, None), (None, None, None), (None, None, None), (None, None, None), (None, None, None), (None, None, None), (None, None, None), (None, None, None), (None, None, None), (None, None, None), (None, None, None), (None, None, None), (None, None, None), (None, None, None), (None, None, None), (None, None, None), (None, None, None), (None, None, None), (None, None, None), (26.0, 33, 83), (26.0, 33, 82)] |
| 119 | }}} |
| 120 | * $ sudo python2 fplugctl init |
| 121 | * 履歴を初期化(ACC, HIST *が0に戻る) |