Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
モンスターマシンを起こすBotを作った話 / wake up bot
Search
Nishimura Yuki
June 25, 2021
Technology
44
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
モンスターマシンを起こすBotを作った話 / wake up bot
家にあるデスクトップパソコンを遠隔操作で起動するBotを作った話です
Nishimura Yuki
June 25, 2021
More Decks by Nishimura Yuki
See All by Nishimura Yuki
特に作りたいものがない人のためのプログラミング入門
ni5h1
0
130
カリー化入門 / currying
ni5h1
0
69
Other Decks in Technology
See All in Technology
2拠点SRE活動始めてみた | sogaoh's LT @ ホンマでっかSRE勉強会 #3
sogaoh
PRO
0
210
AIエージェント時代、Kaggleにどう取り組むか
takanao
2
410
なぜ東京にいる私が、新潟の技術コミュニティを運営するのか by 八雲慎之助
yakumo
0
130
Agent 活用環境の構築・運用のための AWS サービスのご紹介/agentcore-for-building-and-operating-agents
ren8k
1
280
スマートロックを支えるFlutter × ネイティブ連携の実践 / Flutter and Native Integration in Practice: Powering Smart Locks
bitkey
PRO
0
110
AWSセキュリティで活用するAI機能
cmusudakeisuke
1
380
OneLakeをデータソースにした AI Search(Foundry IQ)の ライフサイクル管理
ryuseiiida
0
200
基本から分かる!AWSセキュリティ運用の考え方と任せ方
cmusudakeisuke
1
250
Autonomous AI Lakehouse - Live AI Hubから始めるセキュアなAIデータ活用 -
oracle4engineer
PRO
2
180
AI駆動開発におけるハーネスエンジニアリングの勘所
tsukuboshi
1
880
Devin プロモコードの受け取りと適用(2026.10.27)
kinopeee
1
730
Lint の層を組み直した話
bengo4com
2
240
Featured
See All Featured
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
31k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
22k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.9k
The Language of Interfaces
destraynor
162
27k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
2
960
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
1
290
The Mindset for Success: Future Career Progression
greggifford
PRO
0
550
Un-Boring Meetings
codingconduct
0
470
How to build a perfect <img>
jonoalderson
1
6.2k
Done Done
chrislema
187
17k
How to make the Groovebox
asonas
2
2.5k
Transcript
モンスターマシンを起こすBot を作った話 家で寝てる
ゲーミングPC買いました
ゲーミングPC買いました とにかく動作が早い! 仮想マシンもサクサク! ストレージがでかいので仮想マシンをたくさん保存できる!
ゲーミングPC最高!!!
家の外でも使いたい
Chrome Remote Desktop インターネット越しでも使える NATの内側のパソコンでも操作可能 しかも直接通信している…… ただし、操作対象PCが起動していないとダメ スリープになっただけでもアウト
遠隔起動Bot作りました
遠隔起動Botの仕組み NAT 遠隔起動 DiscordBot 起きろ! WebSocket WoL Discord Raspberry Pi
遠隔起動Bot詳細 https://github.com/nishi-yuki/RaspizDBot1 DiscordBotはNATの内側でも動くので採用 Goで書きたかったのでライブラリはDiscordGoを使用 {bot名}wake を送信するとWoWLan スリープ or 休止状態(ハイバネーション)から復帰できる 現状シャットダウンしてしまうと詰む
現代のWoLはカオスでややこしい。 参考文献 :https://www.atmarkit.co.jp/ait/articles/2004/20/news021.html
デモ
おまけ 他に試したこと • ラズパイzeroでキー入力してスリープ解除 • 単にキーを入力するだけでは復帰しなかった (仕様らしい) • scapyでLayer2でWoL 今後時間があれば試したいこと
• 電源スイッチ直接制御 • ハードウェアの用意が面倒くさいだけで 難しくはないはず……