StephenBlackWasAlreadyTaken / xDrip

Android Application that collects dex signals, allows calibrations, and uploads
GNU General Public License v3.0
208 stars 176 forks source link

Please clarify document format for uploading BG data via a mongo uri #113

Closed Cagier closed 9 years ago

Cagier commented 9 years ago

I note the ability option to add a mongodb uri as an external xDrip source under the WiFi Receivers option. I think this was mainly for use with dexterity (wifi wixel) but that repository indicates that this feature was not implemented on the xDrip side yet - but that may be an old comment so I'm not sure if this is working/supported yet (hopefully it is!)

Anyway, I have built an alternative uploader that ideally needs to piggyback on this method to get the data into the xDrip but I'm not clear what the document should look like in the mongo db (although I have a reasonable idea from peering into the dexdrip and dexterity code).

I had some issues getting dexterity to compile for me so I wonder if anyone reading this has a sample mongo document showing the BG entry field names ("RawVaue", "CaptureDateTime", etc.???) and the expected document format so that I can make sure that I get mine in the right format please. (I'm also presuming the name of the collection does not matter, as long as it is specified in the xDrip wifi receivers dialog. However, if there is a recommended collection name then please advise.)

Finally, is it OK to use the existing mongolab repository for this new collection or should it be separate. And should it matter if it is a v2 or v3 database?

Many thanks!

Cagier commented 9 years ago

OK, I could have really done with some help here but I know everyone is busy and there are much higher priorities on this project. I worked this out after many many hours of sweat and tears. v3 is working fine for me now and my configuration is working end-to-end now (kinda). Gonna close this issue anyway.