I recently experimented with the Pavlok, a wrist-worn device that delivers shocks for negative reinforcement of behaviors. The unique feature is that users must manually trigger the shock. To enhance its functionality, I recorded my screen and utilized vision AI (via gemini-flash) to detect when I lost focus, automatically activating the Pavlok via its API. This entire setup is browser-based, making it easy for anyone to try. For those without the device, a loud beep option is available in the browser version. Additionally, the project is open-source, allowing others to explore it further: https://github.com/gr-b/screenshockme.
You can find more discussions on this topic through the provided comments URL on Hacker News.
Source link