# Run for your money: Engineering a treadmill that prints store credit

DevFeed: [Run for your money: Engineering a treadmill that prints store credit](<https://devfeed.tech/articles/run-for-your-money-engineering-a-treadmill-that-prints-store-credit-1426.md>)

Original publisher: [Read original article](<https://shopify.engineering/how-we-built-a-gamified-treadmill>)

Author: Nikola Draca

Published: 2025-11-25T13:31:13Z

Content type: article

Language: en

Sources: [Shopify Engineering](<https://devfeed.tech/sources/shopify-engineering.md>), [Shopify Engineering - Shopify Engineering](<https://devfeed.tech/sources/shopify-engineering-shopify-engineering.md>)

Topics: [Shopify](<https://devfeed.tech/topics/shopify.md>), [Extension](<https://devfeed.tech/topics/extension.md>), [Barcode](<https://devfeed.tech/topics/barcode.md>), [real-time](<https://devfeed.tech/topics/real-time.md>), [Python](<https://devfeed.tech/topics/python.md>), [Socket.IO](<https://devfeed.tech/topics/socket-io.md>), [Hardware](<https://devfeed.tech/topics/hardware.md>)

Tags: [checkout](<https://devfeed.tech/tags/checkout.md>), [code](<https://devfeed.tech/tags/code.md>), [customer](<https://devfeed.tech/tags/customer.md>), [data](<https://devfeed.tech/tags/data.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [events](<https://devfeed.tech/tags/events.md>), [extensions](<https://devfeed.tech/tags/extensions.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [python](<https://devfeed.tech/tags/python.md>), [real-time](<https://devfeed.tech/tags/real-time.md>), [retail](<https://devfeed.tech/tags/retail.md>), [sensor](<https://devfeed.tech/tags/sensor.md>), [shopify](<https://devfeed.tech/tags/shopify.md>), [ui](<https://devfeed.tech/tags/ui.md>)

## AI overview

Shopify and Endorphins Running built a gamified manual treadmill for the 2025 NYC marathon weekend. A pace sensor sent Bluetooth FTMS data to a Python script, while Socket.IO and a Shopify POS UI extension connected the running experience to store-credit redemption. Participants earned credit for maintaining a selected pace and received a barcode for applying their discount at checkout.

## Source excerpt

We combined FTMS sensors, Socket.IO, and POS UI extensions to turn a manual treadmill into a discount-printing machine.