Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.1.3 errors #106

Open
vonstein2002 opened this issue Oct 7, 2024 · 3 comments
Open

2.1.3 errors #106

vonstein2002 opened this issue Oct 7, 2024 · 3 comments
Labels
setup help For help related to setting up tconnectsync

Comments

@vonstein2002
Copy link

Describe the problem

Traceback (most recent call last):
File "/usr/local/bin/tconnectsync", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.10/dist-packages/tconnectsync/init.py", line 123, in main
added, last_event_id = TandemSourceProcessTimeRange(tconnect, nightscout, tconnectDevice, pretend=args.pretend, features=args.features).process(time_start, time_end)
File "/usr/local/lib/python3.10/dist-packages/tconnectsync/sync/tandemsource/process.py", line 98, in process
logger.info("Processed %d events. Last event ID seen: %d" % (processed_count, last_event_id))
TypeError: %d format: a real number is required, not NoneType

To Reproduce
Steps to reproduce the behavior:

  1. tconnectsync --features BASAL BOLUS PUMP_EVENTS -v

Expected behavior
A clear and concise description of what you expected to happen.

Setup details

  • Operating system: Ubuntu 22.04.1
  • tconnectsync version (from --version): 2.1.3
  • On what platform are you using the t:connect mobile app? (Android or iOS) IOS
  • What version are you using of the t:connect mobile app? 2.8.2

Terminal output
If applicable, add the full output from your terminal from running tconnectsync. Copy the output into a text editor like Textedit or Notepad first and find-and-replace sensitive strings, like your Nightscout URL and pump serial number, if they appear.

2024-10-04 08:47:36 DEBUG Set logging level to DEBUG
2024-10-04 08:47:36 WARNING THIS VERSION OF TCONNECTSYNC READS DATA FROM TANDEM SOURCE, AND MAY CONTAIN BUGS!
2024-10-04 08:47:36 INFO You may notice different behavior compared to older versions which utilized t:connect data sources.
2024-10-04 08:47:36 INFO To report a bug or to get help, see https://github.com/jwoglom/tconnectsync/issues
2024-10-04 08:47:36 INFO Enabled features: BASAL, BOLUS, PUMP_EVENTS
2024-10-04 08:47:36 DEBUG Instantiating new TandemSourceApi
2024-10-04 08:47:36 INFO Logging in to TandemSourceApi...
2024-10-04 08:47:36 INFO Loaded cached credentials from /home/me/.config/tconnectsync/.creds_cache: saved at 2024-10-04T09:55:06.242879+00:00 (2 hr 52 min 30 sec ago), access token expiry 2024-10-04T17:55:06+00:00 (in 5 hr 7 min 29 sec)
2024-10-04 08:47:36 INFO Successfully used cached credentials
2024-10-04 08:47:36 DEBUG Starting new HTTPS connection (1): source.tandemdiabetes.com:443
2024-10-04 08:47:38 DEBUG https://source.tandemdiabetes.com:443 "GET /api/reports/reportsfacade/34148c12-d1e0-44c7-8adc-d6e1f2f3fc92/pumpeventmetadata HTTP/1.1" 200 None
2024-10-04 08:47:38 INFO Found 3 pumps: dict_keys(['111111', '222222', '333333'])
2024-10-04 08:47:38 INFO Using pump with serial: 222222 (tconnectDeviceId: 378904, last seen: 2022-03-15T15:08:40)
2024-10-04 08:47:38 INFO ProcessTimeRange time_start=2024-10-03 08:47:36.913616 time_end=2024-10-04 08:47:36.913616 tconnect_device_id=378904 features=['BASAL', 'BOLUS', 'PUMP_EVENTS']
2024-10-04 08:47:38 DEBUG pump_events_raw(2024-10-03, 2024-10-04)
2024-10-04 08:47:38 DEBUG Starting new HTTPS connection (1): source.tandemdiabetes.com:443
2024-10-04 08:47:38 DEBUG https://source.tandemdiabetes.com:443 "GET /api/reports/reportsfacade/pumpevents/34148c12-d1e0-44c7-8adc-d6e1f2f3fc92/378904?minDate=2024-10-03&maxDate=2024-10-04&eventIds=229%2C5%2C28%2C4%2C26%2C99%2C279%2C3%2C16%2C59%2C21%2C55%2C20%2C280%2C64%2C65%2C66%2C61%2C33%2C371%2C171%2C369%2C460%2C172%2C370%2C461%2C372%2C399%2C256%2C213%2C406%2C394%2C212%2C404%2C214%2C405%2C447%2C313%2C60%2C14%2C6%2C90%2C230%2C140%2C12%2C11%2C53%2C13%2C63%2C203%2C307%2C191 HTTP/1.1" 200 None
2024-10-04 08:47:38 INFO Read 0 bytes (est. 0.0 events)
2024-10-04 08:47:38 INFO Found events: {}
2024-10-04 08:47:38 INFO Skipping UpdateProfiles, is not enabled from features ['BASAL', 'BOLUS', 'PUMP_EVENTS']
Traceback (most recent call last):
File "/usr/local/bin/tconnectsync", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.10/dist-packages/tconnectsync/init.py", line 123, in main
added, last_event_id = TandemSourceProcessTimeRange(tconnect, nightscout, tconnectDevice, pretend=args.pretend, features=args.features).process(time_start, time_end)
File "/usr/local/lib/python3.10/dist-packages/tconnectsync/sync/tandemsource/process.py", line 98, in process
logger.info("Processed %d events. Last event ID seen: %d" % (processed_count, last_event_id))
TypeError: %d format: a real number is required, not NoneType

