mirror of
https://github.com/bckelley/tconnectsync.git
synced 2026-08-24 03:34:12 -05:00
Warn when default username or password is being used
This commit is contained in:
@@ -73,6 +73,12 @@ def main(*args, **kwargs):
|
|||||||
if time_end < time_start:
|
if time_end < time_start:
|
||||||
raise Exception('time_start must be before time_end')
|
raise Exception('time_start must be before time_end')
|
||||||
|
|
||||||
|
|
||||||
|
if TCONNECT_EMAIL == 'email@email.com':
|
||||||
|
logging.warn('NO USERNAME WAS PROVIDED. Ensure you have set TCONNECT_EMAIL appropriately.')
|
||||||
|
if TCONNECT_PASSWORD == 'password':
|
||||||
|
logging.warn('NO PASSWORD WAS PROVIDED. Ensure you have set TCONNECT_PASSWORD appropriately.')
|
||||||
|
|
||||||
tconnect = TConnectApi(TCONNECT_EMAIL, TCONNECT_PASSWORD)
|
tconnect = TConnectApi(TCONNECT_EMAIL, TCONNECT_PASSWORD)
|
||||||
|
|
||||||
nightscout = NightscoutApi(NS_URL, NS_SECRET, NS_SKIP_TLS_VERIFY)
|
nightscout = NightscoutApi(NS_URL, NS_SECRET, NS_SKIP_TLS_VERIFY)
|
||||||
|
|||||||
Reference in New Issue
Block a user