This is a repo containing code which lets someone set up a sort of spin-off of "Twitch plays pokemon", but with ESP32 rovers!
There are 3 components to the networking:
server.py
that facilitates communication between the users' chats from a streaming channel and the ESP32s.twitchBot.js
that monitors and interprets commands from a streaming Twitch channel and communicates with server(s) via API requests.There are two versions of networking setups based on the WiFi capabilities:
localServerCode
. For the VM version, see webSocketCode
.The ESP32 sends out either jpeg or mjpeg depending on which implentation is being used, and Twitch only accepts h264.
In both implementations, it is assumed some sort of existing software is being used to encode and stream, such as OBS, ffmpeg, etc.