<feed xmlns='http://www.w3.org/2005/Atom'>
<title>schule/avail-lessons/lessons.py, branch main</title>
<subtitle>script to retrieve and print all lessons and events</subtitle>
<link rel='alternate' type='text/html' href='https://git.muhq.space/schule/avail-lessons/'/>
<entry>
<title>support building a timetable without untis specifying the lesson's periods</title>
<updated>2024-09-10T12:08:23+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2024-09-10T12:08:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/schule/avail-lessons/commit/?id=39ac356e5e410fe5378d9a728f5979c8d6e6b1dc'/>
<id>39ac356e5e410fe5378d9a728f5979c8d6e6b1dc</id>
<content type='text'>
Move all untis related configuration into the webuntis section.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Move all untis related configuration into the webuntis section.
</pre>
</div>
</content>
</entry>
<entry>
<title>support formatting special events</title>
<updated>2023-04-06T10:06:30+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2023-04-06T10:06:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/schule/avail-lessons/commit/?id=0f1b60f520f94118905071e24de89a76f789f67a'/>
<id>0f1b60f520f94118905071e24de89a76f789f67a</id>
<content type='text'>
This is usefull to include events like holidays or semester end in
the formatted output.

I use the following config

```toml
[special_events.Notenschluss]
pattern = "Notenschluss*"
fmt = '''\\rowcolor{{yellow!30}} \\multicolumn{{5}}{{c}}{{{event.start.date().strftime('%d.%m')} {event.summary}}} \\\\'''

[special_events.Ferien]
pattern = "*ferien*"
fmt = '''\\rowcolor{{yellow!30}} \\multicolumn{{5}}{{c}}{{{event.start.date().strftime('%d.%m')}-{event.end.date().strftime('%d.%m')} {event.summary}}} \\\\'''
```

to include any holidays as well as the semester end in my formatted
latex table.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is usefull to include events like holidays or semester end in
the formatted output.

I use the following config

```toml
[special_events.Notenschluss]
pattern = "Notenschluss*"
fmt = '''\\rowcolor{{yellow!30}} \\multicolumn{{5}}{{c}}{{{event.start.date().strftime('%d.%m')} {event.summary}}} \\\\'''

[special_events.Ferien]
pattern = "*ferien*"
fmt = '''\\rowcolor{{yellow!30}} \\multicolumn{{5}}{{c}}{{{event.start.date().strftime('%d.%m')}-{event.end.date().strftime('%d.%m')} {event.summary}}} \\\\'''
```

to include any holidays as well as the semester end in my formatted
latex table.
</pre>
</div>
</content>
</entry>
<entry>
<title>ignore pylint eval warning and use more expressive variable name</title>
<updated>2023-04-05T15:01:31+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2023-04-05T15:01:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/schule/avail-lessons/commit/?id=c7d91693a6f3d7eb954ff3513ed63e54cb4c10ce'/>
<id>c7d91693a6f3d7eb954ff3513ed63e54cb4c10ce</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>add line formatting for events</title>
<updated>2023-04-05T14:39:10+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2023-04-05T14:39:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/schule/avail-lessons/commit/?id=bba0994ffbce3016d4038504370a953812aefd15'/>
<id>bba0994ffbce3016d4038504370a953812aefd15</id>
<content type='text'>
I want to color a table row in a certain color if a early end of class
causes my lesson to be canceled.
To do so I use the new configuration table:

```toml
[event_line_formats]
Unterrichtsschluss = '\\rowcolor{{red!30}} {line}'```
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I want to color a table row in a certain color if a early end of class
causes my lesson to be canceled.
To do so I use the new configuration table:

```toml
[event_line_formats]
Unterrichtsschluss = '\\rowcolor{{red!30}} {line}'```
</pre>
</div>
</content>
</entry>
<entry>
<title>strip leading whitespace from formatted events</title>
<updated>2023-04-05T14:38:26+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2023-04-05T14:38:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/schule/avail-lessons/commit/?id=6c9cbaf8aa1915dcb3158d8ae856dab0d15b19e6'/>
<id>6c9cbaf8aa1915dcb3158d8ae856dab0d15b19e6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>detect end of classes prior to a lesson</title>
<updated>2023-04-05T14:28:36+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2023-04-05T14:28:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/schule/avail-lessons/commit/?id=f61b34dbdb4b987359b6fb6543b942c799ac350e'/>
<id>f61b34dbdb4b987359b6fb6543b942c799ac350e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>change the symbol separating multiple events</title>
<updated>2023-04-05T13:25:05+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2023-04-05T13:25:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/schule/avail-lessons/commit/?id=097fe1e21e9d73cd492b2c4ad718f99b04fe40cf'/>
<id>097fe1e21e9d73cd492b2c4ad718f99b04fe40cf</id>
<content type='text'>
When generating latex the '&amp;' separator breaks the resulting table.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When generating latex the '&amp;' separator breaks the resulting table.
</pre>
</div>
</content>
</entry>
<entry>
<title>support a footer in order to format e.g. latex tables</title>
<updated>2023-04-05T12:43:49+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2023-04-05T12:43:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/schule/avail-lessons/commit/?id=4ec3c06525274bd90d7c7c9c130b777a837d80e2'/>
<id>4ec3c06525274bd90d7c7c9c130b777a837d80e2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>support a output header and make the formatted events available to the format</title>
<updated>2023-04-05T12:33:56+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2023-04-05T12:33:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/schule/avail-lessons/commit/?id=acc8d0b450019c415a8d2bb8f5e411dc21079db2'/>
<id>acc8d0b450019c415a8d2bb8f5e411dc21079db2</id>
<content type='text'>
I use this oputput configuration:

```toml
output_header = """
Woche Datum     LP-Abschnitt Std. LP-A. Unterrichtseinheit
----- --------- ------------ ---------- ------------------------"""
fmt = "{week:&gt;5} {date.strftime('%d.%m'):&gt;9} {' '*12} {' '*10} {period_events}"
```

To produce a formatted pandoc simple table looking like this:

    Woche Datum     LP-Abschnitt Std. LP-A. Unterrichtseinheit
    ----- --------- ------------ ---------- ------------------------
       16     18.04                          Event1 &amp; Event2
       17     25.04                          Event3
       18     02.05                          Event3 &amp; Event4
    ...
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I use this oputput configuration:

```toml
output_header = """
Woche Datum     LP-Abschnitt Std. LP-A. Unterrichtseinheit
----- --------- ------------ ---------- ------------------------"""
fmt = "{week:&gt;5} {date.strftime('%d.%m'):&gt;9} {' '*12} {' '*10} {period_events}"
```

To produce a formatted pandoc simple table looking like this:

    Woche Datum     LP-Abschnitt Std. LP-A. Unterrichtseinheit
    ----- --------- ------------ ---------- ------------------------
       16     18.04                          Event1 &amp; Event2
       17     25.04                          Event3
       18     02.05                          Event3 &amp; Event4
    ...
</pre>
</div>
</content>
</entry>
<entry>
<title>initial commit</title>
<updated>2023-04-05T10:46:23+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2023-04-05T10:46:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/schule/avail-lessons/commit/?id=ce4d9f762b57185446506112868e70bfe8f9b8ad'/>
<id>ce4d9f762b57185446506112868e70bfe8f9b8ad</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
