Default settings - HoodedCrow/class-viewer GitHub Wiki

The setting you may most likely want to modify is the location of the data files. By default static-data.xml and statuses.txt are placed in the current directory. To change these, create a file settings.ini in the local directory with the following. Note that lines starting with # are treated as comments.


# Location of the data files, default is current directory (where you run the program from)
BaseDirectory=/path/to/your/directory

You can also pass an arbitrary name of a settings file to the application using -i command line parameter.

Below is the complete list of settings and default values supported by version 1.0. Colors are specified the same way as in HTML, but without the leading hash: values for red, green, and blue as hex integers from 0 to 255.


# Base directory for the data files
BaseDirectory=.
# Name of the static data file. This file changes relatively infrequently.
DataFile=static-data.xml
# Name of the status file. This file is overwritten every time the status of a class or an offering changes.
StatusFile=statuses.txt

# The URL to get Coursera data from. You may want to change this if, say, 
# you want to pass a local file instead.
CourseraJsonURL=https://www.coursera.org/maestro/api/topic/list?full=1

# How many weeks before "today" to display in the calendar view
LookBackWeeks=10

# Background and foreground colors for status labels in the course list and detail views, 
# and for offering boxes (colored per status) in the calendar view.
# The letter between "Color" and "Bg" or "Fg" corresponds to the status: 
# Unknown, Yes, No, Maybe, Registered, or Done
ColorUCalBg=B0B0B0
ColorUCalFg=000000

ColorYCalBg=78FAFA
ColorYCalFg=001478

ColorNCalBg=FF0000
ColorNCalFg=780000

ColorMCalBg=F0F000
ColorMCalFg=007800

ColorRCalBg=00FF00
ColorRCalFg=005000

ColorDCalBg=005000
ColorDCalFg=00FF00

# The color for the vertical strip in the calendar corresponding to the current week
ColorTodayBg=E0A0E0

⚠️ **GitHub.com Fallback** ⚠️