Library to connect to your Streamlabs account and catch all the Twitch
events.
- Follow
- Subscription
- Resubscription
- Donation
- Raid
- Host
- Bit
- ESP8266 Arduino for ESP8266
- ESP32 Arduino for ESP32
- ESP31B
- Particle with STM32 ARM Cortex M3
- ATmega328 with Ethernet Shield (ATmega branch)
- ATmega328 with enc28j60 (ATmega branch)
- ATmega2560 with Ethernet Shield (ATmega branch)
- ATmega2560 with enc28j60 (ATmega branch)
Best thing is to use the Arduino Library Manager.
- Go to Sketch > Include Library > Manage Libraries.
- Install
WebSockets
by Markus Sattler - Install
StreamlabsArduinoAlerts
- Select Sketch > Include Library > StreamlabsArduinoAlerts
Method to connect to Streamlabs server, required socket token.
char* socketToken = "token";
StreamlabsAPI streamlabsAPI.connect(socketToken);
void followerEvent(const char* payload) {
Serial.print("got followerEvent message: ");
Serial.println(payload);
}
streamlabsAPI.followTwitchEvent(followerEvent);
loop method is required to make this library work.
void loop() {
streamlabsAPI.loop();
}
Event result documentation can be found on Streamlabs WebSite HERE
You can find yours at https://streamlabs.com/dashboard#/apisettings under "API TOKENS" then "Your Socket API Token". This token is bound to the account that you are logged in with. If you need to access the alerts of a streamer, ask them to provide you with a token from the above location.
Submit issues to: https://github.com/lucalas/StreamlabsArduinoAlerts/issues