This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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; |