As entertaining as watching Netflix may be, you’re not burning a lot of calories while binging on your favorite shows. In order to do both at the same time, hacker “Roboro” modded a stationary exercise bike to stop streaming if he’s not maintaining his fitness goals.
Bicycle speed is derived from the signal that’s normally sent to the built-in display. He uses an Arduino Nano to hijack the square wave, and sends this info to the streaming computer serially via USB.
Starting the Python script and inputting some information, Firefox will start to stream Netflix and display in real-time for current workout information such as round, speed, nominal speed for this round and time to next round. If the user goes below the nominal speed for too long, Netflix will pause until the user has gotten back up to speed.
If you’d like to try this yourself, you can find an Instructables write-up with all the necessary details and check out his code on GitHub. Though designed around Netflix, Roboro notes that it can be used with other streaming services with a few changes.