{"action":"created","issue":{"url":"https://api.github.com/repos/Negrero/tachograph-card-structure/issues/1","labels_url":"https://api.github.com/repos/Negrero/tachograph-card-structure/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Negrero/tachograph-card-structure/issues/1/comments","events_url":"https://api.github.com/repos/Negrero/tachograph-card-structure/issues/1/events","html_url":"https://github.com/Negrero/tachograph-card-structure/issues/1","id":89080864,"number":1,"title":"El parseo bloque Driver Activity no es correcta","user":{"login":"masalinas","id":1216181,"avatar_url":"https://avatars.githubusercontent.com/u/1216181?v=3","gravatar_id":"","url":"https://api.github.com/users/masalinas","html_url":"https://github.com/masalinas","followers_url":"https://api.github.com/users/masalinas/followers","following_url":"https://api.github.com/users/masalinas/following{/other_user}","gists_url":"https://api.github.com/users/masalinas/gists{/gist_id}","starred_url":"https://api.github.com/users/masalinas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masalinas/subscriptions","organizations_url":"https://api.github.com/users/masalinas/orgs","repos_url":"https://api.github.com/users/masalinas/repos","events_url":"https://api.github.com/users/masalinas/events{/privacy}","received_events_url":"https://api.github.com/users/masalinas/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-06-17T17:47:20Z","updated_at":"2015-06-26T10:55:19Z","closed_at":"2015-06-18T07:34:50Z","body":"He estado parseando algunos ficheros TGD de tarjetas de conductores y me he fijado que el parseo para calcular el bloque de Driver Activity, lo hace erroneamente:\r\n\r\nfileBlockTGD.getDriver_activity_data().getActivityDailyRecords() solo devuelve un solo registro siempre con fecha Thu Jan 01 01:00:22 CET 1970 y en la misma agrupa toda la colección ActivityChangeInfo, he visto también que no coinciden todos los registros ActivityChangeInfo con los que existen en realidad. \r\n\r\nEstoy usando readesm para comparar lo que lee la herramienta con lo que lee tus fuentes.\r\n\r\nSabes si está corregido?, estoy en lo cierto?\r\n\r\nSi quieres más detalles tengo el TGD de ejemplo que estoy usando.\r\n\r\nGracias ..."},"comment":{"url":"https://api.github.com/repos/Negrero/tachograph-card-structure/issues/comments/115645665","html_url":"https://github.com/Negrero/tachograph-card-structure/issues/1#issuecomment-115645665","issue_url":"https://api.github.com/repos/Negrero/tachograph-card-structure/issues/1","id":115645665,"user":{"login":"masalinas","id":1216181,"avatar_url":"https://avatars.githubusercontent.com/u/1216181?v=3","gravatar_id":"","url":"https://api.github.com/users/masalinas","html_url":"https://github.com/masalinas","followers_url":"https://api.github.com/users/masalinas/followers","following_url":"https://api.github.com/users/masalinas/following{/other_user}","gists_url":"https://api.github.com/users/masalinas/gists{/gist_id}","starred_url":"https://api.github.com/users/masalinas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masalinas/subscriptions","organizations_url":"https://api.github.com/users/masalinas/orgs","repos_url":"https://api.github.com/users/masalinas/repos","events_url":"https://api.github.com/users/masalinas/events{/privacy}","received_events_url":"https://api.github.com/users/masalinas/received_events","type":"User","site_admin":false},"created_at":"2015-06-26T10:55:19Z","updated_at":"2015-06-26T10:55:19Z","body":"Ok he añadido el cambio de actividad como hace readesm para asemejarme a el, teniendo en cuenta la duración de los intervalos, y por lo tanto pintando con colores como hace él. He detectado un error en el mismo fichero de ejemplo que te he enviado, te lo comento:\r\n\r\nEl día 24/06/2013 que corresponde al tercer día de actividad de ese fichero TGD si te fijas existen para ese día 15 cambios de actividad correctamente pero los dos últimos (item 14 y 15), son erroneos:\r\n\r\nSegún Readesm:\r\nItem      Hora  Estado\r\n...          ...         ...\r\n13          9:26   CONDUCCION (correcto)\r\n14         11:00  PAUSA/DESCANSO (correcto)\r\n15         11:05  PAUSA/DESCANSO. (correcto)\r\n\r\nSegún tu librería\r\nItem       Hora  Estado\r\n...          ...         ...\r\n13          9:26   CONDUCCION (correcto)\r\n14          0:0     PAUSA/DESCANSO (error)\r\n15          0:0     PAUSA/DESCANSO. (error)\r\n\r\nEs decir los dos último items los pones a 0:0\r\n\r\nGracias y un saludo."}}