Skip to content

Instantly share code, notes, and snippets.

@eopo
eopo / mcfit-chain-capacity-widget.js
Last active July 30, 2023 11:52 — forked from masselmello/rsg_group_mcfit_high5_johnreed_capacity_widget.js
iOS widget powered by the Scriptable app that shows the current capacity of McFit, John Reed, High5 and JOHN & JAME'S Gyms (RSG group)
/**
* Script for scriptable to get the current capacity of McFit, John Reed, High5 and JOHN & JAME'S Gyms
*/
let gymId = 1210252920
let param = args.widgetParameter
if (param != null && param.length > 0) {
gymId = param
}
const currentGymCapacity = await fetchGymCapacity(gymId)