Gym file format
A gym file describes one gym and its equipment, so a whole gym can be set up at once: Settings →
Gyms and equipment → Import gym picks the file. Importing adds a new gym and never changes or
replaces one already there. The file is checked strictly first: every problem is listed with its
path (equipment[2].serves[0]: unknown exercise "bb_row") and nothing is added until the file is
clean.
Example
Section titled “Example”A made-up gym:
{ "format": "hyperlog-gym", "version": 1, "name": "Harbour Fitness", "usualDays": ["monday", "thursday"], "pinPlates": [1.25, 2.5], "plates": [ { "kg": 20, "pairs": 10 }, { "kg": 15, "pairs": 2 }, { "kg": 10, "pairs": 2 }, { "kg": 5, "pairs": 2 }, { "kg": 2.5, "pairs": 2 }, { "kg": 1.25, "pairs": 2 } ], "dumbbells": "1 2 3 … 10 12.5 15 … 50", "bars": [ { "name": "Olympic bar", "kind": "barbell", "kg": 20 }, { "name": "EZ bar", "kind": "ez_bar", "kg": 8 }, { "name": "Swiss bar", "kind": "swiss_bar", "kg": 15 } ], "equipment": [ { "name": "Leg extension", "kind": "stack", "serves": ["leg_extension"] }, { "name": "Lat pulldown", "kind": "stack", "serves": ["lat_pulldown", "close_grip_lat_pulldown"], "ladder": { "kind": "pin", "unit": "lb", "plates": "10 20 … 200", "addOns": [2.5, 2.5], "pinPlates": false } }, { "name": "Cable crossover", "kind": "stack", "cableStation": true, "ladder": { "kind": "pin", "unit": "kg", "plates": "5 10 … 100" }, "unconfirmed": true }, { "name": "Leg press", "kind": "plate_loaded", "serves": ["leg_press"] }, { "name": "Smith machine", "kind": "plate_loaded", "serves": ["smith_machine_squat"], "ladder": { "kind": "plates", "base": 15 } }, { "name": "Squat rack", "kind": "rack_bench" } ]}Fields
Section titled “Fields”| Field | Required | Meaning |
|---|---|---|
format |
yes | Always "hyperlog-gym". |
version |
yes | Always 1. |
name |
yes | The gym’s name. A gym of the same name already there stays; the import is a second one. |
usualDays |
no | "monday" … "sunday": on import, these days become your training days at this gym (the weekday plan is yours, not the gym’s). An export never writes it. |
pinPlates |
no | The small loose plates that hang on any stack’s pin, kg, one entry per plate: up to six, each up to 25 kg. Default [1.25, 2.5]. |
plates |
no | The gym’s plates, each size once as { "kg", "pairs" }: how many pairs (0 to 50) of that size. Its bars and plate-loaded machines load them. Default: 8 pairs of 20, then 2 pairs each of 15, 10, 5, 2.5 and 1.25. |
dumbbells |
no | The dumbbell rack, as a weights shorthand (below) or a steps or list ladder. Default: 1 to 10 kg by 1, then 12.5 to 50 by 2.5. |
bars |
no | The gym’s bars, each { "name", "kind", "kg" }, kg up to 100. kind is barbell, ez_bar, trap_bar, safety_bar, swiss_bar or axle_bar; a barbell, EZ, trap or safety bar’s weight is what sessions at this gym load the gym’s plates on. A gym that lists its bars has those and no others: Squat and Deadlift, which choose their bar, start on one of the listed ones. A gym with no bars is taken to have every bar. |
equipment |
no | The equipment items, below. |
Equipment items
Section titled “Equipment items”| Field | Required | Meaning |
|---|---|---|
name |
yes | What the item is called at the gym. |
kind |
yes | stack (a selectorised machine or cable station), plate_loaded (a leg press, sled, Smith machine) or rack_bench (racks, benches and stands, listed with the gym; no weights). |
ladder |
no | Its weights (below). A stack without one gets the default pin stack (pin steps of 5 kg from 5 to 100); a plate_loaded one the gym’s plates from a zero start. A rack_bench has none. |
unconfirmed |
no | The ladder is a guess: the first time an exercise is done on it, the session asks for the weights printed on the stack. Default true without a ladder, false with one. |
serves |
no | Library exercise ids done on it, so “Which machine?” never asks for them here. Each id once per file; only machine, cable and Smith machine exercises for a stack or plate_loaded item. |
cableStation |
no | true makes this stack the gym’s one shared cable station: every cable exercise at the gym defaults to it. At most one per file. |
makeModel |
no | Free text, the item’s make and model (Hammer Strength Iso-Lateral Chest Press). Absent is none; it must not be empty. |
Ladders
Section titled “Ladders”- A weights shorthand string: weights separated by spaces or commas (a decimal comma such as
12,5works), with…(or..) filling in the step before it up to the next weight:"1 2 3 … 10 12.5 15 … 50". Taken exactly as written, in kg. { "kind": "pin", "unit": "kg" | "lb", "plates": …, "labels": { "kg": 1, "cut": true }, "addOns": [2.5, 2.5], "pinPlates": true }: a pin stack.platesis a shorthand or a list inunit.labels(optional) says how an lb stack’s kg labels are printed: to the nearestkg(default 0.1), orcutdown to it. A stack withlabelsis printed in kg; one without is printed in itsunit, which its pin and setup read in.addOnsare the machine’s own built-in add-on plates in kg, one entry per plate.pinPlates(defaulttrue) says the gym’s pin plates fit its pin.{ "kind": "steps", "unit": "kg" | "lb", "start": 5, "step": 2.5, "count": 20 }: an even stack.{ "kind": "list", "kg": [4.5, 9, 13.5] }: an explicit list.{ "kind": "plates", "base": 15, "pairs": [20, 20, 10, 5] }: a plate-loaded machine’s empty weight and, only if it has plates of its own, the pairs it takes, one of each pair per side; withoutpairs(the usual case), the gym’splates.
A stack takes pin, steps or list; a plate_loaded item takes plates; dumbbells takes a
shorthand, steps or list.
Unknown fields are errors, so a typo never passes silently.