Check Login output
2024-10-07 08:19:02 WARNING THIS VERSION OF TCONNECTSYNC READS DATA FROM TANDEM SOURCE, AND MAY CONTAIN BUGS!
2024-10-07 08:19:02 INFO You may notice different behavior compared to older versions which utilized t:connect data sources.
2024-10-07 08:19:02 INFO To report a bug or to get help, see https://github.com/jwoglom/tconnectsync/issues
2024-10-07 08:19:02 INFO Enabled features: BASAL, BOLUS, PUMP_EVENTS, PROFILES
2024-10-07 08:19:02 INFO Logging in to TandemSourceApi...
2024-10-07 08:19:02 INFO Loaded cached credentials from /home/me/.config/tconnectsync/.creds_cache: saved at 2024-10-07T11:25:06.127186+00:00 (53 min 56 sec ago), access token expiry 2024-10-07T19:25:06+00:00 (in 7 hr 6 min 3 sec)
2024-10-07 08:19:02 INFO Successfully used cached credentials
2024-10-07 08:19:03 INFO Found 3 pumps: dict_keys(['', '', '*****'])
2024-10-07 08:19:03 INFO Using pump with serial: ******* (tconnectDeviceId: 378904, last seen: 2022-03-15T15:08:40)
2024-10-07 08:19:03 INFO ProcessTimeRange time_start=2024-10-06 08:19:02.721322 time_end=2024-10-07 08:19:02.721322 tconnect_device_id=378904 features=['BASAL', 'BOLUS', 'PUMP_EVENTS', 'PROFILES']
2024-10-07 08:19:04 INFO Read 0 bytes (est. 0.0 events)
2024-10-07 08:19:04 INFO Found events: {}
2024-10-07 08:19:04 INFO UpdateProfiles is enabled from features ['BASAL', 'BOLUS', 'PUMP_EVENTS', 'PROFILES']
2024-10-07 08:19:05 INFO Current pump settings: PumpSettings(profiles=PumpProfiles(activeIdp=0, profile=[PumpProfile(name='Mar3', idp=0, tDependentSegs=[PumpProfileSegment(startTime=0, basalRate=700, isf=75, carbRatio=15000, targetBg=110), PumpProfileSegment(startTime=660, basalRate=700, isf=75, carbRatio=16000, targetBg=110), PumpProfileSegment(startTime=900, basalRate=700, isf=75, carbRatio=17000, targetBg=110), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0)], insulinDuration=300, carbEntry=1, maxBolus=13000), PumpProfile(name='Feb24', idp=5, tDependentSegs=[PumpProfileSegment(startTime=0, basalRate=765, isf=75, carbRatio=15000, targetBg=110), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0)], insulinDuration=300, carbEntry=1, maxBolus=13000), PumpProfile(name='Feb8', idp=2, tDependentSegs=[PumpProfileSegment(startTime=0, basalRate=730, isf=75, carbRatio=15000, targetBg=110), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0)], insulinDuration=300, carbEntry=1, maxBolus=13000), PumpProfile(name='Feb7', idp=4, tDependentSegs=[PumpProfileSegment(startTime=0, basalRate=730, isf=75, carbRatio=12000, targetBg=110), PumpProfileSegment(startTime=630, basalRate=730, isf=75, carbRatio=13000, targetBg=110), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0)], insulinDuration=300, carbEntry=1, maxBolus=13000), PumpProfile(name='Feb1', idp=3, tDependentSegs=[PumpProfileSegment(startTime=0, basalRate=763, isf=75, carbRatio=12000, targetBg=110), PumpProfileSegment(startTime=630, basalRate=763, isf=75, carbRatio=13000, targetBg=110), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0), PumpProfileSegment(startTime=0, basalRate=0, isf=0, carbRatio=0, targetBg=0)], insulinDuration=300, carbEntry=1, maxBolus=13000)]), cgmSettings=PumpCgmSettings(highGlucoseAlert=PumpGlucoseAlertSettings(mgPerDl=210, enabled=1, duration=60, status=4), lowGlucoseAlert=PumpGlucoseAlertSettings(mgPerDl=90, enabled=1, duration=15, status=4)))
2024-10-07 08:19:06 INFO Current Nightscout profile: {'_id': '66ffe28864ce8e0002f31716', 'defaultProfile': 'Mar3', 'store': {'Sep 2': {'dia': 3.5, 'carbratio': [{'time': '00:00', 'value': 12, 'timeAsSeconds': 0}], 'carbs_hr': 20, 'delay': 20, 'sens': [{'time': '00:00', 'value': 54, 'timeAsSeconds': 0}], 'timezone': 'US/Eastern', 'basal': [{'time': '00:00', 'value': 0.75, 'timeAsSeconds': 0}], 'target_low': [{'time': '00:00', 'value': 0, 'timeAsSeconds': 0}], 'target_high': [{'time': '00:00', 'value': 0, 'timeAsSeconds': 0}], 'startDate': '1970-01-01T00:00:00.000Z', 'units': 'mg/dl'}, 'Feb8': {'dia': '5.0', 'carbratio': [{'time': '00:00', 'timeAsSeconds': 0, 'value': 15}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}], 'carbs_hr': '20', 'delay': '20', 'sens': [{'time': '00:00', 'timeAsSeconds': 0, 'value': 75}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}], 'basal': [{'time': '00:00', 'timeAsSeconds': 0, 'value': 0.73}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}], 'target_low': [{'time': '00:00', 'timeAsSeconds': 0, 'value': 90}], 'target_high': [{'time': '00:00', 'timeAsSeconds': 0, 'value': 210}], 'timezone': 'America/New_York', 'startDate': '1970-01-01T00:00:00.000Z', 'units': 'mg/dl'}, 'Feb24': {'dia': '5.0', 'carbratio': [{'time': '00:00', 'timeAsSeconds': 0, 'value': 15}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}], 'carbs_hr': '20', 'delay': '20', 'sens': [{'time': '00:00', 'timeAsSeconds': 0, 'value': 75}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}], 'basal': [{'time': '00:00', 'timeAsSeconds': 0, 'value': 0.765}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}], 'target_low': [{'time': '00:00', 'timeAsSeconds': 0, 'value': 90}], 'target_high': [{'time': '00:00', 'timeAsSeconds': 0, 'value': 210}], 'timezone': 'America/New_York', 'startDate': '1970-01-01T00:00:00.000Z', 'units': 'mg/dl'}, 'Mar3': {'dia': '5.0', 'carbratio': [{'time': '00:00', 'timeAsSeconds': 0, 'value': 15}, {'time': '11:00', 'timeAsSeconds': 39600, 'value': 16}, {'time': '15:00', 'timeAsSeconds': 54000, 'value': 17}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}], 'carbs_hr': '20', 'delay': '20', 'sens': [{'time': '00:00', 'timeAsSeconds': 0, 'value': 75}, {'time': '11:00', 'timeAsSeconds': 39600, 'value': 75}, {'time': '15:00', 'timeAsSeconds': 54000, 'value': 75}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}], 'basal': [{'time': '00:00', 'timeAsSeconds': 0, 'value': 0.7}, {'time': '11:00', 'timeAsSeconds': 39600, 'value': 0.7}, {'time': '15:00', 'timeAsSeconds': 54000, 'value': 0.7}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}], 'target_low': [{'time': '00:00', 'timeAsSeconds': 0, 'value': 90}], 'target_high': [{'time': '00:00', 'timeAsSeconds': 0, 'value': 210}], 'timezone': 'America/New_York', 'startDate': '1970-01-01T00:00:00.000Z', 'units': 'mg/dl'}, 'Feb1': {'dia': '5.0', 'carbratio': [{'time': '00:00', 'timeAsSeconds': 0, 'value': 12}, {'time': '10:30', 'timeAsSeconds': 37800, 'value': 13}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}], 'carbs_hr': '20', 'delay': '20', 'sens': [{'time': '00:00', 'timeAsSeconds': 0, 'value': 75}, {'time': '10:30', 'timeAsSeconds': 37800, 'value': 75}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}], 'basal': [{'time': '00:00', 'timeAsSeconds': 0, 'value': 0.763}, {'time': '10:30', 'timeAsSeconds': 37800, 'value': 0.763}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}], 'target_low': [{'time': '00:00', 'timeAsSeconds': 0, 'value': 90}], 'target_high': [{'time': '00:00', 'timeAsSeconds': 0, 'value': 210}], 'timezone': 'America/New_York', 'startDate': '1970-01-01T00:00:00.000Z', 'units': 'mg/dl'}, 'Feb7': {'dia': '5.0', 'carbratio': [{'time': '00:00', 'timeAsSeconds': 0, 'value': 12}, {'time': '10:30', 'timeAsSeconds': 37800, 'value': 13}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}], 'carbs_hr': '20', 'delay': '20', 'sens': [{'time': '00:00', 'timeAsSeconds': 0, 'value': 75}, {'time': '10:30', 'timeAsSeconds': 37800, 'value': 75}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}], 'basal': [{'time': '00:00', 'timeAsSeconds': 0, 'value': 0.73}, {'time': '10:30', 'timeAsSeconds': 37800, 'value': 0.73}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}, {'time': '00:00', 'timeAsSeconds': 0, 'value': 0}], 'target_low': [{'time': '00:00', 'timeAsSeconds': 0, 'value': 90}], 'target_high': [{'time': '00:00', 'timeAsSeconds': 0, 'value': 210}], 'timezone': 'America/New_York', 'startDate': '1970-01-01T00:00:00.000Z', 'units': 'mg/dl'}}, 'startDate': '2024-10-04T08:41:43.804253-04:00', 'mills': 1727963960897, 'units': 'mg/dl', 'created_at': '2024-10-04T12:41:44.146Z', 'srvModified': 1728045688125}
2024-10-07 08:19:06 INFO compare_profiles profile names: device: dict_keys(['Mar3', 'Feb24', 'Feb8', 'Feb7', 'Feb1']) ns: dict_keys(['Sep 2', 'Feb8', 'Feb24', 'Mar3', 'Feb1', 'Feb7'])
2024-10-07 08:19:06 INFO Profile Feb7 identical between pump and nightscout
2024-10-07 08:19:06 INFO Profile Feb1 identical between pump and nightscout
2024-10-07 08:19:06 INFO Profile Mar3 identical between pump and nightscout
2024-10-07 08:19:06 INFO Profile Feb8 identical between pump and nightscout
2024-10-07 08:19:06 INFO Profile Feb24 identical between pump and nightscout
2024-10-07 08:19:06 INFO No Nightscout profile changes
2024-10-07 08:19:06 INFO Pump and Nightscout profiles up to date
2024-10-07 08:19:06 INFO UpdateProfiles completed with update required: False
Traceback (most recent call last):
File "/usr/local/bin/tconnectsync", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.10/dist-packages/tconnectsync/init.py", line 123, in main
added, last_event_id = TandemSourceProcessTimeRange(tconnect, nightscout, tconnectDevice, pretend=args.pretend, features=args.features).process(time_start, time_end)
File "/usr/local/lib/python3.10/dist-packages/tconnectsync/sync/tandemsource/process.py", line 98, in process
logger.info("Processed %d events. Last event ID seen: %d" % (processed_count, last_event_id))
TypeError: %d format: a real number is required, not NoneType

Additional context
Add any other context about the problem here.

@vonstein2002 vonstein2002 added the setup help For help related to setting up tconnectsync label Oct 7, 2024
@vonstein2002
Copy link
Author

vonstein2002 commented Oct 7, 2024

Same errors show up in 2.1.4

Traceback (most recent call last):
File "/usr/local/bin/tconnectsync", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.10/dist-packages/tconnectsync/init.py", line 123, in main
added, last_event_id = TandemSourceProcessTimeRange(tconnect, nightscout, tconnectDevice, pretend=args.pretend, features=args.features).process(time_start, time_end)
File "/usr/local/lib/python3.10/dist-packages/tconnectsync/sync/tandemsource/process.py", line 98, in process
logger.info("Processed %d events. Last event ID seen: %d" % (processed_count, last_event_id))
TypeError: %d format: a real number is required, not NoneType

@rstutsman
Copy link
Contributor

I'm having the same issue/same symptoms as well.

@jwoglom
Copy link
Owner

jwoglom commented Oct 8, 2024

@vonstein2002 @rstutsman Sorry for the errors folks. 2.1.5 should have a fix. Let me know if you run into any other issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
setup help For help related to setting up tconnectsync
Projects
None yet
Development

No branches or pull requests

3 participants