nightscout / AndroidAPS

Opensource automated insulin delivery system (closed loop)
https://wiki.aaps.app
GNU Affero General Public License v3.0
696 stars 1.7k forks source link

No syncing between NSClients -> AAPS #1743

Closed zwackelfuss closed 2 years ago

zwackelfuss commented 2 years ago

I did not notice it first, but now I am sure: Actions taken from NSClient are not synced to AAPS master, for example entering carbs or setting a temp target like "eating soon" , although they are synced to Nightscout.

Syncing "the other way" from AAPS to NSClients and Nightscout works fine.

As using NSClient to handle the most common actions remotely without the need to have kid's AAPS phone in hands, I would be really happy if syncing would work properly again (as it did in 2.8, at least for us).

As always: thank you!

bchris21 commented 2 years ago

Same here, tested yesterday with Dev-K and nothing synced (carbs, TBR, etc).

MilosKozak commented 2 years ago

i just tested it on latest dev and it works. i'd need an example with logs from both NSClient and master (latest dev version)

reijoahola-nightscout commented 2 years ago

I tested this with the latest dev-k build 2022.05.16 and NSClient -> AAPS syncing worked. Are you sure that you have enabled NSClient / Synchronisation settings in AAPS app Config Builder ?

bchris21 commented 2 years ago

i just tested it on latest dev and it works. i'd need an example with logs from both NSClient and master (latest dev version)

Dev-K on both AAPS and NSClient.

Logs attached from both. Logs exported right after trying to send bolus, TBR and insulin (record only) from NSClient to AAPS.

Had same issue in the past and option for slower data send was added which never fixed the issue.

AndroidAPS_LOG_1652895704948.log.zip

AndroidAPS_LOG_1652895738792.log.zip

zwackelfuss commented 2 years ago

Yes, syncing in AAPS settings (accepts carbs, accept temp targets...) is enabled.

Tried it again: setting a temp target of 89 for 4 minutes in NSClient:

image

TT is uploaded to Nightscout...

image

.. and NS-Website accepts this TT:

image

But in AAPS, TT of 89 is not displayed, loop runs still normal target.

image

Log AAPS master: AndroidAPS_LOG_1652897739962.log.zip

Log NSClient: AndroidAPS_LOG_1652897809214.log.zip

MilosKozak commented 2 years ago

I see there are 2 TTs with similiar time. there is a bug in NS. could you try it with dev version of NS?

bchris21 commented 2 years ago

Just tried with both Dev-k versions in NSClient and AAPS.

For me TBR is not passed to Nightscout at all.

NSClient TBR 150mg/dl Screenshot_20220519_235838.jpg

NSClient not passing the TBR Screenshot_20220519_235950.jpg

Nightscout not reflecting the TBR Screenshot_20220520_000035.jpg

TBR not passed to AAPS Screenshot_20220520_000229.jpg

Screenshot_20220520_000703.jpg

Screenshot_20220520_000800.jpg

MilosKozak commented 2 years ago

I mean NS not NSClient

bchris21 commented 2 years ago

NS upgraded to Dev (14.2.6 - 555f699e)

I canceled a TBR but still nothing is passed on NSClient.

Screenshot_20220526_194815.jpg

Screenshot_20220526_194726.jpg

Screenshot_20220526_194932.jpg

Any advice for further troubleshooting?

Thank you in advance.

Chris

MilosKozak commented 2 years ago

if you mean TT (not TBR) i tested now and it's working guesing you don't have it enable in NSclient synchronization on AAPS side

bchris21 commented 2 years ago

Issue fixed for my case.

Built and installed NSClient2 which works fine. Upgrading to NS Dev did not work.

Apparently something was corrupted on previous installation.

Again thanks for your support.