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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
770
Post AI時代のリファクタリング実践記 / Refactoring in the post AI era
kaminashi
1
110
並行性の問題を防げ!実践トランザクション入門
occhi
0
280
AIがコードを書く時代に、エンジニアは何で自分の価値を証明するのか / In an era where AI writes code how do engineers prove their value
carta_engineering
2
830
パッチ更新でterraform initが落ちた日
grimoh
1
120
組み立てて楽しむ AWS Blocks 入門
kmiya84377
0
230
AI駆動開発、viviONの1年 ── うまくいったこと・いかなかったこと
vivion
0
290
LLM機能を自作して分かるSnowflake Cortex AIの強み
nayuts
0
360
事業成長とデータ活用を止めないためのマネジメントへ挑戦
hiracky16
0
180
使いこなすために知っておきたい Azure SRE Agent アンチパターン
torumakabe
2
470
継続的なAIコスト最適化
bgpat
1
280
V8のArray.prototype.flatを最大約20倍速くするまでと、巨大OSSへの大規模コミットの道のり
riyaamemiya
0
220
Featured
See All Featured
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Chasing Engaging Ingredients in Design
codingconduct
0
350
brightonSEO & MeasureFest 2025 - Winning Strategies for Black Friday CRO & PPC - Christian Goodrich
cargoodrich
3
860
How to make the Groovebox
asonas
2
2.5k
Building AI with AI
inesmontani
PRO
1
1.3k
The Curious Case for Waylosing
cassininazir
1
560
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
530
Site-Speed That Sticks
csswizardry
13
1.6k
A Modern Web Designer's Workflow
chriscoyier
699
190k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
210
Unsuck your backbone
ammeep
672
58k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
530
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 今後時間があれば試したいこと
• 電源スイッチ直接制御 • ハードウェアの用意が面倒くさいだけで 難しくはないはず……