This program’s basic function is that every minute, to our webhook, it will send a LED signal, with an indefinite time. We can achieve this with the timer and webhook function.
JSON code:
{ "do": [ { "timer": { "do": [ { "webhook": { "url": "https://webhook.site/f0c1602e-2535-4367-9d8e-439520dbc8d6", "values": true } }, { "light": { "color": 1, "duration": 1, "led": 0 } } ], "every": 60, "id": 0, "play": -1 } } ]}
Lesson 9: Remote control
When we execute this code, what we get is that when we press the circle a red LED lights up, and then with the go function, which is to be able to use the remote control for 5 seconds and once we have been with the control for five seconds it goes to run a…