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.
To use this without needing to run any code, you can use it as a GitHub Action in your own GitHub account. To do so follow these steps:
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
In your Gemfile
:
gem 'school_declare'
You can use this script to either send:
To use the automation script locally on your machine:
bundle install
.env.sample
and rename it to .env
. (See Environment Variables for a description of the values)
bundle exec ruby bin/declare
Sent from successfully
or report what went wrong at the conclusion of its executionTo use the antigen test declaration automation script locally on your machine:
bundle install
.env.sample
and rename it to .env
. (See Environment Variables for a description of the values)
bundle exec ruby bin/declare_antigen
Sent from successfully
or report what went wrong at the conclusion of its executionYou need to provide three environment variables for the daily automation script:
USERNAME
: Your username you obtained from the Ministry of EducationPASSWORD
: Your password you obtained from the Ministry of EducationURL
: The unique school website entry point provided by tik-tak, i.e. (https://my_school.tik-tak.net/enter_tofes_briut
)You need to provide the following environment variables for the twice weekly antigen test declaration form script:
URL
: The URL for the antigen test declaration, i.e. (https://apps.education.gov.il/NmmNetAnt/Antigen
)PARENT_TZ
: A parent's teudat zehut numberPARENT_NAME
: A parent's name in HebrewCHILDRENS_TZ
: The teudat zehut number or numbers of the child/children. If more than one child, separate with a single "," and NO SPACE.CHILDRENS_NAMES
: The name of names of the child/children. If more than one child, separate with a single "," and NO SPACE.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 headless
to false
and watch it from your computer as it happens instead. To do so open up declare.rb
and on line 14 or declare_antigen.rb
on line 45 and change the code to:
browser = Watir::Browser.new :chrome, headless: false
If you are running the school antigen test declaration form and it fails with an error about the "element click intercepted" it is most likely because the reCAPTCHA on the website prompted for further verification.
There is no way to make the script work at this point. You need to manually go to the website and fill it out. The reCAPTCHA may reset the next time the script runs and not require the extra verification again.
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.