Automatically enroll in a CrossFit class on the Regybox platform.
This is designed to run as a standalone app that runs on a schedule through GH actions.
The app requires the following environment variables to be set:
REGIBOX_USER
: The value forregybox_user
in the regybox.pt cookiePHPSESSID
: The value forPHPSESSID
in the regybox.pt cookieCALENDAR_URL
: The .ics URL of the calendar to use for the enrollment
The calendar URL is optional, and is used to check if the user's personal calendar has a CrossFit class planned at the time of the enrollment. If it does not, the enrollment is skipped. The calendar must either be public or the URL must be accessible without authentication using the "Secret address in iCal format" provided in Google Calendar.