Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Devsumi2016 OuchHackLT RESTful Toilet
Search
Keiichiro
February 20, 2016
Technology
0
120
Devsumi2016 OuchHackLT RESTful Toilet
トイレにRESTfulなAPIを実装してみた
Developers Summit 2016 19-E-7 おうちハックLT大会で発表したスライドです。
Keiichiro
February 20, 2016
Tweet
Share
More Decks by Keiichiro
See All by Keiichiro
Weather Data Scraping
9sq
0
180
Let's try using AkiCart!!
9sq
0
840
Getting Started with ESP8266
9sq
1
210
An Attempt to Volcanic Activity Information Delivery using a Push Notification Service.
9sq
0
320
how to use ZY-FGD1442701V1 with mbed
9sq
0
6.4k
Qemb #01 Lightning Talk
9sq
2
200
Security SAKURA #04 Lightning Talk
9sq
1
3.3k
Other Decks in Technology
See All in Technology
あなたの人生も変わるかも?AWS認定2つで始まったウソみたいな話
iwamot
3
850
WantedlyでのKotlin Multiplatformの導入と課題 / Kotlin Multiplatform Implementation and Challenges at Wantedly
kubode
0
240
Goで実践するBFP
hiroyaterui
1
120
ゼロからわかる!!AWSの構成図を書いてみようワークショップ 問題&解答解説 #デッカイギ #羽田デッカイギおつ
_mossann_t
0
1.5k
RubyでKubernetesプログラミング
sat
PRO
4
160
ドメイン駆動設計の実践により事業の成長スピードと保守性を両立するショッピングクーポン
lycorptech_jp
PRO
12
1.7k
Visual StudioとかIDE関連小ネタ話
kosmosebi
1
370
When Windows Meets Kubernetes…
pichuang
0
300
信頼されるためにやったこと、 やらなかったこと。/What we did to be trusted, What we did not do.
bitkey
PRO
0
2.2k
Oracle Exadata Database Service(Dedicated Infrastructure):サービス概要のご紹介
oracle4engineer
PRO
0
12k
Docker Desktop で Docker を始めよう
zembutsu
PRO
0
160
三菱電機で社内コミュニティを立ち上げた話
kurebayashi
1
350
Featured
See All Featured
The Cult of Friendly URLs
andyhume
78
6.1k
The Cost Of JavaScript in 2023
addyosmani
46
7.2k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.9k
The World Runs on Bad Software
bkeepers
PRO
66
11k
Testing 201, or: Great Expectations
jmmastey
41
7.2k
The Language of Interfaces
destraynor
155
24k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
98
18k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
Unsuck your backbone
ammeep
669
57k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
26
1.9k
Transcript
τΠϨʹ3&45GVMͳ"1*Λ ࣮ͯ͠Έͨ ٢ଜܓҰ ͚ʔ͍ͪ!42 %FWFMPQFST4VNNJU%BZʲ&ʳ 'FCSVBSZ
*P5 )05
*OUFSOFUPG5IJOHT ϞϊͷΠϯλʔωοτ
*OUFSOFUPG5PJMFU τΠϨͷΠϯλʔωοτ
ḪΔ͜ͱલ *OUFSOFUPG5PJMFUྺݩ݄
rNSVCZͱ͔7JNͷਓ lศث͔ΒπΟʔτ͕ྲྀΕͩ͢·Ͱ͋ͱগ͠z r23ίʔυΛম͘ਓ lτΠϨྲྀ͢ϦϞίϯͷ৴߸Λड৴͢Ε ͙࣮͢ݱग़དྷͦ͏ɻେখͷ۠ผʜɻz ݄ͷ5XJUUFS Ұ෦লུ
τΠϨπΠʔτCPU
τΠϨπΠʔτCPUվ
͋Ε͔Βʜ τΠϨˠωοτ͚ͩͰͳ͘ *OUFSOFUPG5PJMFUྺ݄ ωοτˠτΠϨͷ͕࣌དྷΔ
τΠϨʹ3&45GVMͳ"1*Λ ࣮ͯ͠ΈΑ͏
ϋʔυΣΞબఆ IUUQFTQSFTTJGDPNFOQSPEVDUTXSPPN &418300. &41&9DIJQTFU w 5$1*1ϓϩτίϧελοΫࡌCJU.$6 w 8J'J45" "1 45"
"1 w CJU"%$XJUI)41* 4%*0 6"35 18. *$ BOE*4 㾎؆୯ 㾎͍҆ 㾎ແઢ-"/
ϋʔυΣΞߏ w &418300. XJUIΦϦδφϧج൘ w ֎ઢ-&% έʔε %ϓϦϯλͰ࡞ ج൘
εΠοναΠΤϯε1$#
ϦϞίϯ͔ΒίʔυΛऔಘ "SEVJOP6/0ʹ֎ઢϦϞίϯड৴ϞδϡʔϧΛଓ 1-*3.9% "SEVJOP*3SFNPUF IUUQTHJUIVCDPN[U"SEVJOP*3SFNPUF FYBNQMF*3SFDW%VNQΛॻ͖ࠐΜͰ γϦΞϧϞχλͰऔಘ
ϦϞίϯ͔ΒίʔυΛऔಘ τΠϨͷϦϞίϯ͕ ૹ৴͍ͯ͠Δ৴߸Λ(&5 ྲྀ͢ খ ྲྀ͢ େ ఀࢭ ఀࢭ ΘΒ͔
ΘΒ͔ ૹ৴։࢝Ϧʔμ෦ NT NT σʔλ෦ NT NT͕ଓ͘ ྲྀ͢Ҏ֎ͷίϚϯυ ճʹ͚ͯૹ৴͞Ε͍ͯΔ
ϓϩάϥϜΛॻ͘ॻ͖ࠐΉ ແઢ-"/ଓ͢Δ αʔόىಈ ϦΫΤετΛड͚Δ ֎ઢૹ৴ &41DPSFGPS"SEVJOP
IUUQTHJUIVCDPNFTQ"SEVJOP &418300.Λ୯ମͰ "SEVJOPͷΑ͏ʹ͑Δ *3SFNPUF&41 IUUQTHJUIVCDPNNBSLT[BCP*3SFNPUF&41 L)[Ͱมௐͯ͠֎ઢ-&%Λ ໓ͤ͞ΔϥΠϒϥϦ τʔλϧ ߦ͘Β͍
ઃஔ
UPJMFUMPDBM
IUUQUPJMFUMPDBM )5.- CPPUTUSBQ +BWB4DSJQU ϘλϯΛԡ͢ͱ9.-)UUQ3FRVFTUͰ ֤ίϚϯυΛୟ͘ N%/4ରԠϒϥβͰΞΫηεՄೳ "OESPJEʜ
UPJMFUMPDBMXBTIMFU ͓͠ΓΛચড়͍ͨ͠ͱ͖ curl -X POST -d 'c=rear' http://toilet.local/washlet ચড়ΛࢭΊ͍ͨͱ͖ curl
-X POST -d 'c=stop' http://toilet.local/washlet exam ple ® ΥγϡϨοτ, WashletTOTOͷొඪͰ͢
UPJMFUMPDBMXBTIMFU ʮେʯΛྲྀ͢ͱ͖ curl -X DELETE -d 'c=big' http://toilet.local/washlet ®
ΥγϡϨοτ, WashletTOTOͷొඪͰ͢ exam ple
͏গ͠εϚʔτʹ ͠Α͏͡Όͳ͍͔
None
"OESPJEΞϓϦ࡞Γ·ͨ͠ɻ "OESPJEd ✔௨ྖҬʹৗற ଞͷΞϓϦىಈதγʔϜϨεʹ ͓͠Γͷચড়͕Մೳ
Blog શ෦·ͱΊͯެ։த τΠϨʹ3&45GVMͳ"1*Λ࣮ͯ͠Έͨ IUUQFMFDMPHRVJUTRDPN SFTUGVMUPJMFUIUNM ֎ઢϦϞίϯͰૢ࡞Ͱ͖Δ ػث ՈిʹԠ༻Մೳ
G itH ub શ෦·ͱΊͯެ։த &418300. &41 ͚ίʔυ IUUQTHJUIVCDPN423&45GVM5PJMFU "OESPJEΞϓϦͷίʔυ IUUQTHJUIVCDPN423&45GVM5PJMFU"QQ
֎ઢϦϞίϯͰૢ࡞Ͱ͖Δ ػث ՈిʹԠ༻Մೳ
Ϟϊ͕ωοτϫʔΫʹܨ͕Γ 3&45GVM"1*Λ࣋ͭ τΠϨ
τΠϨºʁʁʁͷՄೳੑ 㾎"1*Λ༩͑Δ͚ͩͰग़དྷΔ͜ͱ͕Ұؾʹ͕Δ ԻೝࣝରͰ͖ΔτΠϨʁ ʮIFZ4JSJ ͓͠Γચͬͯʂʯ ਓೳߦಈ༧ଌ͢ΔτΠϨʁʁ ͓৲Λճચ͏ਓ͕དྷͨͧʂ 㾎༷ʑͳطଘιϑτΣΞٕज़ཁૉͱΈ߹Θͤͯʜ
<SPPN>MPDBM<EFWJDF> -FU`T&OKPZ͓͏ͪϋοΫʂ ྲྀߦΒͳ͍͔ͳ͊ʜ