Add the ability to specify the client homeserver

master
Ryan Rix 8 years ago
parent 64a0dbc92c
commit 65c9a7b5ea

@ -22,7 +22,7 @@ LED_INVERT = False
class Lightrix:
def __init__(self, config, room):
self.client = MatrixClient("http://matrix01:8008")
self.client = MatrixClient(config['homeserver_uri'])
self.token = self.client.login_with_password(username=config['username'],
password=config['password'])
self.join_room(room)

@ -0,0 +1,4 @@
---
username: CHANGEME
password: CHANGEME
homeserver_uri: http://matrix.org
Loading…
Cancel
Save