From b8c760605104322b990674d90940f409c774adff Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 13 Mar 2021 11:39:08 +0100 Subject: show occupancy data if available --- bin/efa | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'bin/efa') diff --git a/bin/efa b/bin/efa index 5840068..5675d1c 100755 --- a/bin/efa +++ b/bin/efa @@ -228,6 +228,18 @@ sub display_connection { } } + if ( $c->occupancy ) { + if ( $c->occupancy == 1 ) { + say "# geringe Auslastung"; + } + elsif ( $c->occupancy == 2 ) { + say "# hohe Auslastung"; + } + elsif ( $c->occupancy == 3 ) { + say "# sehr hohe Auslastung"; + } + } + for my $notice ( $c->current_notes ) { if ( $notice->subtitle ne $notice->subject ) { printf( "# %s - %s\n", $notice->subtitle, $notice->subject ); -- cgit v1.2.3