Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@eopo
eopo / xtrafit-capacity-widget.js
Last active January 28, 2024 19:50
iOS widget powered by the Scriptable app that shows the current capacity of your XtraFIT gym
/**
* 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
/**
* 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 November 5, 2023 14:45
iOS widget powered by the Scriptable app that shows the current capacity of FitnessFirst Gyms
/**
* 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)
/**
* 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)