-
Notifications
You must be signed in to change notification settings - Fork 1
NotificationsPi
Makoto Yonezawa edited this page May 26, 2019
·
11 revisions
ラズパイからスマホ、スマホからラズパイ
- 携帯(iPhone or Android)
- ラズパイ
- スマホに通知をするので、スマホ側にIFTTTアプリをインストール
- IOS > https://itunes.apple.com/jp/app/ifttt/id660944635?mt=8
- Android > https://play.google.com/store/apps/details?id=com.ifttt.ifttt&hl=ja
- Webhook自体は概念のようなもの(Webコールバック)
- https://en.wikipedia.org/wiki/Webhook
- IFTTTの中にサービスとして用意されているのが"Webhooks"
-
https://ifttt.com/maker_webhooks
- 使い方、キーなどについては右側上部にあるDocumentationから
- ラズパイからスマホへ通知を投げる
- Webブラウザーから設定する
- IFTTT.comでNew Appletを作成する
- this -> Webhooksを選択
- Receive a web requestを選択
- Event Nameに”Hello”と代入する
- Create Triggerボタンを押す
- that -> notification
- Send a notification from the IFTTT appを選択
- Create Actionボタンを押す
- Finishを押すと、通知のAppletが完成
-
ラズパイにプログラム(python)を書いて実験する
-
コードは以下に
https://github.com/TochigiRaspberryPICircle/kit/blob/master/notification/hello_nt.py
- BeeBotteを使う
- https://beebotte.com/home
=== nodered
node-red-pi --max-old-space-size=256