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
170
Let's try using AkiCart!!
9sq
0
830
Getting Started with ESP8266
9sq
1
210
An Attempt to Volcanic Activity Information Delivery using a Push Notification Service.
9sq
0
310
how to use ZY-FGD1442701V1 with mbed
9sq
0
6.3k
Qemb #01 Lightning Talk
9sq
2
200
Security SAKURA #04 Lightning Talk
9sq
1
3.3k
Other Decks in Technology
See All in Technology
TSKaigi 2024 の登壇から広がったコミュニティ活動について
tsukuha
0
160
Wvlet: A New Flow-Style Query Language For Functional Data Modeling and Interactive Data Analysis - Trino Summit 2024
xerial
1
110
CustomCopを使ってMongoidのコーディングルールを整えてみた
jinoketani
0
220
KubeCon NA 2024 Recap: How to Move from Ingress to Gateway API with Minimal Hassle
ysakotch
0
200
ゼロから創る横断SREチーム 挑戦と進化の軌跡
rvirus0817
2
260
スタートアップで取り組んでいるAzureとMicrosoft 365のセキュリティ対策/How to Improve Azure and Microsoft 365 Security at Startup
yuj1osm
0
210
MLOps の現場から
asei
6
630
プロダクト開発を加速させるためのQA文化の築き方 / How to build QA culture to accelerate product development
mii3king
1
260
ずっと昔に Star をつけたはずの思い出せない GitHub リポジトリを見つけたい!
rokuosan
0
150
私なりのAIのご紹介 [2024年版]
qt_luigi
1
120
【re:Invent 2024 アプデ】 Prompt Routing の紹介
champ
0
140
Password-less Journey - パスキーへの移行を見据えたユーザーの準備 @ AXIES 2024
ritou
3
1.4k
Featured
See All Featured
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
48
2.2k
Embracing the Ebb and Flow
colly
84
4.5k
Side Projects
sachag
452
42k
Typedesign – Prime Four
hannesfritz
40
2.4k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.9k
No one is an island. Learnings from fostering a developers community.
thoeni
19
3k
Why You Should Never Use an ORM
jnunemaker
PRO
54
9.1k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Facilitating Awesome Meetings
lara
50
6.1k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
The Invisible Side of Design
smashingmag
298
50k
[RailsConf 2023] Rails as a piece of cake
palkan
53
5k
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͓͏ͪϋοΫʂ ྲྀߦΒͳ͍͔ͳ͊ʜ