Skip to content

not finding the .env contents #137

@jimmcivor

Description

@jimmcivor

Describe the problem
Stuck at beginning of running app, with tconnectsync executable complaining no TCONNECT_EMAIL provided etc. HAVE I GOT THE .env FILE IN THE RIGHT PLACE?
I expect this is a dumb mistake, so thanks for your help

To Reproduce
I thought I did a global install using the pip3 instructions, and I put the .env file in /Users/myuser/.config/tconnectsync/.env/tconnectV1.env. (I also tried /Users/myuser/.config/tconnectsync/tconnectV1.env but also no good)

The executable is at /Users/myuser/Library/Python/3.9/bin/tconnectsync.
If I run that with --help, it gives me
/Users/myuser/Library/Python/3.9/lib/python/site-packages/urllib3/init.py:35: NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: urllib3/urllib3#3020
warnings.warn(
usage: tconnectsync [-h] [--version] [--pretend] [-v] [--start-date START_DATE] [--end-date END_DATE] [--days DAYS] [--auto-update] [--check-login]
[--features {BASAL,BOLUS,IOB,PUMP_EVENTS,PUMP_EVENTS_BASAL_SUSPENSION,PROFILES,CGM,CGM_ALERTS,DEVICE_STATUS} [{BASAL,BOLUS,IOB,PUMP_EVENTS,PUMP_EVENTS_BASAL_SUSPENSION,PROFILES,CGM,CGM_ALERTS,DEVICE_STATUS} ...]]
[--region {US,EU}]
etc etc
Version 2.3.4

my .env file content is

Your credentials for t:connect

TCONNECT_EMAIL='xxxxx@gmail.com'
TCONNECT_PASSWORD='xxxx'

OPTIONAL: Your region (US or EU)

TCONNECT_REGION=EU

URL of your Nightscout site

NS_URL='https://xxxx-bg.ns.10be.de/'

Your Nightscout API_SECRET value

NS_SECRET='xxxx'

Current timezone of the pump

TIMEZONE_NAME='America/Edmonton'

OPTIONAL: Your pump's serial number (numeric)

PUMP_SERIAL_NUMBER=nnnnnnn

Expected behavior
expect it to run

Setup details
operating system: Running MacMini M4 with macOS 26.3.1 and the homebrew was updated before installing

  • tconnectsync version: 2.3.4
  • On what platform are you using the t:connect mobile app? iOS 26.3.1 iphone 14
  • What version are you using of the t:connect mobile app? Tandem t:slim mobile app 2.11.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    setup helpFor help related to setting up tconnectsync

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions