Many thanks, SkyLakeMine!
I now need to find out what port in the switch that miner is plugged into. In the configuration on the miner I can see the hostname which is the port. How can get this via the API? I am getting the following but none of it gives me the hostname:
print miner.version()
print miner.stats()
print miner.summary()
print miner.pools()
print miner.config()
print miner.devs()
Any ideas? I guess worst case I can get it through the cgi interface but that seems kludgy.