Skip to content

Commit

Permalink
QR_URL configurable in config.json file
Browse files Browse the repository at this point in the history
  • Loading branch information
slabua committed Jun 21, 2023
1 parent f259a82 commit 0f45c09
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
1 change: 1 addition & 0 deletions picomotodash.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
BATTERY_TH,
TEMP_TH,
INFO_TEXT,
QR_URL,
] = pmdenv.read_config(CONFIG_FILE)

temp_id = 0
Expand Down
2 changes: 2 additions & 0 deletions picomotodash_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -104,4 +105,5 @@ def read_config(CONFIG_FILE):
BATTERY_TH,
TEMP_TH,
INFO_TEXT,
QR_URL,
]

0 comments on commit 0f45c09

Please sign in to comment.