Autor Thema: Importing Data using CSV File  (Gelesen 7113 mal)

Offline Andi

  • Android-Smartphone-Fan
  • Special Member
  • *****
  • Beiträge: 7587
  • Country: de
  • Oben ohne find ich gut
  • Diabetestyp: DM 1
  • Therapie: Insulin-Pen
Re: Importing Data using CSV File
« Antwort #10 am: August 22, 2005, 21:24 »
i have to correct my previous posting   :patsch:

i´ve tested with this lines

DAY;TIME;KETONE;BG_LEVEL;CH_BE_KHE;BOLUS;BASAL;BLOODPRESSURE;REMARK
22.08.2005;2:48;0;289;0;0;0;0;0
21.08.2005;22:00;0;391;0;0;0;0;0
21.08.2005;17:21;0;142;0;0;0;0;0
21.08.2005;10:32;0;73;0;0;0;0;0

look at the time syntax "hh:mm" not "hh:mm:ss"

 i´m sorry

Hmmmm ... Very simple but effectfull  :rotwerd:

I looked for my data, before i used sidiary:

03.09.2004;06:41;;;;6,0;;;
03.09.2004;06:52;;;8,0;;;;
03.09.2004;10:51;;98;;;;;
03.09.2004;12:14;;;20,0;;;;
03.09.2004;12:14;;;;14,0;;;
03.09.2004;15:13;;118;;;;;

So, i think, the '0' (zero) do not need to filled up ...


Andi
.                                                       ,---> SiDiary ==> Bericht ist für den DOC
FSL3 ---> JugGluco ---> xDrip ---{
                                                        `---> GARMIN Fenix6PRO ==> BZ Live ist für mich! ;D

Offline wam67

  • Newbie
  • *
  • Beiträge: 5
Re: Importing Data using CSV File
« Antwort #11 am: August 22, 2005, 22:37 »
I don't know what the problem is . . . . . still no data.  Even after I changed the date format not to include seconds.  I also tried taking out the "0", nothing yet.

Thanks for your patience.   :)

Is there a way to debug the operation?   ???

Thanks,


Walter

Offline Quo

  • Full Member
  • ***
  • Beiträge: 155
  • Country: 00
  • Diabetestyp: DM 1
  • Therapie: Insulin-Pumpe
Re: Importing Data using CSV File
« Antwort #12 am: August 23, 2005, 02:24 »
To debug, the easiest way might be to enter some sample data, and export it. Then you can model your file after the exported data.
I have been successful with files looking like that:
DAY;TIME;KETONE;BG_LEVEL;CH_BE_KHE;BOLUS;BASAL;BLOODPRESSURE;WEIGHT;REMARK
2005-06-17;17:17;;093;;;;;96.1;
2005-06-17;17:26;;;5;6.2;;;;17:26 1.5 hochgesetzt||

Entries in the "small hours" are formatted with padded zeroes:
2005-05-03;00:23;;065;0.5;;;;;
2005-05-03;02:55;;093;;;;;;
2005-05-03;08:04;;087;;;;;;


That at least has been the date format I got from a tentative export. I arranged my script reformatting my data for Sidiary so comments got a leading timestamp and a trailing newline (the double-pipe "||") since SiDiary doesn't maintain the association of the comments with the entry they were made to, but accumulates them all for one day. (And, consecutively, on export duplicates them for each and every line exported!) So data into SiDiary is a one-way trip - keep your backups around.
Formatted this way, the comments align in a way that keeps them usable.
I haven't found how to import/export Sport and other fields yet.

Good luck,
   Tatjana


Offline Alf

  • Administrator
  • Special Member
  • *****
  • Beiträge: 6246
  • Country: 00
  • Mein Name ist Shumway. Gordon Shumway.
    • Diabetikertagebuch
  • Diabetestyp: ---
  • Therapie: ---
Re: Importing Data using CSV File
« Antwort #13 am: August 23, 2005, 10:24 »
Wow,

what a thread when I'm not online for some hours...   :staun:

So of course there's a debug option. ;)

If you would send me your csv file to my personal email address, I will debug it immediately!

Please add some details about your current windows datetime settings.

Cheers, Alf.
DM 1, ICT mit Lantus/Humalog/Insuman Rapid, Freestyle Libre, SiDiary Win & Android
Diabetes Software, Windhorst, Helden der Kindheit