|
config = {}
|
|
config["wifi_ssid"] = ""
|
|
config["wifi_pass"] = ""
|
|
|
|
config["sensor_pin"] = 4 # Sets Pin.PULL_UP
|
|
config["device_name"] = "Front Door Alarm" # Device sending alert
|
|
|
|
#
|
|
# UNCOMMENT AND CONFIGURE FEATURES
|
|
#
|
|
config["config_button"] = 23 # Pin containing stop/start button
|
|
config["config_led"] = 5 # Pin with LED
|
|
|
|
config["phue"] = {}
|
|
config["phue"]["group"] = 3 # the light group to flash
|
|
config["phue"]["color1"] = (244, 0, 0)
|
|
config["phue"]["color2"] = (0, 0, 204)
|
|
config["phue"]["flash_count"] = 3
|
|
|
|
config["smtp"] = {}
|
|
config["smtp"]["server"] = ""
|
|
config["smtp"]["ssl"] = True
|
|
config["smtp"]["port"] = 465
|
|
|
|
config["smtp"]["subject"] = "Front door open"
|
|
config["smtp"]["from"] = ""
|
|
config["smtp"]["to"] = ""
|
|
config["smtp"]["username"] = ""
|
|
config["smtp"]["password"] = ""
|