Finishes to convert streamer to new system.

Next to be converted is counter
This commit is contained in:
Julien Lengrand-Lambert
2013-01-22 11:26:58 +01:00
parent 86a06c16f9
commit e599f69588
3 changed files with 7 additions and 5 deletions

View File

@@ -16,4 +16,5 @@ name='board.log'
root='/home/jll/Documents/code/twitterboard/'
basic ="basic.keys"
oauth ="oauth.keys"
oauth ="oauth.keys"
oauth_id=True

View File

@@ -7,7 +7,7 @@ into commands that will trigger actions on the twiderboard
import signal
import sys
from data import engine_url
import data
from counter import Counter
from streamer import HashtagLogger
@@ -21,12 +21,12 @@ class Trigger():
# starting all services
# Streamer
print "Starting streamer"
self.h = HashtagLogger(engine_url, oauth=True)
self.h = HashtagLogger(data.engine_url, oauth=data.oauth)
self.h.start()
#Counter
print "Starting counter"
self.c = Counter(engine_url)
self.c = Counter(data.engine_url)
self.c.start()
# FIXME: Must create a wrapper to display them all periodically here

View File

@@ -21,9 +21,10 @@ log_path = os.path.join(root, log_name)
# Keys
oauth=parser.get('keys', 'oauth_id')
keys_root = parser.get('keys', 'root')
oauth_name = parser.get('keys', 'oauth')
basic_name = parser.get('keys', 'basic')
oauth_keys = os.path.join(keys_root, oauth_name)
basic_keys = os.path.join(keys_root, basic_name)
basic_keys = os.path.join(keys_root, basic_name)