Hi all,
I've recently picked up a mkr1010 board for a project I'm building for my daughter.
Essentially she loves listening to specific playlists on the amazon echo in her room, but as she is only 2 isn't quite able to string together the correct sequence of words to get the right result for Alexa each time.
My plan is to build a board with photos on and buttons under each photo, hooked up to the arduino so that when a button is pushed it triggers an alexa routine.
I've seen other threads of people trying to do similar things, but there is no native capability for this yet so I am hacking around it.
I have got this working with one button by setting up a virtual switch in smart things, a web hook in IFTTT and then the properties in arduino cloud so that when the button is pressed on the arduino, it fires the webhook > IFTTT > turns on the virtual switch > triggers the alexa routine which in turn turns off the switch and plays the desired playlist on my selected device. - Very happy to get to this point.
However ... I now want to scale up and have multiple buttons, but have hit a problem in that the webhook in arduino cloud IDE seems to fire for all communications with the cloud service. I need a way of setting up 12 virtual switches, 12 IFTTT triggers / webhooks and then only firing the one relative to the button that has been pressed. (Unless these can be parameterised)
Can anybody point me in the direction of how I would add multiple webhooks to the IDE and indicate which to fire from the arduino code? - Or if not I assume that I can somehow send a post command from the arduino code. Examples I've found use enet rather than wifi. - Does anybody have an example of this for the MKR1010 please? - Assume I could then just fire a specific post command direct from the code.
Thanks in advance