From e293bb9b1473a4ae4815c344e719b640dc5aa9ba Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 19 May 2024 18:11:27 +0200 Subject: EFA: include occupancy indicator --- lib/DBInfoscreen.pm | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/DBInfoscreen.pm') diff --git a/lib/DBInfoscreen.pm b/lib/DBInfoscreen.pm index c784e96..6335490 100644 --- a/lib/DBInfoscreen.pm +++ b/lib/DBInfoscreen.pm @@ -190,6 +190,16 @@ sub startup { = (qw(help_outline person_outline people priority_high)); my $text = 'Auslastung unbekannt'; + if ( $occupancy eq 'MANY_SEATS' ) { + $occupancy = 1; + } + elsif ( $occupancy eq 'FEW_SEATS' ) { + $occupancy = 2; + } + elsif ( $occupancy eq 'STANDING_ONLY' ) { + $occupancy = 3; + } + if ( $occupancy > 2 ) { $text = 'Sehr hohe Auslastung erwartet'; } -- cgit v1.2.3