Skip to content

Rosi2143/EphemerisCalendarImport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

EphemerisCalendarImport

import the school holiday calendar of schulferien.org

The script imports the data from the school calendar files for your state into a xml-file readable by the Ephemeris action.

get the calendars

Calendars for German school holidays are centrally provided by schulferien.org.

Just download the calendar for your state from here and store it. You can download as many calendars as you want.

Preconditions

python 2.7.x

install python 2.7

install icalendar

The script depends on the icalendar package Run this command to install it

pip install icalendar

or

python2 -m pip install icalendar

usage

  • put all calendar files into one folder
    • default is $OPENHAB_CONF/scripts
  • start the scripts
    • if the parameter "-o / --outFile" is not used the file $OPENHAB_CONF/services/holidays.xml will be created
usage: ephemeris.py [-h] [-v] [-i INPATH] [-o OUTFILE]

read school holidays from https://www.schulferien.org/deutschland/ical/

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         activate logging
  -i INPATH, --inPath INPATH
                        set path where the ics files are
  -o OUTFILE, --outFile OUTFILE
                        set the out file

About

import the school holiday calendar of Schulferien.org

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages