Mercurial > code > home > repos > light9
view light9/networking.py @ 530:77b17dc36834
jqueryui
Ignore-this: 7b7301e85e4f7c7c01cced298e9e4d34
author | drewp@bigasterisk.com |
---|---|
date | Fri, 11 Jun 2010 07:16:46 +0000 |
parents | a60a73463ef0 |
children | 8d6f6d8a4719 |
line wrap: on
line source
import os from ConfigParser import SafeConfigParser # my intent was to pull these from a file in the LIGHT9_SHOW/ directory def dmxServerUrl(): #host = os.getenv('DMXHOST', 'localhost') #url = "http://%s:8030" % host return "http://plus:%s" % dmxServerPort() def dmxServerPort(): return 8030 def musicUrl(api='xmlrpc'): site = "http://dash:%s/" % musicPort() if api == 'rest': return site + "api/" else: return site + "RPC2" def musicPort(): return 8040 def mpdServer(): """servername, port""" return os.getenv('LIGHT9_MPD_SERVER', 'score'),6600 def kcPort(): return 8050 def kcServer(): return 'plus' def keyboardComposerUrl(): return "http://%s:%s" % (kcServer(), kcPort())