Displaying up time of router

Hi there. I am trying to think of a way to display up time of a router. The value to display would look something like this: System uptime is 1 week, 14 hours, 29 minutes
I will be running a cron job every 15 minutes which will store such a value into influxdb. Can anyone guide me so as to display this in a good visual/graphical format? Or let me know if i need to change the value that i am picking from the router to a specific metric like days only or hours only. Thanks

you can use the unit “duration” in the singlestat panel , it will get you close to what you want

thanks alot for your prompt reply.