Skip to content

Latest commit

 

History

History
36 lines (32 loc) · 2.05 KB

README.md

File metadata and controls

36 lines (32 loc) · 2.05 KB

PowerShell Scripts

This is a collection of PowerShell scripts I've made public. Often they are part of a larger project so may contain references to arguments or other variables. For the most part I have removed these.

TASS

A collection of scripts that relate to The Alpha School System (TASS).

Generate ICS

This script generates an ICS file for each School listed in Data.csv. It utilises the School Calendar and Notices API via the getTeacherCalendar Method & Public Calendar and Notices API via the getPublicCalendar Method. It could also be adapted to use the getTeacherEDiary, getStudentEDiary or getParentCalendar Methods.

Setup

  1. Update Data.CSV with School Name, Company Code, Calendar Type, API URL & State.
    • Valid Calendar Types are:
      • Staff
      • Student
      • Public
    • Valid States are:
      • ACT
      • NSW
      • NT
      • QLD
      • SA
      • TAS
      • VIC
      • WA
  2. Update $Folder to where the script is contained, this is on line 4 of Generate.ps1
  3. Update $Destination to where the script is contained, this is on line 40 of Generate.ps1
  4. Update TASS Domain on line 238 & 265 of Generate.ps1

Update Attendance Analytics

This script makes a post request to the TASS Update Student Class Absences Endpoint in the scheduled tasks workflow. It does this for all schools listed in the $Schools variable.

Setup

  1. Update the $Domain variable to the correct URL for your TASS instance.
  2. Update the $CompCodes variable with the company codes of the schools that you wish to update.
    • Ensure that you comma separate the list and enclose each company code in double quotes (eg. "01","02")
  3. Set up scheduled task to run Update.ps1 on a regular basis.
    • Depending how many companies/timetables/classes/students you have will affect how often you should schedule this task for.