{"action":"created","issue":{"url":"https://api.github.com/repos/pwaldhauer/elizabeth/issues/29","repository_url":"https://api.github.com/repos/pwaldhauer/elizabeth","labels_url":"https://api.github.com/repos/pwaldhauer/elizabeth/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/pwaldhauer/elizabeth/issues/29/comments","events_url":"https://api.github.com/repos/pwaldhauer/elizabeth/issues/29/events","html_url":"https://github.com/pwaldhauer/elizabeth/issues/29","id":131656574,"number":29,"title":"Day One 2 breaks exporter","user":{"login":"davemee","id":183251,"avatar_url":"https://avatars.githubusercontent.com/u/183251?v=3","gravatar_id":"","url":"https://api.github.com/users/davemee","html_url":"https://github.com/davemee","followers_url":"https://api.github.com/users/davemee/followers","following_url":"https://api.github.com/users/davemee/following{/other_user}","gists_url":"https://api.github.com/users/davemee/gists{/gist_id}","starred_url":"https://api.github.com/users/davemee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davemee/subscriptions","organizations_url":"https://api.github.com/users/davemee/orgs","repos_url":"https://api.github.com/users/davemee/repos","events_url":"https://api.github.com/users/davemee/events{/privacy}","received_events_url":"https://api.github.com/users/davemee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-05T14:21:45Z","updated_at":"2016-02-06T21:32:52Z","closed_at":null,"body":"The application storage has both changed names, and deprecated features - iCloud and Dropbox are no longer supported."},"comment":{"url":"https://api.github.com/repos/pwaldhauer/elizabeth/issues/comments/180869885","html_url":"https://github.com/pwaldhauer/elizabeth/issues/29#issuecomment-180869885","issue_url":"https://api.github.com/repos/pwaldhauer/elizabeth/issues/29","id":180869885,"user":{"login":"davemee","id":183251,"avatar_url":"https://avatars.githubusercontent.com/u/183251?v=3","gravatar_id":"","url":"https://api.github.com/users/davemee","html_url":"https://github.com/davemee","followers_url":"https://api.github.com/users/davemee/followers","following_url":"https://api.github.com/users/davemee/following{/other_user}","gists_url":"https://api.github.com/users/davemee/gists{/gist_id}","starred_url":"https://api.github.com/users/davemee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davemee/subscriptions","organizations_url":"https://api.github.com/users/davemee/orgs","repos_url":"https://api.github.com/users/davemee/repos","events_url":"https://api.github.com/users/davemee/events{/privacy}","received_events_url":"https://api.github.com/users/davemee/received_events","type":"User","site_admin":false},"created_at":"2016-02-06T21:32:52Z","updated_at":"2016-02-06T21:32:52Z","body":"I've forked it and created a DayOne2Export.js, butchered from your DayOneExport.js.\r\n\r\nHowever, I'm a little over my head - I'm getting an error you might be able to shed some light on.\r\n\r\n```\r\ninvalid document source \r\n@#[line:0,col:undefined]\r\n/usr/local/lib/node_modules/elizabeth/node_modules/dayone/node_modules/plist/lib/parse.js:45\r\n  if (doc.documentElement.nodeName !== 'plist') {\r\n         ^\r\n\r\nTypeError: Cannot read property 'documentElement' of undefined\r\n    at Object.parse (/usr/local/lib/node_modules/elizabeth/node_modules/dayone/node_modules/plist/lib/parse.js:45:10)\r\n    at DayOneEntry.fromOutputFormat [as fromFile] (/usr/local/lib/node_modules/elizabeth/node_modules/dayone/lib/DayOneEntry.js:58:23)\r\n    at /usr/local/lib/node_modules/elizabeth/node_modules/dayone/lib/DayOne.js:49:19\r\n    at Array.forEach (native)\r\n    at DayOne.list (/usr/local/lib/node_modules/elizabeth/node_modules/dayone/lib/DayOne.js:47:30)\r\n    at DefaultPlugin.loadEntries (/usr/local/lib/node_modules/elizabeth/lib/output/DayOne2Export.js:201:17)\r\n    at DefaultPlugin.exportDay (/usr/local/lib/node_modules/elizabeth/lib/output/DayOne2Export.js:75:8)\r\n    at /usr/local/lib/node_modules/elizabeth/lib/Elizabeth.js:143:17\r\n    at Request._callback (/usr/local/lib/node_modules/elizabeth/node_modules/moves-api/lib/MovesApi.js:126:13)\r\n    at Request.self.callback (/usr/local/lib/node_modules/elizabeth/node_modules/request/request.js:123:22)\r\n```\r\n\r\nwhen I tell it to use the new exporter (which I know it's pulling in - I have it dump out 'this' around line 198 inside `loadEntries()` which gives me this:\r\n\r\n```\r\ndavem$ ellie export --dayStart 20160201 --dayEnd 20160204\r\nWelcome to Elizabeth, your Moves.app exporter!\r\n----------------------------------------------\r\n\r\n> Using DayOne2Export to export 3 days!\r\n\r\n> Using DayOne2 directory: /Users/davem/Library/Group Containers/5U8NS4GX82.dayoneapp2/Data/Auto Import/Default Journal.dayone/\r\n\r\nDefaultPlugin {\r\n  help: \r\n   { name: 'DayOne2Export',\r\n     description: 'Exports into your Day One 2',\r\n     options: \r\n      { directory: 'DayOne 2 data directory. (default: auto, only works with Day One 2 Mobile Import)',\r\n        overwrite: 'Overwrite existing imported entries. If set to false they will be skipped. (default: false)',\r\n        tag: 'The unique tag that will be added to the generated entries. (default: moves-import)',\r\n        timezone: 'Timezone for new entries. (default: Europe/London)' } },\r\n  options: \r\n   { directory: '/Users/davem/Library/Group Containers/5U8NS4GX82.dayoneapp2/Data/Auto Import/Default Journal.dayone/',\r\n     overwrite: false,\r\n     tag: 'moves-import',\r\n     timezone: 'Europe/London',\r\n     output: 'DayOne2Export',\r\n     outputFile: '%date%_plaintext.txt',\r\n     days: '7' },\r\n  entryCache: null,\r\n  dayOne: \r\n   DayOne {\r\n     options: { directory: '/Users/davem/Library/Group Containers/5U8NS4GX82.dayoneapp2/Data/Auto Import/Default Journal.dayone/' } },\r\n  gmap: \r\n   DefaultPlugin {\r\n     help: \r\n      { name: 'GoogleMapExport',\r\n        description: 'Exports as a static google map',\r\n        options: [Object] },\r\n     options: \r\n      { outputFile: '%date%.png',\r\n        dateFormat: 'YYYYMMDD',\r\n        size: '800x450',\r\n        zoomFactor: 13,\r\n        format: 'jpg',\r\n        addPlaces: true } } }\r\n```\r\n\r\nAny ideas?"}}