Add 2019 events on local disk for future reference
lalalala
This commit is contained in:
parent
2e569321a8
commit
d5b3ef975e
285 changed files with 22901 additions and 0 deletions
120
wikidatacon2019/__init__.py
Normal file
120
wikidatacon2019/__init__.py
Normal file
|
@ -0,0 +1,120 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
from renderlib import *
|
||||
from easing import *
|
||||
|
||||
# URL to Schedule-XML
|
||||
scheduleUrl = 'https://mobile.wikidatacon.org/conference.xml'
|
||||
|
||||
# For (really) too long titles
|
||||
titlemap = {
|
||||
14: "Keynote",
|
||||
}
|
||||
|
||||
def introFrames(args):
|
||||
# fade in title, persons and id
|
||||
frames = 2 * fps
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
('title', 'style', 'opacity', easeOutQuart(i, 0, 1, frames)),
|
||||
('persons', 'style', 'opacity', 0),
|
||||
)
|
||||
|
||||
frames = 2 * fps
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
('title', 'style', 'opacity', 1),
|
||||
('persons', 'style', 'opacity', easeOutQuart(i, 0, 1, frames)),
|
||||
)
|
||||
frames = 2 * fps
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
('title', 'style', 'opacity', 1),
|
||||
('persons', 'style', 'opacity', 1),
|
||||
)
|
||||
|
||||
|
||||
def backgroundFrames(parameters):
|
||||
pass
|
||||
|
||||
def outroFrames(args):
|
||||
# fadein outro graphics
|
||||
frames = 1 * fps
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
('fadetoblack', 'style', 'opacity', easeInQuart(i, 1, -1, frames)),
|
||||
)
|
||||
frames = 5 * fps
|
||||
for i in range(0, frames):
|
||||
yield []
|
||||
|
||||
|
||||
def pauseFrames(args):
|
||||
pass
|
||||
|
||||
def debug():
|
||||
# render('intro.svg',
|
||||
# '../intro.ts',
|
||||
# introFrames,
|
||||
# {
|
||||
# '$id': 7776,
|
||||
# '$title': 'StageWar live!',
|
||||
# '$subtitle': '',
|
||||
# '$persons': 'www.stagewar.de'
|
||||
# }
|
||||
# )
|
||||
#
|
||||
render('outro.svg',
|
||||
'../outro.ts',
|
||||
outroFrames
|
||||
)
|
||||
|
||||
def tasks(queue, args, idlist, skiplist):
|
||||
# iterate over all events extracted from the schedule xml-export
|
||||
for event in events(scheduleUrl, titlemap):
|
||||
if not (idlist == []):
|
||||
if 000000 in idlist:
|
||||
print("skipping id (%s [%s])" % (event['title'], event['id']))
|
||||
continue
|
||||
if int(event['id']) not in idlist:
|
||||
print("skipping id (%s [%s])" % (event['title'], event['id']))
|
||||
continue
|
||||
if not event['room'] in ['Kleist', 'Kepler', 'Einstein']:
|
||||
continue
|
||||
|
||||
# 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'],
|
||||
'$subtitle': '',
|
||||
'$persons': event['personnames']
|
||||
}
|
||||
))
|
||||
|
||||
# place a task for the outro into the queue
|
||||
if not "out" in skiplist:
|
||||
queue.put(Rendertask(
|
||||
infile='outro.svg',
|
||||
outfile='outro.ts',
|
||||
sequence=outroFrames
|
||||
))
|
||||
|
||||
# place the pause-sequence into the queue
|
||||
if not "pause" in skiplist:
|
||||
queue.put(Rendertask(
|
||||
infile='pause.svg',
|
||||
outfile='pause.ts',
|
||||
sequence=pauseFrames
|
||||
))
|
||||
|
||||
# place the background-sequence into the queue
|
||||
if not "bg" in skiplist:
|
||||
queue.put(Rendertask(
|
||||
infile='background.svg',
|
||||
outfile='background.ts',
|
||||
sequence=backgroundFrames
|
||||
))
|
BIN
wikidatacon2019/artwork/WikidataCon_2019_logo.png
Normal file
BIN
wikidatacon2019/artwork/WikidataCon_2019_logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 484 KiB |
BIN
wikidatacon2019/artwork/background-l.png
Normal file
BIN
wikidatacon2019/artwork/background-l.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 51 KiB |
BIN
wikidatacon2019/artwork/background.png
Normal file
BIN
wikidatacon2019/artwork/background.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 50 KiB |
8858
wikidatacon2019/artwork/background.svg
Normal file
8858
wikidatacon2019/artwork/background.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 1.3 MiB |
2448
wikidatacon2019/artwork/intro.svg
Normal file
2448
wikidatacon2019/artwork/intro.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 747 KiB |
2541
wikidatacon2019/artwork/outro.svg
Normal file
2541
wikidatacon2019/artwork/outro.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 758 KiB |
Loading…
Add table
Add a link
Reference in a new issue