Upgrade to Pro — share decks privately, control downloads, hide ads and more …

サーマルプリンタとRaspberry Piでカンバンを改善した話

Yuya Kato
February 22, 2019

サーマルプリンタとRaspberry Piでカンバンを改善した話

Yuya Kato

February 22, 2019

Transcript

27 slides
  1. ࣗݾ঺հ: Ճ౻ ༐໵ • ιϑτ΢ΣΞΤϯδχΞʢ2000೥ʙʣ • גࣜձࣾಹ༝ଟ԰ ୅දऔక໾ʢ2007೥ʙʣ ͳ Ώ

    ͨ ΍ • झຯ: • ΋ͷͮ͘Γશൠ • 3DϓϦϯλʢ2013೥ʙʣ • ϘϧμϦϯάʢ2011೥ʙʣ !3 yuyakato1984 nayutaya
  2. ϋʔυ΢ΣΞ !18 αʔϚϧϓϦϯλ ໿11,000ԁ https://amzn.to/2XdO0O9 Raspberry Pi 3B+ίϯϓΩοτ ໿9,500ԁ https://amzn.to/2Nhv8Jw

    ϩʔϧࢴ ໿280ԁʢ1רʣ https://amzn.to/2txyyif USB ·ͨ͸ Ethernet ී௨ͷLinuxϚγϯͰ୅ସՄೳ ESC/POSରԠػͳΒͨͿΜԿͰ΋OK 80mm෯ͳΒͨͿΜԿͰ΋OK
  3. ιϑτ΢ΣΞ • 4ͭͷιϑτ΢ΣΞͰߏ੒ • ҹ࡮αʔϏε • ϨϯμϦϯάαʔϏε • WebΞϓϦ •

    Google Chrome ֦ு !19 Raspberry PiͷDockerίϯςφ্Ͱಈ࡞ Google ChromeʢWebϒϥ΢βʣ্Ͱಈ࡞
  4. ιϑτ΢ΣΞ: ҹ࡮αʔϏε !20 HTTP POST USB curl --request POST \

    --header "Content-Type: image/png" \
 --data-binary @hello.png http://localhost:3030/print ҹ࡮αʔϏε PNGը૾Λૹ৴͢Δͱ ϓϦϯλ͔Βҹ࡮͞ΕΔ
  5. ιϑτ΢ΣΞ: ϨϯμϦϯάαʔϏε !21 ϨϯμϦϯάαʔϏε HTTP POST curl --request POST \

    --header "Content-Type: application/json" \ --data-binary @hello.json \ http://localhost:3031/render_html > hello.png HTMLΛؚΉJSONΛ ೖྗ͢Δͱ ϨϯμϦϯά͞Εͨ ը૾͕ग़ྗ͞ΕΔ HTTP Response
  6. Ԡ༻ྫ • طʹ΍͍ͬͯΔ͜ͱ: • ன৯ϝϯόʔͷҹ࡮ • ͪΐͬͱͨ͠ϝϞͷҹ࡮ • ΍ͬͯΈ͍ͨ͜ͱ: •

    ΞΠσΞग़͠ / ϒϨΠϯετʔϛϯά • όʔϯμ΢ϯνϟʔτͷҹ࡮ !24

More Decks by Yuya Kato

Other Decks in Programming