{"id":2624,"date":"2014-07-12T06:24:00","date_gmt":"2014-07-11T21:24:00","guid":{"rendered":"http:\/\/tsaitoh.net\/wp\/2014\/07\/12\/tira2off\/"},"modified":"2014-07-12T06:24:00","modified_gmt":"2014-07-11T21:24:00","slug":"tira2off","status":"publish","type":"post","link":"https:\/\/tsaitoh.net\/wp\/2014\/07\/12\/tira2off\/","title":{"rendered":"Tira2\u3067\u3001\u30ec\u30b3\u30fc\u30c0,\u30c1\u30e5\u30fc\u30ca\u306e\u96fb\u6e90OFF"},"content":{"rendered":"<p> munin\u3067 arp \u306e\u51fa\u529b\u3092\u89b3\u6e2c\u3057\u3001\u81ea\u5b85\u5185\u3067\u52d5\u3044\u3066\u3044\u308b\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u6a5f\u5668\u306e\u89b3\u6e2c\u3092\u3057\u3066\u3044\u308b\u3051\u3069\u3001 \u3088\u304f\u96fb\u6e90\u3092\u3064\u3051\u3063\u3071\u306a\u3057\u306b\u3057\u3066\u3057\u307e\u3046\u30ec\u30b3\u30fc\u30c0\u90fd\u30c1\u30e5\u30fc\u30ca\u3002 \u3061\u3087\u3063\u3068\u3060\u3051\u7bc0\u96fb\u3055\u305b\u3088\u3046\u3068\u3001Tira2\u3092\u6d3b\u7528\u3057\u3066\u307f\u305f\u3002 <\/p>\n<p> \u4ee5\u524dTira2\u3092\u5236\u5fa1\u3055\u305b\u3066\u3044\u305f\u6642\u306e\u30bd\u30fc\u30b9\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u306e\u3067\u3001\u6539\u3081\u3066Tira2\u3067\u691c\u7d22\u3057\u305f\u3089\u3001 <a href=\"http:\/\/www.pixelbeat.org\/programs\/Tira-2\/\">Python\u3067\u66f8\u304b\u308c\u305f Tira-2.py<\/a> \u3092\u898b\u3064\u3051\u308b\u3002 \u8a2d\u5b9a\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u304d\u63db\u3048\u3002 <\/p>\n<pre>\n# \u30ea\u30e2\u30b3\u30f3\u5b66\u7fd2\u60c5\u5831\u306e\u4fdd\u5b58\u5148\nconfigs=&quot;\/usr\/local\/etc\/tira&quot;\n# Tira2\u306e\u30c7\u30d0\u30a4\u30b9\u540d\u3002\u5b9f\u4f53\u306f\/dev\/ttyUSB1\u3060\u304c\u4ed6\u306eUSB\u3068\u8aa4\u8a8d\u3092\u3057\u306a\u3044\u3088\u3046\u306b\nport=&quot;\/dev\/serial\/by-id\/usb-Home_Electronics_Tira-2_HE000001-if00-port0&quot;\n<\/pre>\n<p> \u3093\u3067\u3001ping \u306e\u8fd4\u7b54\u304c\u3042\u308b\u3088\u3046\u306a\u3089\u3001\u30c7\u30d0\u30a4\u30b9\u304c\u751f\u304d\u3066\u3044\u308b\u306e\u3067\u3001 &quot;Tira-2.py &#8211;remote=\u30c7\u30d0\u30a4\u30b9 &#8211;capture&quot;\u3067\u4fdd\u5b58\u3057\u3066\u304a\u3044\u305f\u3001\u96fb\u6e90ON\/OFF\u306e\u30ea\u30e2\u30b3\u30f3\u4fe1\u53f7\u3092\u9001\u51fa\u3002 \u4ed5\u4e0a\u3052\u3067 crontab \u3092\u4f7f\u3044\u3001\u591c\u4e2d\u306e2\u6642\u306b\u96fb\u6e90\u3092\u5207\u3089\u305b\u308b\u3002 <\/p>\n<pre>\n#!\/bin\/bash\nTIRA2=&quot;\/usr\/local\/bin\/Tira-2.py&quot;\nPING=&quot;\/bin\/ping&quot;\n# AV\u6a5f\u5668\u306e\u96fb\u6e90\u304c\u5165\u3063\u3066\u3044\u305f\u3089\u3001\u96fb\u6e90\u3092\u5207\u308b\nfor device in vardia catvstb ; do\nif $PING -q -c 1 $device &gt;\/dev\/null 2&gt;&amp;1 ; then\n$TIRA2 --remote=$device --transmit=power &gt; \/dev\/null 2&gt;&amp;1\nsleep 1\nfi\ndone\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>munin\u3067 arp \u306e\u51fa\u529b\u3092\u89b3\u6e2c\u3057\u3001\u81ea\u5b85\u5185\u3067\u52d5\u3044\u3066\u3044\u308b\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u6a5f\u5668\u306e\u89b3\u6e2c\u3092\u3057\u3066\u3044\u308b\u3051\u3069\u3001 \u3088\u304f\u96fb\u6e90\u3092\u3064\u3051\u3063\u3071\u306a\u3057\u306b\u3057\u3066\u3057\u307e\u3046\u30ec\u30b3\u30fc\u30c0\u90fd\u30c1\u30e5\u30fc\u30ca\u3002 \u3061\u3087\u3063\u3068\u3060\u3051\u7bc0\u96fb\u3055\u305b\u3088\u3046\u3068\u3001Tira2\u3092\u6d3b\u7528\u3057\u3066\u307f\u305f\u3002 \u4ee5\u524dTira [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-2624","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/tsaitoh.net\/wp\/wp-json\/wp\/v2\/posts\/2624","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tsaitoh.net\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tsaitoh.net\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tsaitoh.net\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tsaitoh.net\/wp\/wp-json\/wp\/v2\/comments?post=2624"}],"version-history":[{"count":0,"href":"https:\/\/tsaitoh.net\/wp\/wp-json\/wp\/v2\/posts\/2624\/revisions"}],"wp:attachment":[{"href":"https:\/\/tsaitoh.net\/wp\/wp-json\/wp\/v2\/media?parent=2624"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tsaitoh.net\/wp\/wp-json\/wp\/v2\/categories?post=2624"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tsaitoh.net\/wp\/wp-json\/wp\/v2\/tags?post=2624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}