Changeset - a301a0039c66
[Not reviewed]
default
0 7 1
Drew Perttula - 13 years ago 2012-06-05 20:40:35
drewp@bigasterisk.com
buildout and rdflib updates
Ignore-this: 912b5b138f73771434f6cc1b077841c0
8 files changed with 31 insertions and 10 deletions:
0 comments (0 inline, 0 general)
bin/ascoltami
Show inline comments
 
#!/usr/bin/env python
 
#!bin/python
 

	
 
# this is a fork from semprini/ascotalmi to use mpd
 

	
bin/ascoltami2
Show inline comments
 
#!/usr/bin/python
 
#!bin/python
 
import web, thread, gobject, sys, optparse, logging
 
from rdflib import URIRef
 
sys.path.append(".")
bin/curvecalc
Show inline comments
 
#!/usr/bin/python
 
#!bin/python
 

	
 
"""
 
now launches like this:
 
@@ -26,7 +26,7 @@ from zope.interface import implements
 
from twisted.internet.defer import succeed
 
from twisted.web.iweb import IBodyProducer
 
from rdflib import Literal, URIRef, RDF, RDFS
 
from rdflib.Graph import Graph
 
from rdflib import Graph
 
import rdflib
 
import logging
 
log = logging.getLogger()
 
@@ -500,7 +500,7 @@ def createHelpLines(root):
 

	
 
def currentlyPlayingSong():
 
    """ask the music player what song it's on"""
 
    t = jsonlib.read(restkit.Resource(networking.musicUrl()).get("time").body)
 
    t = jsonlib.read(restkit.Resource(networking.musicPlayer.url).get("time").body)
 
    if t['song'] is None:
 
        raise ValueError("music player is not playing any song")
 
    return URIRef(t['song'])
bin/dmxserver
Show inline comments
 
#!/usr/bin/python
 
#!bin/python
 
"""
 

	
 
this is the only process to talk to the dmx hardware. other clients
buildout.cfg
Show inline comments
 
new file 100644
 
[buildout]
 
parts = external_libs 
 
bin-directory = bin
 
download-cache = /tmp/
 

	
 

	
 

	
 
[external_libs]
 
recipe = zc.recipe.egg
 
eggs = web.py==0.36
 
       cyclone==1.0-rc4
 
       rdflib==3.2.1
 
       restkit==4.1.2
 

	
 
python = python
 
interpreter = python
 
extra-paths = 
 

	
 
[python]
 
executable = /usr/bin/python2.7
 

	
light9/Submaster.py
Show inline comments
 
from __future__ import division
 
import os, logging
 
from rdflib.Graph import Graph
 
from rdflib import Graph
 
from rdflib import RDFS, Literal, BNode
 
from light9.namespaces import L9, XSD
 
from light9.TLUtility import dict_scale, dict_max
light9/showconfig.py
Show inline comments
 
import time, logging
 
from os import path, getenv
 
from rdflib.Graph import Graph
 
from rdflib import Graph
 
from rdflib import URIRef
 
from namespaces import MUS, L9
 
log = logging.getLogger('showconfig')
show/dance2011/config.n3
Show inline comments
 
@@ -19,8 +19,8 @@ show:dance2011 :playList (
 

	
 
show:dance2011 :networking sh:netHome .
 
sh:netHome  
 
  :musicPlayer <http://plus:8040/>;
 
  :dmxServer <http://plus:8030/>;
 
  :musicPlayer <http://dash:8040/>;
 
  :dmxServer <http://dash:8030/>;
 
  :keyboardComposer <http://dash:8050/> .
 

	
 
:Song is rdf:type of sh:song1, sh:song2, sh:song3, sh:song4,
0 comments (0 inline, 0 general)