diff --git a/fossgis24/__init__.py b/fossgis24/__init__.py new file mode 100644 index 0000000..86cc8e2 --- /dev/null +++ b/fossgis24/__init__.py @@ -0,0 +1,201 @@ +#!/usr/bin/python3 + +import subprocess +from renderlib import * +from schedulelib import * +from easing import * + +# URL to Schedule-XML +scheduleUrl = 'https://pretalx.com/fossgis2024/schedule/export/schedule.xml' + +# For (really) too long titles +titlemap = { + #708: "Neue WEB-Anwendungen des LGRB Baden-Württemberg im Überblick" +} + + +def outroFrames(params): + # 8 Sekunden + + # 2 Sekunden Fadein Text + frames = 2*fps + for i in range(0, frames): + yield ( + ('banderole', 'style', 'opacity', "%.4f" % easeOutCubic(i, 0, 1, frames) ), + ('license', 'style', 'opacity', 0) + ) + + # 2 Sekunde Fadein Lizenz-Logo + frames = 2*fps + for i in range(0, frames): + yield ( + ('banderole', 'style', 'opacity', 1), + ('license', 'style', 'opacity', "%.4f" % (float(i)/frames)) + ) + + # 4 Sekunde stehen bleiben + frames = 4*fps + for i in range(0, frames): + yield ( + ('banderole', 'style', 'opacity', 1), + ('license', 'style', 'opacity', 1) + ) + +def introFrames(params): + # 7 Sekunden + + # 2 Sekunden Text 1 + frames = 2*fps + for i in range(0, frames): + yield ( + ('box-und-text1', 'style', 'opacity', "%.4f" % easeOutCubic(i, 0, 1, frames)), + ('url', 'style', 'opacity', "%.4f" % easeOutCubic(i, 0, 1, frames)), + ('text1', 'style', 'opacity', "%.4f" % 1), + ('text2', 'style', 'opacity', 0) + ) + + # 1 Sekunde Fadeout Text 1 + frames = 1*fps + for i in range(0, frames): + yield ( + ('box-und-text1', 'style', 'opacity', 1), + ('url', 'style', 'opacity', 1), + ('text1', 'style', 'opacity', "%.4f" % (1-(float(i)/frames))), + ('text2', 'style', 'opacity', 0) + ) + + # 2 Sekunden Text 2 + frames = 2*fps + for i in range(0, frames): + yield ( + ('box-und-text1', 'style', 'opacity', 1), + ('url', 'style', 'opacity', 1), + ('text1', 'style', 'opacity', 0), + ('text2', 'style', 'opacity', "%.4f" % easeOutCubic(i, 0, 1, frames)) + ) + + # 2 Sekunden stehen bleiben + frames = 2*fps + for i in range(0, frames): + yield ( + ('box-und-text1', 'style', 'opacity', 1), + ('url', 'style', 'opacity', 1), + ('text1', 'style', 'opacity', 0), + ('text2', 'style', 'opacity', 1) + ) + +def pauseFrames(params): + # 12 Sekunden + + # 2 Sekunden Text1 stehen + frames = 2*fps + for i in range(0, frames): + yield ( + ('text1', 'style', 'opacity', 1), + ('text2', 'style', 'opacity', 0) + ) + + # 2 Sekunden Fadeout Text1 + frames = 2*fps + for i in range(0, frames): + yield ( + ('text1', 'style', 'opacity', "%.4f" % (1-easeOutCubic(i, 0, 1, frames))), + ('text2', 'style', 'opacity', 0) + ) + + # 2 Sekunden Fadein Text2 + frames = 2*fps + for i in range(0, frames): + yield ( + ('text1', 'style', 'opacity', 0), + ('text2', 'style', 'opacity', "%.4f" % easeOutCubic(i, 0, 1, frames)) + ) + + # 2 Sekunden Text2 stehen + frames = 2*fps + for i in range(0, frames): + yield ( + ('text1', 'style', 'opacity', 0), + ('text2', 'style', 'opacity', 1) + ) + + # 2 Sekunden Fadeout Text2 + frames = 2*fps + for i in range(0, frames): + yield ( + ('text1', 'style', 'opacity', 0), + ('text2', 'style', 'opacity', "%.4f" % (1-easeOutCubic(i, 0, 1, frames))) + ) + + # 2 Sekunden Fadein Text1 + frames = 2*fps + for i in range(0, frames): + yield ( + ('text1', 'style', 'opacity', "%.4f" % (easeOutCubic(i, 0, 1, frames))), + ('text2', 'style', 'opacity', 0) + ) + +def debug(): + render( + 'intro.svg', + '../intro.ts', + introFrames, + { + '$id': 904, + '$title': 'Was ist Open Source, wie funktioniert das?', + '$subtitle': 'Die Organisation der Open Geo- und GIS-Welt. Worauf man achten sollte.', + '$personnames': 'Arnulf Christl, Astrid Emde, Dominik Helle, Till Adams' + } + ) + + render( + 'outro.svg', + '../outro.ts', + outroFrames + ) + + render('pause.svg', + '../pause.ts', + pauseFrames + ) + +def tasks(queue, args, idlist, skiplist): + # iterate over all events extracted from the schedule xml-export + for event in events(scheduleUrl): + if event['room'] not in ('Hörsaal 1 (Audimax 1)', 'Hörsaal 2 (Ditze H016)', 'Hörsaal 3 (K0506/ Audimax 2)', 'Hörsaal 4 (A.013)'): + print("skipping room %s (%s)" % (event['room'], event['title'])) + continue + + + if (event['id'] in idlist or not idlist) and not 'intro' in skiplist: + # generate a task description and put them into the queue + queue.put(Rendertask( + infile = 'intro.svg', + outfile = str(event['id'])+".ts", + sequence = introFrames, + parameters = { + '$id': event['id'], + '$title': event['title'], + '$url': event['url'], + #'$subtitle': event['subtitle'], + '$personnames': event['personnames'] + } + )) + + if not 'outro' in skiplist: + # place a task for the outro into the queue + queue.put(Rendertask( + infile = 'outro.svg', + outfile = 'outro.ts', + sequence = outroFrames + )) + + if not 'pause' in skiplist: + # place the pause-sequence into the queue + queue.put(Rendertask( + infile = 'pause.svg', + outfile = 'pause.ts', + sequence = pauseFrames + )) + + diff --git a/fossgis24/artwork/001_camptocamp_logo.png b/fossgis24/artwork/001_camptocamp_logo.png new file mode 100644 index 0000000..17be0fc Binary files /dev/null and b/fossgis24/artwork/001_camptocamp_logo.png differ diff --git a/fossgis24/artwork/002_WhereGroup.png b/fossgis24/artwork/002_WhereGroup.png new file mode 100644 index 0000000..36f2cc7 Binary files /dev/null and b/fossgis24/artwork/002_WhereGroup.png differ diff --git a/fossgis24/artwork/002_WhereGroup.psd b/fossgis24/artwork/002_WhereGroup.psd new file mode 100644 index 0000000..bf28598 Binary files /dev/null and b/fossgis24/artwork/002_WhereGroup.psd differ diff --git a/fossgis24/artwork/003_dataport.png b/fossgis24/artwork/003_dataport.png new file mode 100644 index 0000000..4d1db84 Binary files /dev/null and b/fossgis24/artwork/003_dataport.png differ diff --git a/fossgis24/artwork/FOSSGIS-Pause_DaVinci.drp b/fossgis24/artwork/FOSSGIS-Pause_DaVinci.drp new file mode 100644 index 0000000..cd1bac3 Binary files /dev/null and b/fossgis24/artwork/FOSSGIS-Pause_DaVinci.drp differ diff --git a/fossgis24/artwork/LOGO_FOSSGIS24_RGB_300dpi.png b/fossgis24/artwork/LOGO_FOSSGIS24_RGB_300dpi.png new file mode 100644 index 0000000..eb28485 Binary files /dev/null and b/fossgis24/artwork/LOGO_FOSSGIS24_RGB_300dpi.png differ diff --git a/fossgis24/artwork/Titelbild_FOSSGIS2024.png b/fossgis24/artwork/Titelbild_FOSSGIS2024.png new file mode 100644 index 0000000..dba787d Binary files /dev/null and b/fossgis24/artwork/Titelbild_FOSSGIS2024.png differ diff --git a/fossgis24/artwork/Titelbild_FOSSGIS2024_fullhd.png b/fossgis24/artwork/Titelbild_FOSSGIS2024_fullhd.png new file mode 100644 index 0000000..1f7f2a9 Binary files /dev/null and b/fossgis24/artwork/Titelbild_FOSSGIS2024_fullhd.png differ diff --git a/fossgis24/artwork/by-sa.svg b/fossgis24/artwork/by-sa.svg new file mode 100755 index 0000000..f850297 --- /dev/null +++ b/fossgis24/artwork/by-sa.svg @@ -0,0 +1,199 @@ + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/fossgis24/artwork/fossgis24_logo.png b/fossgis24/artwork/fossgis24_logo.png new file mode 100644 index 0000000..485560f Binary files /dev/null and b/fossgis24/artwork/fossgis24_logo.png differ diff --git a/fossgis24/artwork/intro.svg b/fossgis24/artwork/intro.svg new file mode 100755 index 0000000..535b8bb --- /dev/null +++ b/fossgis24/artwork/intro.svg @@ -0,0 +1,243 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + $url + + + + Hamburg20. - 23. März 2024 + FOSSGIS Konferenz2024 + + + $personnames$title Photo: Hauke Stieler + + diff --git a/fossgis24/artwork/outro.svg b/fossgis24/artwork/outro.svg new file mode 100755 index 0000000..924919f --- /dev/null +++ b/fossgis24/artwork/outro.svg @@ -0,0 +1,350 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + Hamburg20. - 23. März 2024 + FOSSGIS Konferenz2024www.fossgis-konferenz.de/2024 + + + + + + + + + + + + + + + + + + + BY 4.0 DE + https://creativecommons.org/licenses/by/4.0/ + + Photo: Hauke Stieler + + diff --git a/fossgis24/artwork/pause.svg b/fossgis24/artwork/pause.svg new file mode 100755 index 0000000..55e7c7d --- /dev/null +++ b/fossgis24/artwork/pause.svg @@ -0,0 +1,242 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + Photo: Hauke Stieler + + + Hamburg20. - 23. März 2024 + FOSSGIS Konferenz2024www.fossgis-konferenz.de/2024 + + + Gleich geht's weiter... + + + +