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
42
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
67
Other Decks in Technology
See All in Technology
Deep Data Security 機能解説
oracle4engineer
PRO
2
730
FactoryBotアンチパターン / factory_bot anti-patterns
toshimaru
0
140
おそらく日本で唯一のDevRelインターン生として
husengs7
0
170
ハードウェアコンペでもAI駆動開発が進んでいる話
iotengineer22
1
590
使いこなすために知っておきたい Azure SRE Agent アンチパターン
torumakabe
2
420
脆弱性診断って、何をしているの? 〜弱点を見つけて、会社の改善につなげるまで〜
keeg
0
730
"優秀な誰か"の下位互換にならないために
yut0naga1_fa
0
160
契約書画像からの情報抽出に特化した視覚接地モデルを育てる話
sansantech
PRO
1
160
自作バイナリを動かす「入口」8選
puhitaku
1
1.1k
転んだ話が背中を預ける理由になる / A_story_about_falling_down_gives_you_a_reason_to_watch_each_other_s_backs.pdf
pauli
3
330
freeeらしさをAIとともに作る / Creating the freee Experience with AI
ymrl
0
210
ブラウザとサーバーから考えるAI時代のフロントエンド監視
shogo4131
2
550
Featured
See All Featured
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
770
brightonSEO & MeasureFest 2025 - Winning Strategies for Black Friday CRO & PPC - Christian Goodrich
cargoodrich
3
860
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.2k
Un-Boring Meetings
codingconduct
0
440
Reality Check: Gamification 10 Years Later
codingconduct
0
2.3k
Making Projects Easy
brettharned
120
6.8k
New Earth Scene 8
popppiees
4
2.7k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Typedesign – Prime Four
hannesfritz
42
3.2k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
Building an army of robots
kneath
307
47k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
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 今後時間があれば試したいこと
• 電源スイッチ直接制御 • ハードウェアの用意が面倒くさいだけで 難しくはないはず……