Skip to content

Tools for generating and manipulating Frab-style Fahrplan. Forked from:

License

Notifications You must be signed in to change notification settings

EventFahrplan/voctosched

 
 

Repository files navigation

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

Languages

  • Python 81.1%
  • XSLT 18.9%