Azure Function for monitoring the gym API. As soon as a place is available, the function will send a notification with the CallMeeBot. The function is using Azure Durable Function with a Monitor orchestrator.
Create a file local.settings.json with the content below.
- The interval is set in minutes
- Phone number with country code (+41)
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"FUNCTIONS_WORKER_RUNTIME": "dotnet",
"AzureWebJobsSecretStorageType": "files",
"GYM_API": "Api",
"INTERVAL": "5",
"USERS": "[{\"name\":\"Name\",\"userId\":\"Id\",\"callMeBotSettings\":{\"phone\":\"Phone\",\"apikey\":Key,\"messenger\":\"Signal\"}}]"
},
"Host": {
"LocalHttpPort": 7072,
"CORS": "*"
}
}
```