This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 -u | |
import argparse | |
argument_parser = argparse.ArgumentParser('Run the HVAC BAC0 server') | |
argument_parser.add_argument('--local-address', help='local IP address to bind to', required=True) | |
argument_parser.add_argument('--local-port', help='UDP port to bind to') | |
argument_parser.add_argument('--bbmd-address', help='IP:port of the BACnet BBMD to register against, if any') | |
argument_parser.add_argument('--bbmd-ttl', help='TTL of the BACnet foreign device registration, in seconds', type=int) | |
argument_parser.add_argument('--bacnet-network', help='BACnet network to discover devices on; can be specified multiple times', type=int, action='append', required=True) | |
argument_parser.add_argument('--prometheus-port', help='Serve Prometheus metrics on this port', type=int) |