Skip to content

Rosi2143/EphemerisCalendarImport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EphemerisCalendarImport

Make the the school holiday calendar of schulferien.org available as a JollyDay XML file, e.g. for use in OpenHab Ephemeris.

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 3

install python 3

install icalendar

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

pip3 install icalendar

or

python3 -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