Every Morning you lay on the bed and the alarm sound plays continously. So, using the BOLT IoT wifi module, you can create your own alarm system which plays at a time you preset and upon waking up, it sends you the message about how is the weather and temperature of the Day! It can help you start your day well-informed!
Best of Luck!Here We Go:First Step:1) Go to https://cloud.boltiot.com/login, Login and register your BOLT device with the BOLT IoT cloud.
2)Register at https://www.integromat.com/en and Login to your account.
3) Register on https://openweathermap.org/ and Login to your account and on the Dashboard copy your API Keys
Second Step:1) Make sure the BOLT IoT module is OFF. Make the connections according to the Fritzing Diagram given below.
Connections:
Bolt IoT module to Buzzer
GND to -ve Pin(Shorter Pin)
Pin 0 to +ve Pin (Longer Pin)
2)Connect your BOLT IoT module to the USB cable to supply power.
Third Step:Creating the Scenario in Integromat
- Log in to your Integromat account.
- Click on Create a new scenario.
- Search and select "bolt iot".
- Enter your API key by clicking on the Add button as shown below. You can find your API key on your Bolt Cloud dashboard.
- Enter the Device ID and select pin 0 as the Buzzer will be connected to this pin.
- Choose the state as HIGH as we want the Buzzer to turn on.
Replace BOLTXXXX with your Bolt Device ID
- Next, we want the buzzer to ring for a few seconds (for example 5 sec) at least. So we need to add a delay before switching off the Buzzer again.
- Click on the tools option and select sleep.
- Enter the number of seconds the buzzer should ring for in the input box. Write 5 in the Delay tab.
- Click on adding a new module and choose Bolt IoT again. Now, in this module, we will switch off the Buzzer by sending a LOW to the Buzzer.
Replace BOLTXXXX with your Bolt ID
- Enter the same Bolt ID and Pin, but this time, set the state as LOW.
- So far, we have set up the scenario to ring the buzzer. Now, we will give it some context in the form of the time to ring.
- Click on the little clock icon on the initial Bolt module. This is the scheduling option. Choose the time that you want the alarm to ring and click on OK.
To play the sound of buzzer 3 times, clone the above module and form a chain like this:
Now after the Buzzers plays sound 3 times, Go to plus icon and take a Twilio Module.
Now from your Twilio Dashboard, COPY SID and Auth Token and type it here.
In the send message from tab, select phone number and in the TO message tab type your own number in E.164 format. Refer here: https://www.twilio.com/docs/glossary/what-e164
In the body tab, write whatever you want to receive as message after the Alarm.
Now, select another module which is named as " OpenWeatherMap" :
Click on the module and select "Add".Copy the API Key from OpenWeather Dashboard under API Keys and paste it here. Select Days as Today, Tomorrow and day after tomorrow.
Scroll down, Select location in the drop down list and Type your Location in the next Location tab.
Now create another twilio module and repeat the above step. In the body of the message, select the following:
Now click "OK".
Now, you have successfully set up your alarm scenario. Don't forget to save your scenario.
- To test if the buzzer actually works, click on the "Run Once" button. The buzzer should ring for 5 seconds and then switch off.
- In the end, the whole scenario should look like this
Best of Luck!
Comments