From 3f5076eb5a2aee25cf9459b0cb51b9451e830b33 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 19 May 2024 20:04:51 +0200 Subject: EFA occupancy: Add "FULL" / 4 --- lib/DBInfoscreen.pm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/DBInfoscreen.pm b/lib/DBInfoscreen.pm index 6335490..1fd3674 100644 --- a/lib/DBInfoscreen.pm +++ b/lib/DBInfoscreen.pm @@ -187,7 +187,9 @@ sub startup { my ( $self, $occupancy ) = @_; my @symbols - = (qw(help_outline person_outline people priority_high)); + = ( + qw(help_outline person_outline people priority_high not_interested) + ); my $text = 'Auslastung unbekannt'; if ( $occupancy eq 'MANY_SEATS' ) { @@ -199,7 +201,13 @@ sub startup { elsif ( $occupancy eq 'STANDING_ONLY' ) { $occupancy = 3; } + elsif ( $occupancy eq 'FULL' ) { + $occupancy = 4; + } + if ( $occupancy > 3 ) { + $text = 'Voraussichtlich überfüllt'; + } if ( $occupancy > 2 ) { $text = 'Sehr hohe Auslastung erwartet'; } -- cgit v1.2.3