From aba4511e95e7fc40c6ee1f0b5937462ecedcc8a5 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Wed, 4 Sep 2024 17:00:24 -0600 Subject: [PATCH] adjust image size --- feeder/server.py | 2 +- feeder/systemd/enable.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/feeder/server.py b/feeder/server.py index f6703eb..a860d10 100644 --- a/feeder/server.py +++ b/feeder/server.py @@ -15,7 +15,7 @@ redis_client = redis.Redis(host='localhost', port=6379) def serve_global_map(): global_map_data = redis_client.get('global_map') if global_map_data is None: - img = Image.new('RGB', (500, 300), color=(255, 255, 255)) + img = Image.new('RGB', (633, 356), color=(255, 255, 255)) d = ImageDraw.Draw(img) fnt = ImageFont.load_default(size=30) w, h = fnt.getbbox(NO_MAP_STR)[2:4] diff --git a/feeder/systemd/enable.sh b/feeder/systemd/enable.sh index ac642b0..de85e9d 100755 --- a/feeder/systemd/enable.sh +++ b/feeder/systemd/enable.sh @@ -11,4 +11,5 @@ DIR=$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd ) cp "$DIR"/*.service /etc/systemd/system systemctl daemon-reload systemctl enable --now *.service -systemctl restart *.service \ No newline at end of file +systemctl restart *.service +systemctl status *.service \ No newline at end of file