Skip to content

Instantly share code, notes, and snippets.

@eopo
eopo / xtrafit-capacity-widget.js
Last active March 4, 2023 00:16
iOS widget powered by the Scriptable app that shows the current capacity of your XtraFIT gym
View xtrafit-capacity-widget.js
/**
* Script for scriptable to get the current capacity of XTRAFIT Gyms
*/
let gymId = 210
let param = args.widgetParameter
if (param != null && param.length > 0) {
gymId = param
}
const gymDetails = await fetchGymDetails(gymId)
@eopo
eopo / fitx_capacity_widget.js
Created October 23, 2020 19:40
iOS widget powered by the Scriptable app that shows the current capacity of FitX Gyms
View fitx_capacity_widget.js
/**
* Script for scriptable to get the current capacity of FitX Gyms
*/
let gymId = 19
let param = args.widgetParameter
if (param != null && param.length > 0) {
gymId = param
}
const gymDetails = await fetchGymDetails(gymId)
@eopo
eopo / fitnessfirst_capacity-widget.js
Last active July 6, 2023 09:57
iOS widget powered by the Scriptable app that shows the current capacity of FitnessFirst Gyms
View fitnessfirst_capacity-widget.js
/**
* Script for scriptable to get the current capacity of FitnessFirst Gyms
*/
let gymId = 'essen1'
let param = args.widgetParameter
if (param != null && param.length > 0) {
gymId = param
}
const currentGymCapacity = await fetchGymCapacity(gymId)
@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)
View mcfit-chain-capacity-widget.js
/**
* 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)