Files
hacs_waste_collection_schedule/doc/source/ics.md
2020-05-07 16:49:47 +02:00

1.5 KiB

ICS

Add support for generic ICS file which are downloaded from a fix location. The waste type will be taken from the summary attribute.

This source has been successfully tested with the following service providers:

Configuration via configuration.yaml

waste_collection_schedule:
  sources:
    - name: ics
      args:
        url: URL
        file: FILE
        offset: OFFSET

Configuration Variables

url
(string) (optional)

URL to ICS file. File will be downloaded using a HTTP GET command.

If the original url contains the current year (4 digits including century), this can be replaced by the wildcard {%Y} (see example below).

You have to specify either url or file!

file
(string) (optional)

Local ICS file name. Can be used instead of url for local files.

You have to specify either url or file!

offset
(int) (optional, default: 0)

Offset in days which will be added to every start time. Can be used if the start time of the events in the ICS file are ahead of the actual date.

Examples

waste_collection_schedule:
  sources:
    - name: ics
      args:
        url: "https://www.avl-ludwigsburg.de/fileadmin/Files/Abfallkalender/ICS/Privat/Privat_{%Y}_Ossweil.ics"
        offset: 1
waste_collection_schedule:
  sources:
    - name: ics
      args:
        file: "test.ics"