An AllThingsTalk starter kit experiment to receive notifications from a doorbell on your smartphone.
Ever been in a situation where you are working in the garden and someone rings at your door but you couldn’t hear the doorbell?
If yes, then this experiment is definitely for you.
This experiment will send out a notification to your smartphone when someone pushes the button representing our doorbell. It demonstrates
how you can connect hardware, use notifications and how to integrate an Android device as an IoT device.
Basic knowledge of Intel Edison is a must have, if you’ve never used an Intel Edison before we suggest the setup guide.
First we need to create our device. Log in to AllThingsTalk Maker and navigate to the ground in which you want to create your device. Next follow these instructions.
If you just created a new account, you will have a default ground called playground setup for you. You can use this ground to create your devices.
The Intel Edison will use a node.js project which you edit using the Intel XDK. You can find the smart doorbell
project in the /intel/experiments/
folder of the nodejs-client-examples that you downloaded in the setup guide.
1 | { |
You find the device credentials under the SETUP tab of your device settings, which you can find behind the gear icon.
After the project has started, you should now see the asset created under your device in the AllThingsTalk Maker (you may need to refresh your browser).
It’s time to test the first part of the experiment. Click the button to initiate it. It will now show true or false depending on whether the button is down or not.
As a last step, we will create a pinboard for a nicer visualisation of our asset.
To visualise our date, we will create a pinboard. For more information on pinboards, please check how to use pinboards.
Now we will pin a control (visual representation) for our Push button asset.
To receive ground notifications, simply turn them on in the ground. You can do this as follows:
You will now receive a notification every time something in the ground changes. You can view these notifications both in the AllThingsTalk Maker
and AllThingsTalk Mobile!