The daily export contains a file named XXXX_SLEEP_DATA.fit. There is a monitoring field containing the lines for the sleep data, but I don't know the format. Anyone knows how to parse it?
First 10 of 366 lines:
mesg_num 274 366 row(s) field 0 69176149181326119060207617718180629161004783 561781351801476018760316199181126120060002483 217818317510551165620752213178615217754004583 831771551802206017160208608918110361185600025082 122178172181102611016131622051812096111261002183 193175371791855810058158571991792305810458005083 187176801792255919059218581141803460995900083 196177133178119599859135581491802525821158002083 16917621217720657595830572551797358107580019682 3177247179216006015659175180526023859001083