I’m trying to show the ranking of my son’s hockey team on HA. I wrote a little script that grabs the scores from a webpage. This results in a file called “standen.txt”
This file contains one string (which I can make different if that would make things easier):
1;Warande JB2;1;1;0;0;11;1;0;2;Pelikaan JB1;1;0;1;0;2;2;0;3;Push JB2;1;0;1;0;2;2;0;4;Drunen JB1;0;0;0;0;0;0;0;5;Prinsenbeek JB1;0;0;0;0;0;0;0;6;HSD JB1;1;0;0;1;1;11;0
As you can see, the ranking is inside that string.
I have a cron job that updates this file every x hours and I have a platform-sensor that reads this file:
- platform: command_line
command: "cat /tmp/standen.txt"
name: File value
So I would like to show the rankings as a table inside HA, and not as an iFrame.
I think I will need a custom-ui for this, but I really don’t know where to start.
It would be nice to show all the columns, but just the first three values would be nice in a Table-form
Any ideas?