From 7ddb19f53a859330d7b38b3f5659483524ec66eb Mon Sep 17 00:00:00 2001 From: arofarn Date: Sat, 16 May 2020 09:04:12 +0200 Subject: [PATCH] Update config_template.py --- code/config_template.py | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/code/config_template.py b/code/config_template.py index 7c91b2e..0dc51d8 100644 --- a/code/config_template.py +++ b/code/config_template.py @@ -1,6 +1,20 @@ -# Just a dic with each known wifi access point's SSID and WPA key -# Update it with your own setting and rename it "wifi_config.py" +"""Config file""" known_wifi_ap = {"wifi_ssid": "wifi_wpa_key", "wifi_ssid_2": "wifi_wpa_key_2", } + +CLIENT_ID = "desktop_light" +LOCATION = "desktop" + +MQTT_HOST = "192.168.0.XXX" +MQTT_PORT = 1883 +MQTT_USERNAME = "user" +MQTT_PASSWD = "blabla" +MQTT_TOPIC = "home/desk/desktop_light" + +# NEOPIXEL strings +NB_PIX = 67 # Nombre de pixels de la 1e bande de LED +NB_PIX2 = 67 # Nombre de pixels de la 2e bande de LED +MAX_BRIGHT = 100 # Luminosité max (100 max.) +USR_COLOR = [255, 130, 20] # Couleur de base (à luminosité max)