School Health Declaration Automation Script
This is an automation script that will fill out the school's daily health declaration requirement for each child in the parent portal dashboard.
It can be run manually or can be connected to a scheduler to run once a day.
How To Use
Using The Gem
You can use this software as a Ruby gem by downloading it to your machine from Rubygems:
From the command line:
gem install school_declare
Using The Code
To use the automation script locally on your machine:
- Clone the repository
- Update the values in
.env.sampleand rename it to
.env. (See (Environment Variables)[#environment-variables] for a description of the values)
bundle exec ruby bin/declare
- The script will output
Sent from successfullyor report what went wrong at the conclusion of its execution
You need to provide three environment variables for the automation script:
USERNAME: Your username you obtained from the Ministry of Education
PASSWORD: Your password you obtained from the Ministry of Education
URL: The unique school website entry point provided by tik-tak, i.e. (
The script is set to run in
headless mode as it navigates to the school website and fills out the form, which means you won't see it complete the process. If you wish, you can set
false and watch it from your computer as it happens instead. To do so open up
declare.rb and on line 14 change the code to:
browser = Watir::Browser.new :chrome, headless: false
Contributions to the code are always welcome. You can either raise an issue to be discussed or submit a pull request directly. We try to follow the GitHub Flow when proposing new features.
This script is under the MIT License.