Ever since I have completed my BOLT IOT training. I am amazed by the APIs and Webhooks. Then I decide to make a simple project using bolt iot module and web hooks and start to read some projects and I came across a platform IFTTT that connects apps, devices and services over web. Then I decide to make a project using IFTTT and webhooks to give a alert whenever the NASA post the breaking News.
Hardware Setup :Connect the longer end of the Buzzer to the Pin 0 of Bolt WiFi module and the shorter end to the ground pin (GND) with the Male/Female Jumper Wire and connect your bolt device with power supply.
Login to cloud.boltiot.com and note the ID of your Bolt WiFi Module.Click on the API option and under the section for Generate Key, click on Enable and copy your API key.
As we know Buzzer is a output device. It needs a digital signal to activate or deactivate the buzzer and thus we have used a digitalWrite command sent over the web to Bolt cloud to switch on or off the buzzer.
To create command:
1. Go to https://docs.boltiot.com/docs
2. Click on API section and then GPIO commands
3. Go to Write Digital Output and copy the command.
Example of commands
Buzzer on :
Buzzer off :
Don't forget to change the command accordind to your :
API_KEY: get it from API section on boltiot cloud dashboard.PIN_NUMBER: Pin to which you have connected the LED..DEVICE_ID: The id of your bolt device from your boltiot cloud dashboard.
Integration of IFTTT and web hooks service :1. Go to https://ifttt.com/
2. Login to IFTTT.
3. Go to your profile and click on create button.
4. Click on +This and search for the service "space" and click on it to connect.
5. click on the "Breaking News By NASA" as a trigger.
6. click on +That option to select the action.
7. select webhooks service as a action and connect it.
8. Make a web request using webhooks.
9. complete the action fields.
10. URL: It is the command generated in step 3.
Method: GET
Content Type: application/json
11. Then click on finish and that's it.
That's it you have created a project. Now you will get a alert using buzzer whenever Breaking news is posted by NASA.
Now you can create other similar projects easily using boltmodule and IFTTT.
Comments
Please log in or sign up to comment.