Compare commits

...

2 Commits

Author SHA1 Message Date
1e87df0b7a Change broker's IP address 2022-11-14 02:11:43 +00:00
7d5d68e29c Increase cooldown 2022-11-14 02:11:24 +00:00

View File

@ -43,7 +43,7 @@ async def play_sound(filename):
async def barkbark(sound):
global COOLDOWN
if time.time() - COOLDOWN < 15.0:
if time.time() - COOLDOWN < 20.0:
logging.info('Cooldown skipping.')
return
COOLDOWN = time.time()
@ -84,7 +84,7 @@ async def process_mqtt(message):
async def fetch_mqtt():
await asyncio.sleep(3)
async with Client('192.168.0.100') as client:
async with Client('192.168.0.106') as client:
async with client.filtered_messages('iot/cameras') as messages:
await client.subscribe('#')
async for message in messages: