Initial commit
This commit is contained in:
commit
d9ceeea556
10 changed files with 462 additions and 0 deletions
22
examples/sucks.py
Normal file
22
examples/sucks.py
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
from sucks import *
|
||||
|
||||
class BumperVacBot(VacBot):
|
||||
def __init__(self, server_address):
|
||||
self.server_address = server_address
|
||||
vacuum = { 'did':'none','class':'none' }
|
||||
super().__init__('sucks', 'ecouser.net', '', '', vacuum, '')
|
||||
def connect_and_wait_until_ready(self):
|
||||
logging.info('connecting')
|
||||
self.xmpp.connect(self.server_address)
|
||||
self.xmpp.process()
|
||||
self.xmpp.wait_until_ready()
|
||||
|
||||
logging.basicConfig(level=logging.DEBUG, format='%(levelname)-8s %(message)s')
|
||||
|
||||
# Change server address to the machine running Bumper
|
||||
server_address = ('xxx.xxx.xxx.xxx', 5223)
|
||||
|
||||
bumper_client = BumperVacBot(server_address)
|
||||
bumper_client.connect_and_wait_until_ready()
|
||||
Loading…
Add table
Add a link
Reference in a new issue