Skip to content

Instantly share code, notes, and snippets.

/**
* Script for scriptable to get the current capacity of FitX Gyms
*/
let gymId = 1265369
let api = "https://fitx-proxy.daniel-stefan.dev/api/utilization/"
let param = args.widgetParameter
if (param != null && param.length > 0) {
gymId = param
}
//Can be obtained here https://fitx-proxy.daniel-stefan.dev/
let studioId = 1266927;
// Proxy for the utilization api
let proxyUrl = "https://fitx-proxy.daniel-stefan.dev/api/utilization/"
let param = args.widgetParameter;
if (param != null && param.length > 0) {
studioId = param;
}
const contextSize = 282;