{"action":"created","issue":{"url":"https://api.github.com/repos/Runalyze/Runalyze/issues/1638","labels_url":"https://api.github.com/repos/Runalyze/Runalyze/issues/1638/labels{/name}","comments_url":"https://api.github.com/repos/Runalyze/Runalyze/issues/1638/comments","events_url":"https://api.github.com/repos/Runalyze/Runalyze/issues/1638/events","html_url":"https://github.com/Runalyze/Runalyze/issues/1638","id":122537802,"number":1638,"title":"Replace Perl .FIT importer with PHP","user":{"login":"undertrained","id":8660404,"avatar_url":"https://avatars.githubusercontent.com/u/8660404?v=3","gravatar_id":"","url":"https://api.github.com/users/undertrained","html_url":"https://github.com/undertrained","followers_url":"https://api.github.com/users/undertrained/followers","following_url":"https://api.github.com/users/undertrained/following{/other_user}","gists_url":"https://api.github.com/users/undertrained/gists{/gist_id}","starred_url":"https://api.github.com/users/undertrained/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/undertrained/subscriptions","organizations_url":"https://api.github.com/users/undertrained/orgs","repos_url":"https://api.github.com/users/undertrained/repos","events_url":"https://api.github.com/users/undertrained/events{/privacy}","received_events_url":"https://api.github.com/users/undertrained/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Runalyze/Runalyze/labels/refactor","name":"refactor","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-16T15:58:19Z","updated_at":"2015-12-16T16:18:18Z","closed_at":null,"body":"We should not have to rely on Perl in order to import .FIT files (think chrooted webservers, e.g.).\r\n\r\nThere seem to be a few PHP libraries that can read .FIT, e.g. (cf. https://phppackages.org/s/garmin):\r\n * https://github.com/adriangibbons/php-fit-file-analysis\r\n * https://github.com/reconinstruments/fit-php\r\n\r\nWould it be possible to convert our importer to use one of these?\r\n"},"comment":{"url":"https://api.github.com/repos/Runalyze/Runalyze/issues/comments/165162415","html_url":"https://github.com/Runalyze/Runalyze/issues/1638#issuecomment-165162415","issue_url":"https://api.github.com/repos/Runalyze/Runalyze/issues/1638","id":165162415,"user":{"login":"laufhannes","id":8313118,"avatar_url":"https://avatars.githubusercontent.com/u/8313118?v=3","gravatar_id":"","url":"https://api.github.com/users/laufhannes","html_url":"https://github.com/laufhannes","followers_url":"https://api.github.com/users/laufhannes/followers","following_url":"https://api.github.com/users/laufhannes/following{/other_user}","gists_url":"https://api.github.com/users/laufhannes/gists{/gist_id}","starred_url":"https://api.github.com/users/laufhannes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laufhannes/subscriptions","organizations_url":"https://api.github.com/users/laufhannes/orgs","repos_url":"https://api.github.com/users/laufhannes/repos","events_url":"https://api.github.com/users/laufhannes/events{/privacy}","received_events_url":"https://api.github.com/users/laufhannes/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T16:18:18Z","updated_at":"2015-12-16T16:18:18Z","body":"+1\r\n\r\nNot sure, how much work is required. It seems, that in both cases the complete data is stored in memory (as class properties). With perl we are able to read the dump line by line.\r\n\r\nThe first repo looks more powerful, the second one looks much cleaner."}}