diff --git a/config.json b/config.json index 2beb7cf..954a7ae 100644 --- a/config.json +++ b/config.json @@ -11,5 +11,6 @@ 19, 24 ], - "INFO_TEXT": "Salvatore La Bua - http://twitter.com/slabua" + "INFO_TEXT": "Salvatore La Bua - http://twitter.com/slabua", + "QR_URL": "http://twitter.com/slabua" } \ No newline at end of file diff --git a/picomotodash.py b/picomotodash.py index 9a7a69a..23e95a1 100644 --- a/picomotodash.py +++ b/picomotodash.py @@ -89,6 +89,7 @@ BATTERY_TH, TEMP_TH, INFO_TEXT, + QR_URL, ] = pmdenv.read_config(CONFIG_FILE) temp_id = 0 diff --git a/picomotodash_env.py b/picomotodash_env.py index 69f5e7c..c1c01e6 100644 --- a/picomotodash_env.py +++ b/picomotodash_env.py @@ -95,6 +95,7 @@ def read_config(CONFIG_FILE): BATTERY_TH = config["BATTERY_TH"] TEMP_TH = config["TEMP_TH"] INFO_TEXT = config["INFO_TEXT"] + QR_URL = config["QR_URL"] return [ USE_BG_IMAGE, @@ -104,4 +105,5 @@ def read_config(CONFIG_FILE): BATTERY_TH, TEMP_TH, INFO_TEXT, + QR_URL, ]