I am pulling minutes from transport_nsw to build a departure board.
It’s showing only minutes, which isnt very helpful for the time 1028 minutes in the future.
I"d like to make some tweaks but have no idea how.
- Is there a way I can convert time in minutes into a 24 hour clock time?
2 Is there a way to change 1 minute and 0 minute to show up as “Now”? - Is there a way to change the icon to the on position so it lights up between 2 and 0/now minutes?
type: custom:flex-table-card
sort_by: state
title: Busy bus stop
entities:
include:
- sensor.358_bellingen
- sensor.358_bellwood
- sensor.360_macksville
- sensor.360_coffs_harbour
columns:
- data: icon
name: ' '
align: center
- data: route
name: Route
align: center
- data: destination
name: 'Service To:'
- data: delay
name: Delay
- data: state
modify: #1 some magic code to convert minutes shown in the column to 24hr departure clock time.
name: Time
- data: state
name: 'in: '
modify: #2 some magic code to show "Now" when the time is 1 and 0 minutes.
suffix: ' min'
#3 some more magical code to show the icon is in the "on" position between 2 and 0/now minutes?