When is the next K3?

If I’m going into London, or getting the train into work, the K3 bus is my starting point to get to Surbiton Station. I wanted to see if I could use the TFL Transport API to find out when the next bus was arriving.

I set up a simple Python script on a Raspberry Pi Zero to poll the API every minute, using the NAPTAN code for the Manor Road South stop (40004405165B), going towards Roehampton Vale, and the time for the bus back from Surbiton Station (490001285D).

stu73.net/k3