Merge pull request 'make the time animation look nice :3' (#7) from strdst/buba:fix_time_page into main
Some checks failed
docker-image / docker (push) Has been cancelled

Reviewed-on: #7
Reviewed-by: stb <stb@noreply.git.hamburg.ccc.de>
This commit is contained in:
stb 2025-06-10 22:22:48 +02:00
commit 87dcc7b360

View file

@ -10,13 +10,9 @@ class BubaTime(BubaAnimation):
super().__init__(buba) super().__init__(buba)
def run(self): def run(self):
self.buba.text(page=0, row=0, col_start=0, col_end=92, text="Bus-Bahn-Anzeige") self.buba.text(page=0, row=0, col_start=0, col_end=119, text="Chaos Computer Club", align=BubaCmd.ALIGN_CENTER)
self.buba.simple_text(page=0, row=1, col=0, text="Chaos Computer Club") self.buba.text(page=0, row=1, col_start=0, col_end=119, text="Hansestadt Hamburg", align=BubaCmd.ALIGN_CENTER)
self.buba.simple_text(page=0, row=2, col=0, text="Hansestadt Hamburg")
self.buba.simple_text(page=0, row=3, col=0, text="Hello, world!")
self.buba.set_page(0)
for i in range(3): self.buba.text(page=0, row=3, col_start=0, col_end=119, text=datetime.now().strftime("%Y-%m-%d %H:%M"), align=BubaCmd.ALIGN_CENTER)
self.buba.text(page=0, row=0, col_start=93, col_end=119, text=datetime.now().strftime("%H:%M"),
align=BubaCmd.ALIGN_RIGHT) sleep(10)
sleep(2)