Voice Controlled Lighting using 'Ok Google!'


#1

If you have any queries, please ask them below. Also, we encourage students to answer the queries of other students as well.


5 minutes, 4 steps and "Ok Google turn on the lights"
#2

After clicking ‘Write Digital Output’,where to write the command?


#3

After clicking ‘Write Digital Output’,where to write the command?


#5

@rohitkg1998 @roshnidash827

PART 1
You need to first generate your own digital write command by referring to the command mentioned in step 3 of the project.

Please make sure you replace the API_KEY and DEVICE_ID with your own. You can find both these values from the cloud dashboard.

Below is the detailed explanation of the command.

https://cloud.boltiot.com/remote/API_KEY/digitalWrite?pin=PIN_NUMBER&state=HIGH/LOW&deviceName=DEVICE_ID

The parameters that you need to replace are:
API_KEY: You can get it from API tab on cloud dashboard.
PIN_NUMBER: Pin to which you have connected the LED/Bulb. Values can be either 0,1,2,3 or 4
HIGH/LOW: This value indicates if you want to turn on/off the pin. HIGH will turn on, LOW will turn it off
DEVICE_ID: The id of your device. You can get it from cloud dashboard.

So the final command will look like this[Please do not use this command directly. you need to replace your own values]:

https://cloud.boltiot.com/remote/f1f918e9-d9c2-4e5b-aed0-b7cb743f74cf/digitalWrite?pin=0&state=HIGH&deviceName=BOLT13819450

The above specific command will turn ON the LED connected to PIN 0 of device BOLT13819450.

PART 2:
Entering the command on IFTTT.
Enter the command you just created in the webhook url of IFTTT applet that you’ll be creating.
Refer the project to know how to do it step by step.