/nzarttrainer

A web application simulating an NZART Exam for use in obtaining an New Zealand Amateur Radio License.

Primary LanguagePythonISC LicenseISC

NZART Exam Trainer

A web application simulating an NZART Exam for use in obtaining an New Zealand Amateur Radio License. Not affiliated with New Zealand Association of Radio Transmitters in any way.

A live website can be found at; https://nzarttrainer.m1m0n.net Thanks to Sasha Japaridze (ZL1JX) for providing hosting.

Written in Flask for Python 3.

Updating the Exam Files

Under the exam_file_tools directory, there's a number of Python scripts used to update the questions in the event of new versions. A version is already included within the distribution.

From the NZART Amateur Radio Examination Files download page, download the latest version and extract the PARAMS and N*.TXT from it. On case-sensitive systems, such as Mac OS X & Linux, please ensure that their filenames including extensions are fully uppercase. Then use the exam_file_tools/questions_to_json.py script to convert these files to a JSON format, used by the trainer. A search and replace is done on the output to point the images to their PNG copies.

Use the exam_file_tools/json_get_answers.py script to generate a list of answers which is to be included in s/exam.js for real-time grading use.

The exam_file_tools/json_to_flat_text.py script can be used to generate an Anki deck. The output will need manual adjustment as there's a duplicate question.

Copyright/License

Written by Richard Walmsley richwalm+nzarttrainer@gmail.com (ZL1RSW) and is released under the ISC License. Please see the included LICENSE.txt for the full text.

The NZART Exam Questions Bank, used in questions.json, and its respective diagrams are released into the public domain.

The background image is copyright Greg "gvgoebel" Goebel 2012 CC BY-SA 2.0.

The GitHub Corner is produced by Tim Holman, released under the MIT License.