Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
C0D4681386yBuy a smart watch with step counter and API access.
write something that can block access to the games exe's (or even encrypt them) so you can't run them until you hit n+1 steps at which point a decrypt is triggered. :) -
@RicoNijeboer unnecessarily complicated solution:
If the treadmill has a significantly uneven surface (as it should) you can set up a simple mechanism:
Shine a thin diode laser or a focused LED beam on the surface.
As the surface moves, the reflected radiance in a particular direction will change because of the roughness of the surface. The frequency of this change will be positively correlated with the speed of the surface (linear up to sampling frequency of your sensor, probably). Use it to determine velocity. From that get distance via integration. Use an Arduino to run this whole thing and have it communicate with an app on your PC through serial. Bam.
Interestingly, this is how optical tachometers work, to make it better you could put a strip of white paper/plastic on the surface and measure the number of times it crosses the LED/laser beam, this would be easier because you'll have a spike in reflected radiance. -
Crazed20506yHire an old Italian mother to judge you for not completing your task if you start gaming early
"YER NEVER GONNA AMOUNT TA NOTHIN STEWART"
Related Rants
!dev !rant
So I'm thinking of buying a treadmill and I was wondering, might it be possible to build something that locks my computer from gaming until I have walked / ran X km on it.
Does anyone know / anyone know an existing app like that?
random
dare to ask
question
treadmill