Mercurial > code > home > repos > pi_mqtt
comparison pi_mqtt.py @ 7:f0d549ec5e59 default tip
deployment and hostname
author | drewp@bigasterisk.com |
---|---|
date | Mon, 23 Sep 2024 01:24:48 -0700 |
parents | 492eef562a88 |
children |
comparison
equal
deleted
inserted
replaced
6:7ea01e3d6a06 | 7:f0d549ec5e59 |
---|---|
45 self.garage.write(15, not light_on) | 45 self.garage.write(15, not light_on) |
46 lastSuccessfulPoll = time.time() | 46 lastSuccessfulPoll = time.time() |
47 | 47 |
48 | 48 |
49 def main(): | 49 def main(): |
50 host = 'garage5' | 50 host = 'ga-iot5' |
51 log.info(f'connecting to {host=} - if this hangs, garage5 wg maight be missing ip addr') | 51 log.info(f'connecting to {host=} - if this hangs, garage5 wg maight be missing ip addr') |
52 garage = pigpio.pi(host=host, port=8888) | 52 garage = pigpio.pi(host=host, port=8888) |
53 log.info('connected') | 53 log.info('connected') |
54 | 54 |
55 poller = Poller(garage) | 55 poller = Poller(garage) |