Holiday time clock| This function block implements a holiday time clock. The block can calculate the holidays itself or load them from an ICal file (*.ics) on a server - or use both together. With the calculation the controller needs no internet connection: the fixed holidays are stored per country and federal state or canton, and the moveable holidays such as Easter, Ascension, Whitsun and Corpus Christi are derived from the Easter date. |
Inputs |
||||||||||
| FG |
Enable |
Optional enable. If nothing is connected at this input, the clock is automatically enabled. Otherwise only when a value of 1 is present at the input. | ||||||||
Outputs |
||||||||||
| A1-x |
Output 1-x |
Outputs. The same value is output at all outputs. | ||||||||
| FM |
Holiday tomorrow |
Only present when the parameter "Preview outputs" is switched on. If tomorrow is a holiday, Value on is output, otherwise Value off. This allows a heating system to be adjusted on the previous day, for example. | ||||||||
| TG |
Days until the next holiday |
Only present when the parameter "Preview outputs" is switched on. Number of days until the next holiday. 0 means that today is a holiday, 1 means tomorrow. If no holiday follows within the next months, or if the clock is not enabled, -1 is output. | ||||||||
Parameters |
||||||||||
| Source |
Where the holidays come from:
|
|||||||||
| Country |
Austria, Germany, Switzerland or Italy. Only visible with the calculation. | |||||||||
| Federal state / canton |
Determines the regional holidays. With
"Nationwide" only the days celebrated throughout the
whole country apply. Only visible with the calculation. Note: When the country is changed, the federal state and the selection are reset, because they no longer match the new country. |
|||||||||
| Holidays |
The "..." button opens the holiday
selection. Every day can be selected or cleared individually
there, including additional days such as 24 and 31 December. For
every day the calculated date for this and the next year is shown,
together with the kind of day:
|
|||||||||
| Number of
outputs |
Number of outputs. | |||||||||
| Value
on/off |
When the switching time is reached,
Value on is output at the outputs, otherwise Value off. |
|||||||||
| URL ICal file | URL from which the ics file is loaded. The file is automatically
loaded once per day from this server. These can, for example,
be loaded from Internet sites that provide ICal files
(e.g. https://www.ferienwiki.at) and provided on your own server. The following calendar sources are supported:
The files can contain holidays for several years. In addition, the URL can contain a placeholder for the year (%YYYY), which is replaced by the current year when loading. This allows several years to be provided in advance on your own server. Ready-made holiday calendars from Google: Google provides public holiday calendars for most countries. The address can be pasted directly, e.g.:
Ready-made holiday calendars from Apple: Apple also provides the holiday calendars known from iPhone/Mac publicly (the built-in "Holidays" calendar on the device itself cannot be shared, but the underlying addresses can be accessed directly), e.g.:
Address generator: Here the calendar address can be put together for all EU countries and Switzerland. Select country and state/region, then copy the desired address and paste it into the "URL ICal file" parameter:
Important: This address generator cannot take future changes of the calendar addresses by Google and Apple into account. If a generated address does not work, please refer to the current documentation of the respective provider (Google Calendar Help or Apple Support). Note: The holiday calendars from Google and Apple partly also contain observances that are not public holidays (e.g. Valentine's Day, Mother's Day). If you only want to switch on legal public holidays, it is best to create your own calendar (see above) and enter the desired days yourself - with yearly recurrence this only has to be done once. |
|||||||||
| Preview outputs |
Switches on the two additional outputs
"Holiday tomorrow" (FM) and "Days until the next
holiday" (TG). Note: The two outputs are appended after the normal outputs. If the parameter is switched off again, the addresses entered there are lost. If only the number of outputs is changed, the addresses move along automatically. The outputs are supported from controller version 2.3137 onwards. |
|||||||||
|
Moveable holidays are derived from the Easter date: Good Friday
two days before, Easter Monday one day after, Ascension 39 days,
Whit Sunday 49 days, Whit Monday 50 days and Corpus Christi 60
days after Easter Sunday. The German Day of Repentance and Prayer
is the Wednesday before 23 November, the Swiss Federal Day of
Thanksgiving is the third Sunday in September. Austria Statutory nationwide: New Year, Epiphany, Easter Monday, National Day (1 May), Ascension, Whit Monday, Corpus Christi, Assumption, National Holiday (26 October), All Saints, Immaculate Conception, Christmas Day and St Stephen's Day. Good Friday has not been a public holiday since 2019; it was replaced by the personal holiday. It is therefore only available as an additional day. The patron saints (St Joseph, St Florian, St Rupert, St Martin, St Leopold) and the Carinthian Plebiscite Day are not public holidays under the working time act, but school and state holidays. Germany Statutory nationwide: New Year, Good Friday, Easter Monday, Labour Day, Ascension, Whit Monday, German Unity Day, Christmas Day and Boxing Day. Epiphany, International Women's Day, Corpus Christi, Assumption, World Children's Day, Reformation Day, All Saints and the Day of Repentance and Prayer apply regionally. In Brandenburg Easter Sunday and Whit Sunday are public holidays as well. Corpus Christi in Saxony and Thuringia, Assumption in Bavaria and the Augsburg Peace Festival apply only in individual municipalities and are therefore not preselected. The Berlin Liberation Day on 8 May is not stored, because so far it only applied on single occasions. It can be added through the source "Calculation + iCal". Switzerland Only the National Day on 1 August is regulated by federal law; everything else is defined by the cantons and in part even by the municipalities. The table reflects common practice. Geneva is the only canton without the Federal Day of Thanksgiving; instead it has the Jeune genevois on the Thursday after the first Sunday in September. Vaud additionally has the Monday after the Federal Day of Thanksgiving. Valais and Ticino differ regarding Good Friday, Easter Monday and Whit Monday. In Aargau, Fribourg, Grisons and Solothurn many days are free of work only in individual municipalities; they are shown as "partly" and are not preselected. Italy Statutory nationwide: New Year, Epiphany, Easter Sunday, Easter Monday, Liberation Day, Labour Day, Republic Day, Assumption, All Saints, Immaculate Conception, Christmas Day and St Stephen's Day. Good Friday, Ascension and Corpus Christi are not holidays in Italy. Whit Monday is a day off only in the Autonomous Province of Bolzano (South Tyrol) - select "South Tyrol" as the region there. The patron saint's day is a day off in the individual municipality. The most important city patrons are stored as "partly" and can be ticked if required; all others can be added through the source "Calculation + iCal". The applicable law always takes precedence. The stored rules reflect the situation at the time of delivery - if the legislator changes a holiday, the selection has to be adjusted or the source "Calculation + iCal" has to be used. |