I need to be able to receive and process commands that are sent to my Particle via chat apps. Twitch, ideally, or Telegram, or YouTube. I can find some examples on the web of chat-controlled devices that aren’t Particles, but nothing specifically for this system. (seems like it should be easier with a Particle anyways?)
I’ve been able to send text from my Particle to chat apps, I just need the reverse now. I want to have certain “commands” entered in a Twitch chat trigger things to happen on my device.
Are there any similar projects I should be looking at? I’d appreciate any guidance on how to approach starting this project.
Thanks! I followed the info in that link a few days ago and got sending messages to Telegram to work. The reverse seems more complicated to me. I’m very new to this so I appreciate the feedback. Here’s how I’m guessing this could work… I set a Telegram bot up with a webhook (Telegram Bot API) that sends all updates (messages, etc) it gets to the Particle Cloud API (using my specific device id and token somehow). The content of those updates from Telegram will look something like this:
I thought I should close this topic out by posting my solution. While I was able to get it working eventually, I opted instead to use a program called Streamer.bot to do all of this for me, and it works extremely well. It grabs commands from Twitch’s chat and passes them to my particle devices using command line function calls.