-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moving secrets from USER_SETTINGS to USER_SECRETS.ini
- Loading branch information
Showing
6 changed files
with
41 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,6 @@ compile.bat | |
|
||
# Ignore binary files | ||
*.bin | ||
|
||
# Ignore secret file | ||
USER_SECRETS.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[secret] | ||
WIFI_SSID=REPLACE_WITH_YOUR_SSID ; Maximum of 63 characters | ||
WIFI_PASSWORD=REPLACE_WITH_YOUR_PASSWORD ; Minimum of 8 characters | ||
AP_PASSWORD=123456789 ; Minimum of 8 characters; set to blank if you want the access point to be open | ||
HTTP_USERNAME=admin ; username to webserver authentication; | ||
HTTP_PASSWORD=admin ; password to webserver authentication; | ||
MQTT_SERVER=192.168.xxx.yyy ; mqtt server address | ||
MQTT_USER= ; mqtt username, leave blank for no authentication | ||
MQTT_PASSWORD= ; mqtt password, leave blank for no authentication |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import os | ||
from shutil import copyfile | ||
|
||
if not os.path.exists('USER_SECRETS.ini'): | ||
copyfile('USER_SECRETS_TEMPLATE.ini', 'USER_SECRETS.ini') |