Skip to content

Instantly share code, notes, and snippets.

@eopo
eopo / xtrafit-capacity-widget.js
Last active Jun 6, 2021
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 Oct 23, 2020
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 Oct 23, 2020
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 Oct 24, 2020 — 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)