On Live
This script is used to enable students to perform automatic attendance in Simari. The script works by periodically fetching or requesting data from the server every 5 minutes and checking for each course that has meetings to perform attendance requests.
The code is divided into two parts. First, there is script.js, which is executed using Node.js. To run the script, you can execute the following command in the terminal, and the results will appear in log.txt:
node script.js
The above command will execute the script and provide the results that will be logged in log.txt.
The second part is script.gs, which is executed using Google Script or Apps Script and does not require Node.js as a runtime. To run it, you can use Google Sheets, go to the Extensions menu, and select Apps Script. Paste the script there and set up a trigger to run it every 5 minutes.
Please note that for the script to run smoothly, make sure to update the appstarter_session
cookie value every week to ensure that the script has an up-to-date cookie.
appstarter_session
This data should be entered into the initConfig
variable.
Hit me!