From 0840e8793157cf061b03bed99b18f82c86e261bd Mon Sep 17 00:00:00 2001 From: Sassan Haradji Date: Wed, 8 May 2024 20:18:18 +0400 Subject: [PATCH] fix(core): use latest version of headless-kivy-pi to avoid the static noise shown before the first frame is ready to be rendered #86 --- CHANGELOG.md | 2 ++ poetry.lock | 6 +++--- tests/fixtures/app.py | 4 +++- ubo_app/main.py | 4 +++- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 05d5877e..0a27fe71 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ - feat(core): pressing the home button navigates the user to the home page #84 - refactor(wifi): change the onboarding notification messages and make voice service load before wifi service by changing its priority #88 +- fix(core): use latest version of headless-kivy-pi to avoid the static noise shown + before the first frame is ready to be rendered #86 ## Version 0.14.0 diff --git a/poetry.lock b/poetry.lock index c89925df..8e062262 100644 --- a/poetry.lock +++ b/poetry.lock @@ -781,13 +781,13 @@ files = [ [[package]] name = "headless-kivy-pi" -version = "0.7.2" +version = "0.7.3" description = "Headless renderer for Kivy framework on Raspberry Pi" optional = true python-versions = "<4.0,>=3.11" files = [ - {file = "headless_kivy_pi-0.7.2-py3-none-any.whl", hash = "sha256:75616d3eeb5242129d107ad50de6de153ca509ab894cc942400c8885f0a761a9"}, - {file = "headless_kivy_pi-0.7.2.tar.gz", hash = "sha256:73e22b71c6cad7044d4b2495d208ab7ef120eea79a93d021ae843657ac2e85dc"}, + {file = "headless_kivy_pi-0.7.3-py3-none-any.whl", hash = "sha256:032366d7c05f416101ff679677a17b923af4159486fe1520fc08c166b2348a0f"}, + {file = "headless_kivy_pi-0.7.3.tar.gz", hash = "sha256:f508acd227049028eecce2dc611be7be1e6f1c631ac4a9c48c47477ac92cb82a"}, ] [package.dependencies] diff --git a/tests/fixtures/app.py b/tests/fixtures/app.py index 12457451..c72a36db 100644 --- a/tests/fixtures/app.py +++ b/tests/fixtures/app.py @@ -102,7 +102,9 @@ async def app_context( import headless_kivy_pi.config - headless_kivy_pi.config.setup_headless_kivy({'automatic_fps': True}) + headless_kivy_pi.config.setup_headless_kivy( + {'automatic_fps': True, 'flip_vertical': True}, + ) context = AppContext(request) diff --git a/ubo_app/main.py b/ubo_app/main.py index ce39ce7c..9ebc69b9 100644 --- a/ubo_app/main.py +++ b/ubo_app/main.py @@ -62,7 +62,9 @@ def main() -> None: import headless_kivy_pi.config - headless_kivy_pi.config.setup_headless_kivy({'automatic_fps': True}) + headless_kivy_pi.config.setup_headless_kivy( + {'automatic_fps': True, 'flip_vertical': True}, + ) from ubo_app.load_services import load_services from ubo_app.logging import logger