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
家のいろいろな数値を計測する
Search
Kishikawa Katsumi
May 21, 2022
How-to & DIY
4
2.1k
家のいろいろな数値を計測する
家のいろいろな数値を計測する
おうちHack勉強会
Kishikawa Katsumi
May 21, 2022
Tweet
Share
More Decks by Kishikawa Katsumi
See All by Kishikawa Katsumi
iOSDC 2024 SMBファイル共有をSwiftで実装する
kishikawakatsumi
1
150
Enhancing Applications with Accessibility API
kishikawakatsumi
3
3.1k
Mastering SwiftSyntax
kishikawakatsumi
4
5.2k
My SwiftData Review
kishikawakatsumi
7
1.3k
Swift Expression Macros: a practical introduction
kishikawakatsumi
3
1.8k
Xcode Cloudの評価
kishikawakatsumi
2
1.2k
Regular expressions basics/正規表現の基本
kishikawakatsumi
7
710
GitHub Actionsでテストの結果をわかりやすく表示する
kishikawakatsumi
1
990
GitHub Actionsでテストの結果をわかりやすく表示する
kishikawakatsumi
1
1.8k
Other Decks in How-to & DIY
See All in How-to & DIY
元SREのCREが伝えたい、Mackerelをもっと活用するための実践Tips集 / Mackerel Drink Up #11 do-su-0805
dosu0805
0
220
GPT-4oに遅刻理由を考えてもらうボタン #gpt_4o #iotlt #chatgpt
n0bisuke2
0
220
未来大生の胃を支える函館グルメ
deflis
0
340
カフェでノートPCが盗難されたかどうかを検知するIoT #linedc #iotlt #obniz #protoout
n0bisuke2
1
270
俺とキャンプ
sat
PRO
1
280
Chaos V-Ray Render Pool Manual [EN]
renderpool
0
360
Terra Charge|EVコンセントご利用ガイドブック / Terra Charge EV Charger Guidebook
contents
0
950
ちょっと待てぃ!!ボタンをキーボード化 #M5Stack #M5JPTour2023 #相席食堂
n0bisuke2
0
570
Learning from Firefighters
ksatirli
PRO
0
130
とある航空会社の飛行機の乗り方をお教えします。/20240913-lt
kwada
3
220
ServiceNow Knowledgeの歩き方
manarobot
0
290
やがてカンファレンス登壇者になる
yumechi
1
240
Featured
See All Featured
Why You Should Never Use an ORM
jnunemaker
PRO
53
9k
Designing on Purpose - Digital PM Summit 2013
jponch
115
6.9k
BBQ
matthewcrist
85
9.3k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
5 minutes of I Can Smell Your CMS
philhawksworth
202
19k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
37
1.8k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
107
49k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
228
52k
Facilitating Awesome Meetings
lara
49
6k
A Modern Web Designer's Workflow
chriscoyier
692
190k
Unsuck your backbone
ammeep
668
57k
Keith and Marios Guide to Fast Websites
keithpitt
408
22k
Transcript
kishikawa katsumi Ոͷ͍Ζ͍ΖͳΛܭଌ͢Δ ͓͏ͪHackษڧձ
Ոͷ͍Ζ͍ΖͳΛܭଌ͢Δ • Թɾ࣪ • ೋࢎԽૉೱ • ిྗ • ωοτϫʔΫ •
Etc
ܭଌͱ • ܭଌػثΛങ͖ͬͯͯோΊΔ
͓͏ͪHackΒ͍͠ܭଌͱ • ܭଌػثΛങ͖ͬͯͯோΊΔ • ܭଌػث͔ΒσʔλΛʢܧଓతʹʣऔಘ͢Δ • ूܭͯ͠ϏδϡΞϥΠζͨ͠Γɺ͋Δᮢʹୡͨ͠Β௨͢ΔɺͳͲ
࣍ • ཧର͝ͱͷܭଌػثͷհ • ͦΕͧΕͷܭଌػث͔ΒσʔλΛऔΓग़͢ํ๏ʹ͍ͭͯ • σʔλΛϏδϡΞϥΠζɾ࿈ܞ͢Δํ๏ʹ͍ͭͯ
• Թܭɾ࣪ܭ • CO2ηϯαʔ • ిྗεϚʔτϝʔλʔ ܭଌػثͷྫ
Թܭɾ࣪ܭ
https://www.switchbot.jp/products/switchbot-meter
https://www.switchbot.jp/products/switchbot-meter
None
https://qiita.com/warpzone/items/11ec9bef21f5b965bce3
None
https://ja.mackerel.io/
None
None
None
None
None
ࢲͷ͓͏ͪHackͷํ๏·ͱΊ • ܭଌػث͔ΒBluetooth LEɺϩʔΧϧωοτϫʔΫɺΠϯλʔωοτɺγϦΞ ϧଓͳͲͷखஈʹΑΓσʔλΛऔಘͯ͠ɺ ʢSwitchBotԹ࣪ܭBLE·ͨSwitchBot Hubܦ༝ͰऔΕΔʣ • σʔλΛੵʢͳΜͰΑ͍͕࣌ܥྻDB͕ศརʣ͠ɺ •
ՄࢹԽͨ͠ΓࣗಈԽͷτϦΨʔΛઃఆͨ͠Γ͢Δ
• Raspberry PiͰBLE·ͨϩʔΧϧωοτϫʔΫܦ༝ͰσʔλΛऔಘ͢Δॲཧ Λఆظతʹಈ͔͢ʢ̑ඵ͝ͱ͘Β͍ʣ • σʔλMackerelʹૹ৴ • MackerelͷAPIΛ͏ΫϥΠΞϯτΛ࡞ͯ͠ՄࢹԽͨ͠ΓɺPush௨Λૹͬ ͨΓɺผͷॲཧΛىಈͨ͠Γ͢Δ ࢲͷ͓͏ͪHackͷํ๏·ͱΊ
ͦͷଞͷબࢶ • Grafana (https://grafana.com/) • In fl uxDB (https://www.in fl
uxdata.com/)
https://twitter.com/koizuka/status/1364473534852988928
https://twitter.com/sumihiro/status/1374528756837085185
https://twitter.com/_yyu_/status/1260935186717437952
Raspberry Piͷೖखੑʹ͍ͭͯ • 20225݄ݱࡏɺRaspberry PiಋମෆͳͲͷӨڹʹΑΓ؆୯ʹೖखͰ͖ͳ͘ͳͬ ͍ͯ·͢ɻʢ͓ۚΛੵΜͰ͍͠ʣ • ಉ༷ͷ͜ͱΛ͢Δ߹Raspberry Piޓػʢ͜Ε५ͱݴ͑ͳ͍͕ʣΛݕ౼͢Δ ͷΑ͍͔͠Εͳ͍
• https://ameblo.jp/electromagneticgadgetlab/entry-12634750472.html • ͘͠NASͰDockerͳͲΛಈ͔͢ͱ͍͏ख͋Γ·͢ɻʢ࠷ۙͷNASී௨ʹߴੑ ೳͳৗ࣌ىಈ͍ͯ͠Δίϯϐϡʔλͱͯ͑͠Δʣ • SynologyɺQNAPͳͲ
CO2ηϯαʔʢೋࢎԽૉೱʣ
CO2ηϯαʔΛબͿࡍͷҙ • ݕݪཧ͕ޫֶࣜʢNDIRηϯαʔʣΛ༻͍ͨͷͰ͋Δ͜ͱ • NDIRηϯαʔTVOCํࣜʹൺͯߴՁͳͷͰ҆Ձͳʢ2ʙ3,000ԁʁʣ ʹΘΕͳ͍ɻ • ৽ܕίϩφΠϧεରࡦͰ҆ՁͰૈѱͳCO2ϝʔλʔ͕൙ཞ͍ͯ͠ΔͨΊɺ TVOCํࣜͰਖ਼͘͠༻Ͱ͖ΔΛݟ͚ͭΔ͜ͱඇৗʹࠔɻ ʢࢀߟʣhttps://www.meti.go.jp/covid-19/guideline.pdf
None
https://www.kk-custom.co.jp/emp/CO2-mini.html
https://www.netatmo.com/en-gb/weather/weatherstation
https://www.getawair.com/
None
https://r-kurain.hatenablog.com/entry/2016/01/26/164648
https://r-kurain.hatenablog.com/entry/2016/01/26/164648
• ҆Ձ͗͢Δͷආ͚ΔʢͦͦɺηϯαʔࣗମͷՁ͕֨ͦͦ͜͜͢ΔͷͰ7,000 ԁʙ͕·ͱͳͷͩͱࢥΘΕΔɻʣ • ޫֶࣜʢNDIRʣηϯαʔΛ͏ɻʢબఆʹ͍ͭͯΑΓৄ͘͠ް࿑লͷใΛࢀ ߟʹʣ • ̍ສԁҎԼ͘Β͍ͷग़අͰࡁ·͢ʹ͚ͬ͜͏ࣗͰ͍Ζ͍Ζ࡞Δඞཁ͕͋Δɻશ ෦ೖΓͷʢAwairͳͲʣΛങ͏ͷ͕؆୯͕ͩ̎ʙ̏ສ͘Β͍͔͔Δɻ •
CO2ҙ֎ͱ্͙͕͢ΔͷͰɺHack͠ͳͯ͘ܭଌػثΛങͬͯݟ͑Δͱ͜Ζʹஔ ͍͓͚ͯͩ͘Ͱཱͭɻ CO2ηϯαʔʹ͍ͭͯ·ͱΊ
ిྗεϚʔτϝʔλʔ
https://www.tepco.co.jp/pg/consignment/liberalization/smartmeter-broute.html
https://www.tepco.co.jp/pg/consignment/liberalization/smartmeter-broute.html
None
https://www.tessera.co.jp/rl7023stick-d_ips.html https://www.chip1stop.com/view/dispDetail/DispDetail?partId=TSRA-0000042
https://qiita.com/puma_46/items/9dfc27323674641ed5b4
https://qiita.com/puma_46/items/9dfc27323674641ed5b4
None
Nature Remo E https://nature.global/nature-remo-e/
AiSEG2ʢHOME IoTʣ https://sumai.panasonic.jp/aiseg/hems/index.html
• ݱࡏɺిྗܭεϚʔτϝʔλʔʹஔ͖Θ͍ͬͯͯॠ࣌ిྗͳͲͷใ͕औಘͰ͖Δɻ • εϚʔτϝʔλʔͷΞΫηεʹʮBϧʔτʯαʔϏεͷਃ͠ࠐΈ͕ඞཁɻ̎िؒ͘Β͍͔͔ΔͷͰ Θͳͯ͘ͱΓ͋͑ͣਃ͠ࠐΜͰ͓͜͏ɻ • ·ͩࣗͷిྗܭ͕εϚʔτϝʔλʔʹͳͬͯͳ͍߹BϧʔτΛਃ͠ࠐΊεϚʔτϝʔλʔʹஔ ͞ΕΔɻ • εϚʔτϝʔλʔͷΞΫηε໘ͩ͠ϓϩτίϧʹৄ͘͠ͳΔརͳ͍͠ɺࣗͰͬͯେ͠
ͯ҆͘ͳΒͳ͍ͷͰɺͨͿΜΛങ͏ͷ͕Φεεϝɻ͔͠͠εϚʔτϝʔλʔΛಡΉͷબࢶ ͦΜͳʹͳ͍ɻ • ిྗফඅͷ࠷దԽશମͷ༰ྔͷଞʹճ࿏ͷ༰ྔ͋ͬͯશମΛܭଌͯ͠ճ࿏ਤ͕ͳ͚Εͦͦ͜͜ ໘ɻͦͷؾʹͳΕཱ͚ͭͲझຯͷྖҬͰ͋Δɻ ిྗεϚʔτϝʔλʔʹ͍ͭͯ·ͱΊ
• ܭଌ͓͏ͪHackͷجૅɻ͔ͦ͜ΒࣗಈԽͨ͠Γ͍Ζ͍Ζͳ࿈ܞʹͭͳ͕Δɻ • ܭଌػثͷબ؆୯Ͱͳ͍ɻࢲকདྷʹΘͨͬͯσʔλΛࣗͰऔಘͰ͖Δ ͔Ͳ͏͔Λॏࢹ͍ͯ͠Δɻ • API͕༻ҙ͞Ε͍ͯΔ࠷ۙଟ͍ɻඅ༻͕ग़ͤΔͳΒΦεεϝɻ • ϑϩϯτͷUIʹظ͠ͳ͍ɻՈిϝʔΧʔʢ͋Δ͍SwitchBotͳͲͰ͋ͬͯ ʣ͕࡞ΔUIͷ࣭ߴ͘ͳ͍ɻͦͦສਓʹదͨ͠UIͳ͍ɻ
• ϑϩϯτΛࣗͰॻ͘ͱָ͍͠͠ศརͳͷ͕Ͱ͖Δɻ શମͷ·ͱΊ
• ܭଌ͓͏ͪHackͷجૅɻ͔ͦ͜ΒࣗಈԽͨ͠Γ͍Ζ͍Ζͳ࿈ܞʹͭͳ͕Δɻ • ܭଌػثͷબ؆୯Ͱͳ͍ɻࢲকདྷʹΘͨͬͯσʔλΛࣗͰऔಘͰ͖Δ ͔Ͳ͏͔Λॏࢹ͍ͯ͠Δɻ • API͕༻ҙ͞Ε͍ͯΔ࠷ۙଟ͍ɻඅ༻͕ग़ͤΔͳΒΦεεϝɻ • ϑϩϯτͷUIʹظ͠ͳ͍ɻՈిϝʔΧʔʢ͋Δ͍SwitchBotͳͲͰ͋ͬͯ ʣ͕࡞ΔUIͷ࣭ߴ͘ͳ͍ɻͦͦສਓʹదͨ͠UIͳ͍ɻ
• ϑϩϯτΛࣗͰॻ͘ͱָ͍͠͠ศརͳͷ͕Ͱ͖Δɻ શମͷ·ͱΊ
https://twitter.com/omochimetaru/status/1452281836814569474
https://github.com/search?q=sharp+cocoro API͕͋ΕͳΜͱ͔ͳΔ ϑϩϯτࣗͰॻ͜͏
https://homebridge.io/ API͕͋ΕͳΜͱ͔ͳΔ ϑϩϯτࣗͰॻ͜͏
ࢀߟࢿྉ • SwitchBotԹ࣪ܭ • https://www.switchbot.jp/products/switchbot-meter • https://qiita.com/warpzone/items/11ec9bef21f5b965bce3 • CO2ηϯαʔ •
https://www.kk-custom.co.jp/emp/CO2-mini.html • https://www.meti.go.jp/covid-19/guideline.pdf • https://r-kurain.hatenablog.com/entry/2016/01/26/164648 • https://www.netatmo.com/en-gb/weather/weatherstation • https://www.getawair.com/
ࢀߟࢿྉ • ిྗεϚʔτϝʔλʔ • https://www.tepco.co.jp/pg/consignment/liberalization/smartmeter-broute.html • https://www.tessera.co.jp/rl7023stick-d_ips.html • https://www.chip1stop.com/view/dispDetail/DispDetail?partId=TSRA-0000042 •
https://qiita.com/puma_46/items/1d1589583a0c6bef796c • https://qiita.com/puma_46/items/9dfc27323674641ed5b4 • https://nature.global/nature-remo-e/ • https://sumai.panasonic.jp/aiseg/hems/index.html
ࢀߟࢿྉ • ࣌ܥྻDBɾϏδϡΞϥΠθʔγϣϯ • Mackerel (https://ja.mackerel.io/) • In fl uxDB
(https://www.in fl uxdata.com/) • Grafana (https://grafana.com/) • Raspberry Piޓػ (https://ameblo.jp/electromagneticgadgetlab/entry-12634750472.html) • ༗ࢤͷํͷ࡞ • https://twitter.com/koizuka/status/1364473534852988928 • https://twitter.com/sumihiro/status/1374528756837085185 • https://twitter.com/_yyu_/status/1260935186717437952