Closed skritland closed 1 year ago
@skritland - It seems it is normal to receive the data from CareLink in UTC, after all the data received, you should also see a key named 'lastConduitDateTime' and this should be in the correct timezone. If it isn't, this points to the wrong timezone being set in your CareLink account. It's worth checking this. It looks like this package uses that time formatting to transform the data into a way that Nightscout understands.
Another thing to check is that even though you have the correct TZ set in your docker-compose, do you have it set correctly in your Nightscout profile?
Note, I didn't write this package, I've just been tinkering a lot with it today and this is what I've come up with. Hopefully it's one of these things.
I'm using "Europe/Warsaw" timezone (it is now UTC+ 2 h) in both mongo and nightscout containers. The same is set in the nightscout profile (however, changing that to UTC changes nothing). I don't see any option to change timezone in my CareLink settings, but when I use xDrip+ with CareLink all is displayed correctly. The "lastConduitDateTime" in logs lokks OK: '2023-08-06T20:46:46.727+02:00'. For me the most suspicious is the part from the logs I attached in the first post: dateString: '2023-08-06T20:46:00.000Z',
because in fact that measurement was taken at 18:46 UTC = 20:46 local time, but suffix 'Z' is suggesting UTC time. I've checked mongo database entries
content and it also was '2023-08-06T20:46:00.000Z' instead of 18:46.
Please try again, and make sure that you are testing an up to date image; I think the publication to dockerhub takes some time. Moments before you submitted this Andy created a patch for this issue, so it's probably just a delayed publishing to dockerhub.
It would be great to check the medicalDeviceFamily
and kind
fields.
https://github.com/nightscout/nightscout-connect/commit/9d0e0bef45cce74bb89d1aa4ef4083c80e814f55
https://github.com/nightscout/nightscout-connect/commit/cfa9a50e4de6447ae9c6f49b50811ecdd1f4bd78
Thanks, I didn't notice the update from yesterday. After pulling new docker image everything works ok.
Hello,
I've started using nightscout with nightscout-connect plugin using docker. I've configured everything and no matter what combination of timezones I'm setting, I get always shifted data. It looks like mesurements time from CareLink is in local time but is treated like UTC time. Below more information:
docker-compose.yaml:
extract from docker logs: