Coder Social home page Coder Social logo

richwalm / nzarttrainer Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 4.0 222 KB

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

License: ISC License

Python 44.97% JavaScript 17.34% CSS 7.23% HTML 29.91% Dockerfile 0.56%
nzart ham-radio exam flask python python3 librejs-compliant librejs

nzarttrainer's Introduction

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 [email protected] (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.

nzarttrainer's People

Contributors

richwalm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nzarttrainer's Issues

Problem hosting on Apache

Owing to the wsgi required to serve python/Flask under Apache, the questions database is not found. Code change below fixes that.

Origional:-

InputFile = open('questions.json')
Data = json.load(InputFile)
InputFile.close()

Updated to:-

with app.open_resource('questions.json') as InputFile:
Data = json.load(InputFile)
InputFile.close()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.