
11/25/2025
What this post added
This post details the engineering effort behind a gamified treadmill experience that rewards runners with in-store credit, integrated with a custom POS UI extension. It covers the hardware setup (manual treadmill, Runn sensor, TrueForm Trainer, POS hardware, receipt printer, displays, server), software architecture (Python script for FTMS data, Remix app for game logic and state management, POS UI extension for discount application), and the logic for translating runner pace into earned credit. It also describes the state machine for game control and the process of printing receipts with scannable barcodes for discount redemption. The POS UI extension handles fetching user data, adding customers to the cart, and applying discounts.