OK, I've cleaned out the details relating to my station and attached a zip of the files.
There are other issues with the script but in general it gives me what I need, but it doesn't work with V2.
I hope it can be fixed easily
I tried to upload it as a ZIP file bout it wouldn't let me
https://1drv.ms/u/s!Asny6aInDnFZqGvzGmzt3bwBQuiy