AlbanBedel / voctosched

Tools for generating and manipulating frab-style fahrplan

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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://github.com/voc/voctosched/blob/master/schema/basic.xsd schedule.xml

For our extended format, use:

xmllint --noout --schema https://github.com/voc/voctosched/blob/master/schema/extended.xsd schedule.xml

About

Tools for generating and manipulating frab-style fahrplan

License:GNU General Public License v3.0


Languages

Language:Python 80.7%Language:XSLT 19.3%