Faifly / xDrip

Port from Nightscout xDrip+ to iOS
MIT License
27 stars 5 forks source link

NS formatting incompatible with third-party apps #348

Open LiroyvH opened 3 years ago

LiroyvH commented 3 years ago

Hi,

It looks like the way xDrip sends the data to nightscout makes it incompatible with any third-party apps. I cannot get any third-party app to read this data. Nightscout MenuBar, Spike, xDrip4iO5; you name it: it all doesn't work. This is not a problem when using other apps, such as Spike or xDrip4iO5 as uploader - then each and every third-party app will successfully download the BG and treatment data from Nightscout. Any treatment added with xDrip isn't processed by any third-party app. The formatting appears to be different:

xDrip examples:

    1634687401846   119     "xDrip iOS"
    1634687101559   119     "xDrip iOS"

Examples of other apps where no problem occurs:

"2021-10-18T13:16:15.874Z"  1634562975874   149 "Flat"  "DexcomG6"
"2021-10-18T13:11:15.928Z"  1634562675928   150 "Flat"  "DexcomG6"

It looks like xDrip does not upload the full date & time next to EPOCH-formatting, nor does it upload a trend (or keep that field empty). Could this be fixed to follow the formatting of all the other apps by any chance? :) I think at the very least the full date is required. This was a problem with Tomato as well. Thanks!