From f332c05e5ce19eb62b7864c0aacb0a4bda9f417d Mon Sep 17 00:00:00 2001 From: Zygfryd Homonto <> Date: Sat, 20 Jul 2024 22:00:18 +0100 Subject: [PATCH] publish passwords --- 001-homekit_hub/.gitignore | 2 -- 001-homekit_hub/src/passwords.h | 14 ++++++++++++++ 001-homekit_hub/src/passwords_ftp.h | 4 ++++ 001-homekit_sensors/.gitignore | 3 +-- 001-homekit_sensors/src/passwords.h | 2 ++ 001-homekit_sensors/src/passwords_ftp.h | 4 ++++ 6 files changed, 25 insertions(+), 4 deletions(-) create mode 100755 001-homekit_hub/src/passwords.h create mode 100644 001-homekit_hub/src/passwords_ftp.h create mode 100755 001-homekit_sensors/src/passwords.h create mode 100644 001-homekit_sensors/src/passwords_ftp.h diff --git a/001-homekit_hub/.gitignore b/001-homekit_hub/.gitignore index 54d5047..b9f3806 100755 --- a/001-homekit_hub/.gitignore +++ b/001-homekit_hub/.gitignore @@ -1,4 +1,2 @@ .pio .vscode -src/passwords.h -src/passwords_ftp.h diff --git a/001-homekit_hub/src/passwords.h b/001-homekit_hub/src/passwords.h new file mode 100755 index 0000000..4ada6ee --- /dev/null +++ b/001-homekit_hub/src/passwords.h @@ -0,0 +1,14 @@ +#define UPDATE_FIRMWARE_HOST "https://myhost/esp/homekit/" CLIENT "/firmware" +#define MY_TIME_ZONE "GMT0BST,M3.5.0/1,M10.5.0" + + +#define INFLUXDB_URL "https://myhost.com" // OK +#define INFLUXDB_TOKEN "mytoken" +#define INFLUXDB_ORG "myorg" +#define INFLUXDB_BUCKET "mybucket" + + //---- MQTT Broker settings + const char* mqtt_server = "myhost.com"; + const char* mqtt_username = "myuser"; + const char* mqtt_password = "mypassword"; + const int mqtt_port =8883; \ No newline at end of file diff --git a/001-homekit_hub/src/passwords_ftp.h b/001-homekit_hub/src/passwords_ftp.h new file mode 100644 index 0000000..44fbf87 --- /dev/null +++ b/001-homekit_hub/src/passwords_ftp.h @@ -0,0 +1,4 @@ +FTP_HOST = "myhost.com" +FTP_USER = "myuser" +FTP_PASSWORD = "mypassword" +FTP_DEST_DIR = "mypath" \ No newline at end of file diff --git a/001-homekit_sensors/.gitignore b/001-homekit_sensors/.gitignore index 54d5047..bd997cc 100755 --- a/001-homekit_sensors/.gitignore +++ b/001-homekit_sensors/.gitignore @@ -1,4 +1,3 @@ .pio .vscode -src/passwords.h -src/passwords_ftp.h + diff --git a/001-homekit_sensors/src/passwords.h b/001-homekit_sensors/src/passwords.h new file mode 100755 index 0000000..6a20094 --- /dev/null +++ b/001-homekit_sensors/src/passwords.h @@ -0,0 +1,2 @@ +#define UPDATE_FIRMWARE_HOST "https://myhost.com/" CLIENT "/firmware" + diff --git a/001-homekit_sensors/src/passwords_ftp.h b/001-homekit_sensors/src/passwords_ftp.h new file mode 100644 index 0000000..44fbf87 --- /dev/null +++ b/001-homekit_sensors/src/passwords_ftp.h @@ -0,0 +1,4 @@ +FTP_HOST = "myhost.com" +FTP_USER = "myuser" +FTP_PASSWORD = "mypassword" +FTP_DEST_DIR = "mypath" \ No newline at end of file