User manual
The experiment setup with an LED at pin D9
The program
In addition to the hardware setup, some steps on the ThingSpeak-
page are necessary. When you click Apps in the top-most menu of the website,
you will be shown a number of different application options. This time, we will deal
with the app ThingHTTP. If you click the corresponding button, you will first be
shown a rather empty interface. Click New ThingHTTP. Enter the following into the
form that comes up:
Name: Twitch
URL: https://api.twitch.tv/kraken/streams?channel=
rocketbeanstv
Method: GET
HTTP Version: 1.1
Parse String: _total
If you prefer another streaming channel, you can enter another channel in the URL
behind channel. Click Save ThingHTTP and then copy the API key that appears in
the overview into your clipboard. You now need to copy the key into the program,
after #define ThingHTTP. Do not forget the WLAN data. You can now upload the
program. Once per minute, it will be checked if a stream can be found. If this is the
case, the LED will light up.
This project is possible because the Twitch page provides information in the
known JSON format as well. Via the page
https://api.twitch.tv/kraken/streams?channel=rocketbeanstv
you can view the output in JSON format. It is a lot of text, but we are only inter-