ambient/widgets.d/trains/DE_ICE.fish
2022-10-30 17:51:19 +01:00

15 lines
487 B
Fish

if set -q AMBIENT_DE_ICE_STOP_NEXT
echo "🚏 $AMBIENT_DE_ICE_STOP_NEXT"
end
if [ -n "$AMBIENT_DE_ICE_STOP_NEXT_ARRIVE_DELAY" ]
echo "$AMBIENT_DE_ICE_STOP_NEXT_ARRIVE_DELAY"
end
if set -q AMBIENT_DE_ICE_TRAIN_TYPE
echo -n "🚄 $AMBIENT_DE_ICE_TRAIN_TYPE"
# If iceportal.de is having a moment, we may not have the train number.
set -q AMBIENT_DE_ICE_VZN; and echo -n "-$AMBIENT_DE_ICE_VZN"
echo
end
if set -q AMBIENT_DE_ICE_SPEED
echo "💨 $AMBIENT_DE_ICE_SPEED km/h"
end