Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashed when it can't find the day... #33

Open
nluetzge opened this issue May 18, 2018 · 0 comments
Open

Crashed when it can't find the day... #33

nluetzge opened this issue May 18, 2018 · 0 comments

Comments

@nluetzge
Copy link

Hi! This is a really usefull tool. I have no idea about java but I got it to run. I would like to export all my data! Because the offical export does not give me the trackpoints but your program does. However when I try to export more days the program stops with an error at some point looking like this

> Exported 20170622
> Exported 20170621
> Exported 20170902
> Exported 20170903
/Users/nluetzge/Private/moves/elizabeth-master/lib/output/JsonExport.js:26
  fs.writeFile(this.getFilename(day.date), JSON.stringify(day), function(err) {
                                    ^

TypeError: Cannot read property 'date' of undefined

I assume this is because there might not be data for each day and the code does not have a way to deal with this if that happens. Do you think this is fixable? Also it would be great to get json files for a total year instead of one just for each day. Again I don't know much about Java to do this myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant