Skip to content

Allow relevant output formats for the various reports #12

@npaun

Description

@npaun

Output Formats

Display Formats
Schedule, Exams Text, JSON, CSV ....HTML w/ JS...... SQL
Visual Schedule HTML, PDF via HTML, PNG via HTML
Calendar ICS, JSON
Messages, Registration Status Text, JSON
Course Search Results JSON

Problem:

  • You'd like to turn your visual schedule into a nice PDF, or into a nice image.
  • You'd like to parse the output of the Minerva client so that it can be controlled by an algorithm of your own invention -- some kind of AI? if you can't get into one course try for another?
  • You'd like to import Minervac reports into some kind of spreadsheet software, or do some kind of data analysis with the output.

Solution:

  • Minervac should implement the -f option, and allow you to select from the valid formats for each kind of display/report.
  • The JSON format will just select the columns specified by the report, and ignore sort and format. SQL should do the same thing.
  • The CSV format will select the columns, sort as directed and format the columns, replacing tabs and spaces with commas.

Implementation

  • CSV, JSON, SQL, etc: As described above.
  • PDF: Use weasyprint? PNG pdf2png?
  • HTML Table: Dump to HTML table, inject some JS and CSS that can allow for filtering and reordering.
  • Error messages/Status messages: Change the raw text dump into some kind of struct, which can be output formatted.
  • Course search: Just expose pub_search and auth_search.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions