diff --git a/one-time-renderer.py b/one-time-renderer.py index 9a9e467..ab64cd3 100644 --- a/one-time-renderer.py +++ b/one-time-renderer.py @@ -103,7 +103,7 @@ class Manager: async with ClientSession(connector=connector) as http: async with AsyncSimpleClient(http_session=http) as sio: await sio.connect(f"{self.base}/socket.io") - await asyncio.sleep(2 + random() * 2) + await asyncio.sleep(0.4 + random() * 0.2) while not self._shutdown and not self._queue.empty(): try: async with asyncio.timeout(1): @@ -140,8 +140,11 @@ async def main(): proxies = load(fp)["proxies"] mgr = Manager() - with Image.open("./funnies/autism.png").convert("L") as im: - mgr.canvas.paste(im, ((1000 - im.width) // 2, (1000 - im.height) // 2)) + # with Image.open("./funnies/autism.png").convert("L") as im: + # mgr.canvas.paste(im, ((1000 - im.width) // 2, (1000 - im.height) // 2)) + + with Image.open("./result.png").convert("LA") as im: + mgr.canvas.paste(im, (0, 0)) reader_task = asyncio.create_task(mgr.reader(), name="Reader") updater_task = asyncio.create_task(mgr.updater(), name="Updater") diff --git a/pictures/casey.png b/pictures/casey.png index 4588c3b..a58befe 100644 Binary files a/pictures/casey.png and b/pictures/casey.png differ diff --git a/pictures/whistle.png b/pictures/whistle.png new file mode 100644 index 0000000..f1bffff Binary files /dev/null and b/pictures/whistle.png differ diff --git a/settings.json b/settings.json index 4938232..79e1646 100644 --- a/settings.json +++ b/settings.json @@ -49,7 +49,7 @@ "type": "time", "x": 75, "y": 100, - "format": "And time is: %Y-%m-%d %H:%M:%S UTC", + "format": "And time is: %Y-%m-%d %H:%M:%S UTC miku-miku beeeam~", "spf": 20, "font": "/usr/share/fonts/TTF/TerminusTTF.ttf", "size": 12 @@ -72,6 +72,12 @@ "path": "./pictures/casey_qr.png", "x": 10, "y": 240 + }, + { + "type": "image", + "path": "./pictures/whistle.png", + "x": 500, + "y": 720 } ] }