LoginSignup
13
1

More than 5 years have passed since last update.

AmazonDashButtonとLineNotifyで気持ちを伝える

Posted at

このエントリはNIJIBOX Advent Calendar 2016の11日目です。

はじめに

AmazonDashButtonを使用して、LineNotifyにメッセージを投稿してみようと思います。
しかし、AmazonDashButtonひとつでは気持ちを伝えることは難しいです。
そこで、モールス信号を使うことを思いつきました:zap:
モールス信号ならば、ドット、ダッシュ、スペースの3種類で50音が表現可能です。

用意するもの

  • AmazonDashButton×3 :innocent:

セットアップ

リポジトリを参照してください。

デモ

npm startでlistenした後、3つのAmazonDashButtonを駆使して、メッセージを作成していきます。
Screen Shot 2016-12-11 at 00.44.19.png

作成したメッセージがLine Notifyに通知されます。
Screenshot_2016-12-11-00-42-37~01.png

余談

このままではボタンを押すたびに通知が来てしまうので、設定から通知を切ることをオススメします。
Screenshot_2016-12-10-15-35-33_01.png

13
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
1