diff options
author | MaZderMind <git@mazdermind.de> | 2015-09-02 15:19:30 +0200 |
---|---|---|
committer | MaZderMind <git@mazdermind.de> | 2015-09-02 15:19:30 +0200 |
commit | 20d75f6c7f5cad2f5c1b4da71ad5405848230201 (patch) | |
tree | 93894d7bc79a0b018275efbc0db524ac6f686570 /voctogui/voctogui.py | |
parent | a004948051e182edb3a7e40f1f7f2e14bebb0e0e (diff) | |
parent | 8646386d09ab6cdabf0b8421cece5c1ddd69633f (diff) |
Merge branch 'control-server-resilience'
Based on the work made by zuntrax & mithro at cccamp15
Diffstat (limited to 'voctogui/voctogui.py')
-rwxr-xr-x | voctogui/voctogui.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/voctogui/voctogui.py b/voctogui/voctogui.py index 52bc3c0..932b8f9 100755 --- a/voctogui/voctogui.py +++ b/voctogui/voctogui.py @@ -24,8 +24,11 @@ Gst.init([]) # import local classes from lib.args import Args +from lib.config import Config from lib.ui import Ui +import lib.connection as Connection + # main class class Voctogui(object): def __init__(self): @@ -100,6 +103,13 @@ def main(): logging.info('Python Version: %s', sys.version_info) logging.info('GStreamer Version: %s', Gst.version()) + # connect to server + Connection.establish( + Config.get('server', 'host')) + + # fetch serverconfig from server + Config.fetchRemoteConfig() + # init main-class and main-loop logging.debug('initializing Voctogui') voctogui = Voctogui() |