A "Hello, World" using push notifications to control sound and lights on an internet-connected toy animal. By popular demand it also implements 'quack backs' and will inform you when a peer has sent a message. I also reserve the right to unplug the speaker late at night :p
Visit Internet of Ducks to make an an internet connected duck quack via push notification.
-
An internet connected embedded device (Raspberry Pi, etc) with lights and a speaker.
-
PubNub's easy-to-use push API and SDKs. Or a MQTT broker.
-
A homemade or re-purposed stuffed animal (instructions forthcoming).
-
Register for a PubNub account. They provide a free development Sandbox, as well as a generous platform evangelism program for students, makers, start-ups etc.
-
Or, alternatively, setup a MQTT broker. For testing and experimentation you can use a public one.
-
Purchase a Raspberry Pi, LEDs, wifi dongle and speaker.
-
Configure your application settings in
js/app.js
, these will vary slightly depending upon whether you use PubNub or MQTT.
var settings = {
channel: 'ducks',
pub_key: 'pub key',
sub_key: 'sub key',
};
-
Copy the
/www/
folder to your web host of choice, or run on localhost withpython -m SimpleHTTPServer 5000
-
Clone the repo to your Raspberry Pi and install dependencies, configure and then run
client.py
git clone https://github.com/danasf/quackquack
sudo apt-get install mplayer
sudo pip install pubnub
sudo python ~/quackquack/pyclient/client.py
- Have fun!
- Optimizing the physical duck.
- Battery-operated, Bluetooth LE or Zigbee connected Arduino animals, routed by a central, Internet connected node (star topology).
- Quack CC-BY CrazyDuckMan
- Rubber Duck via OpenClipart
- Comic Neue Font
- PubNub
- MOWS - MQTT over Web Socket
MIT 2014