view light9/networking.py @ 366:430014be95ce

fix KC dummy mode
author Drew Perttula <drewp@bigasterisk.com>
date Fri, 15 Jun 2007 18:06:46 +0000
parents 8a1ec8aca432
children 3926ab3b7ceb
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://localhost:%s" % dmxServerPort()

def dmxServerPort():
    return 8030
    
def musicUrl():
    return "http://score:%s" % musicPort()

def musicPort():
    return 8040

def mpdServer():
    """servername, port"""
    return os.getenv('LIGHT9_MPD_SERVER', 'score'),6600

def kcPort():
    return 8050

def kcServer():
    return 'dash'