Raspberry PiでMilkcocoa 
を動くようにしてみた 
IoT特集: 月刊ライトニングトーク2014年10月号 
Technical Rockstars, Inc 
Shuhei Hiya
今回やりたいこと
Raspberry Piで 
ノアの洪水ボタン
ノアの洪水ボタンとは 
ボタンを押すと上から弾が降ってくる
インタラクティブなWebサイトを作るのは大変です。
1行のコードでバックエンド 
var milkcocoa = new MilkCocoa(“io-yourappid.mlkcca.com”);
100行ちょっと
開発期間3時間20分
http://jthreefps.mlkcca-app.com/
ノアの洪水ボタンとは 
send broadcast 
ボタンを押すと上から弾が降ってくる
Raspberry Piを用意
Nodeをインストール
gpio-adminをインストール 
git clone git://github.com/quick2wire/quick2wire-gpio-admin.git 
make 
sudo make install
milkcocoaのSDK(簡易版) 
をダウンロード 
http://cdn.mlkcca.com/nodejs/milkcocoa.zip 
wget http://cdn.mlkcca.com/nodejs/milkcocoa.zip 
unzip milkcocoa.zip 
cd milkcocoa
注意 
• アカウント機能は使えません。 
• Node.jsクライアントはまだ開発段階です。
コーディング
月刊LT10月:Raspberry Pi×Milkcocoa
月刊LT10月:Raspberry Pi×Milkcocoa
月刊LT10月:Raspberry Pi×Milkcocoa
月刊LT10月:Raspberry Pi×Milkcocoa
月刊LT10月:Raspberry Pi×Milkcocoa

月刊LT10月:Raspberry Pi×Milkcocoa