From d168c9ccd65bbd7e64f47760b84759c08278f072 Mon Sep 17 00:00:00 2001 From: Alex Smith Date: Tue, 6 Dec 2022 22:04:39 +1300 Subject: [PATCH] =?UTF-8?q?`.env`=20works=20better=20when=20you=20referenc?= =?UTF-8?q?e=20them=20=F0=9F=A4=A6=E2=80=8D=E2=99=82=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- monitor_upload.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/monitor_upload.py b/monitor_upload.py index c944861..0a0b137 100644 --- a/monitor_upload.py +++ b/monitor_upload.py @@ -10,7 +10,13 @@ from dotenv import load_dotenv load_dotenv() # This username is static and doesn't change between printers +FTP_SERVER = os.getenv('FTP_SERVER') FTP_USERNAME = "bblp" +FTP_PASSWORD = os.getenv('FTP_PASSWORD') +MQTT_SERVER = os.getenv('MQTT_SERVER') +DEV_ID = os.getenv('DEV_ID') +DIRECTORY_TO_MONITOR = os.getenv('DIRECTORY_TO_MONITOR') +UPLOADED_FILES_DIRECTORY = os.getenv('UPLOADED_FILES_DIRECTORY') # Connect to the FTP server ftp = ftplib.FTP(FTP_SERVER)