Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 1.32 KB

README.md

File metadata and controls

38 lines (29 loc) · 1.32 KB

voctosched

Scripts for converting various formats to frab-style fahrplan XML. This also may or may not be useful for users of pentabarf.

This repository implements an object representation of the frab export data model. This can be used to build different im-/exporters or manipulators for the frab schedule export.

There is also a number of application which can display the schedule on mobile devices or infoscreens. Some examples are:

Usage

pip3 install --user -r requirements.txt
./schedule.py -vvd -c ./demo/gpn11.ini

For more information about the input parameters and the generated output have a look at the demo directory, this should be a good starting point.

Currently supported inputs

  • CSV
  • JSON

Currently supported outputs

  • basic XML, frab format
  • extended XML, with additional video_download_url in events

Validator

The generated XML can be validated with the c3voc validator, which can be found here https://github.com/voc/schedule/tree/master/validator

A quick validation can also be done with:

xmllint --noout --schema https://raw.githubusercontent.com/voc/schedule/master/validator/xsd/schedule.xml.xsd schedule.xml