UniversalDevicesInc / polyglot-v2-python-interface

Python Interface for NodeServers to Polyglot v2
MIT License
7 stars 4 forks source link

Add server.json info to controller #9

Closed jimboca closed 4 years ago

jimboca commented 6 years ago

Some node servers read the server.json data so we can print the version:

SERVERDATA = json.load(open('server.json'))
VERSION = SERVERDATA['credits'][0]['version']
LOGGER.info('Started MiLight for v2 NodeServer version %s', str(VERSION))

Would be nice to have standard way to access this and always print the version on startup.

jimboca commented 4 years ago

Added in 2.0.33 get_server_data