mirror of
https://github.com/bckelley/tconnectsync.git
synced 2026-08-24 03:34:12 -05:00
Add comprehensive support for European Tandem t:connect servers alongside existing US support. Features: - Region parameter in TandemSourceApi (default: US, supports: US/EU) - EU-specific API endpoints and client ID configuration - Region-aware credential caching to prevent cross-region conflicts - Command line --region flag and TCONNECT_REGION environment variable - Full backward compatibility (defaults to US region) Technical Changes: - Separated common SSO URLs from region-specific service URLs - Added region validation and URL property methods - Enhanced credential cache with region isolation - Updated CLI argument parsing and configuration system - Added comprehensive logging for region selection Testing: - Verified US region backward compatibility - Successfully tested EU authentication and data retrieval - Processed real EU pump data (1500+ events, 39KB) - Validated all event types: basal, bolus, CGM, user modes, alarms - Confirmed Nightscout integration compatibility This enables EU Tandem pump users to sync their data using: --region EU or TCONNECT_REGION=EU