import time
import utils
from toggle_switches import SWITCHES

def main():
    """Run the application"""
    print('Starting application...')
    utils.setup()
    print('IP Address is {}'.format(utils.get_pi_network_ip_address()))
    print('Running application...')
    try:
        while True:
            for switch in SWITCHES:
                if switch.should_refresh_config():
                    print('Refreshing config')
                    utils.update_dnsmasq_config()
            time.sleep(0.1)
    except KeyboardInterrupt:
        print('Shutting down...')


if __name__ == "__main__":
    main()

1f69b58c8b415ffaed17424b8dbb20212a3e1b1c
<mask token>

<mask token>


def main():
    """Run the application"""
    print('Starting application...')
    utils.setup()
    print('IP Address is {}'.format(utils.get_pi_network_ip_address()))
    print('Running application...')
    try:
        while True:
            for switch in SWITCHES:
                if switch.should_refresh_config():
                    print('Refreshing config')
                    utils.update_dnsmasq_config()
            time.sleep(0.1)
    except KeyboardInterrupt:
        print('Shutting down...')


<mask token>

<mask token>


def main():
    """Run the application"""
    print('Starting application...')
    utils.setup()
    print('IP Address is {}'.format(utils.get_pi_network_ip_address()))
    print('Running application...')
    try:
        while True:
            for switch in SWITCHES:
                if switch.should_refresh_config():
                    print('Refreshing config')
                    utils.update_dnsmasq_config()
            time.sleep(0.1)
    except KeyboardInterrupt:
        print('Shutting down...')


if __name__ == '__main__':
    main()

import time
import utils
from toggle_switches import SWITCHES


def main():
    """Run the application"""
    print('Starting application...')
    utils.setup()
    print('IP Address is {}'.format(utils.get_pi_network_ip_address()))
    print('Running application...')
    try:
        while True:
            for switch in SWITCHES:
                if switch.should_refresh_config():
                    print('Refreshing config')
                    utils.update_dnsmasq_config()
            time.sleep(0.1)
    except KeyboardInterrupt:
        print('Shutting down...')


if __name__ == '__main__':
    main()

import time
import utils
from toggle_switches import SWITCHES

def main():
    """Run the application"""
    print('Starting application...')
    utils.setup()
    print('IP Address is {}'.format(utils.get_pi_network_ip_address()))
    print('Running application...')
    try:
        while True:
            for switch in SWITCHES:
                if switch.should_refresh_config():
                    print('Refreshing config')
                    utils.update_dnsmasq_config()
            time.sleep(0.1)
    except KeyboardInterrupt:
        print('Shutting down...')


if __name__ == "__main__":
    main()
