pwaldhauer / elizabeth Goto Github PK
View Code? Open in Web Editor NEWMoves.app data exporter
Moves.app data exporter
Left this after so many failed attempts months ago but still interested if anyone has it working.. anything new since to make it work as follows?:
using Dropbox..
ellie export --output DayOneExport --yesterday
still yields.. TypeError: Cannot read property 'nodeName' of null
I reinstall did a clean install of my system, but reinstalled everything I thought I needed for ellie
to work. However, now I'm getting this error when running ellie init
:
var configFilePath = path.homedir() + '/.elizabeth.json';
^
TypeError: path.homedir is not a function
Any idea what could be happening?
Seeing this issue whenever I attempt to use the DayOneExport function:
invalid document source
@#[line:0,col:undefined]
Skipping malformed entry: 90D0162D9F2F4D29944A8DEC1371FBD9.doentry
> Exported 20140331
No entry is actually created. I'm not sure what the error is referring to either. What seems to be going on here?
when I first ran ellie.js init, it halted because 3000 port was busy.
every time after when I try to run it again I'm getting a message that I need to delete config.json first, but can't find it! can you please help?
$ ./ellie.js init
Hello there. Just let me check if you already have a config.
Found a config.json. If you want to recreate it, please delete it first.
The application storage has both changed names, and deprecated features - iCloud and Dropbox are no longer supported.
Hey, nice app. Perhaps would fit into Slogger?
Should read complete readme.
I installed ellie via npm and then ran ellie init
. I created a new App in Moves and then entered this information into the script by copy and paste, then enter
for the clientId and clientSecret. When I opened http://localhost:3000/
in my browser it gave an error for invalid credentials.
I looked in ~/.elizabeth.json
and it didn't have the entered values.
Error 1 the init does not write the actual OAuth parameters to the file.
So I entered them manually, moved the file to ~/elizabeth.json
, ran ellie init
and then before entering any values, I copied this file into place at ~/.elizabeth.json
. It was not overwritten after entering the values back in the console.
When I finished the init script and then loaded http://localhost:3000/auth
I now get the error:
Error authenticating: invalid_client
Hi. I'm created first export with ellie in day one and program show some errors:
Using DayOneExport to export 3 days!
Using DayOne directory: /Users/konstantinpopov/Dropbox/Applications/Day One/Journal.dayone/
parseFileSync()
is deprecated. Use parseStringSync()
instead.
parseStringSync()
is deprecated. Use parse()
instead.
/usr/local/lib/node_modules/elizabeth/node_modules/plist/node_modules/xmlbuilder/lib/XMLStringifier.js:150
throw new Error("Invalid character (" + chr + ") in string: " + str +
^
Error: Invalid character (???) in string: # Daily Moves.app log
./ellie.js export --output DayOneExport
Welcome to Elizabeth, your Moves.app exporter!
Using DayOneExport to export 7 days!
Using DayOne directory: /Users/Patrick/Library/Mobile Documents/[...]
source code out of document root
@#[line:0,col:undefined]
TypeError: Cannot read property 'nodeName' of null
at Object.exports.parseStringSync (/Users/Patrick/node_modules/plist/lib/plist.js:79:26)
at Object.exports.parseFileSync (/Users/Patrick/node_modules/plist/lib/plist.js:19:19)
at /Users/Patrick/lib/output/DayOneExport.js:214:27
at Array.forEach (native)
at DefaultPlugin.loadEntries (/Users/Patrick/lib/output/DayOneExport.js:213:30)
at DefaultPlugin.exportDay (/Users/Patrick/lib/output/DayOneExport.js:70:10)
at /Users/Patrick/lib/Elizabeth.js:143:17
at Request._callback (/Users/Patrick/node_modules/moves-api/lib/MovesApi.js:126:13)
at Request.self.callback (/Users/Patrick/node_modules/request/index.js:148:22)
at Request.EventEmitter.emit (events.js:98:17)
Changed code on DayOneExport.js to include {} after the if statement on line 68. Now works fine.
if(!fs.existsSync(that.options.directory)){
cb('Directory not found: ' + that.options.directory + ', trying with Dropbox application directory.');
that.options.directory = path.join(path.homedir(), 'Dropbox/Applications/Day One/Journal.dayone/');
}
Welcome to Elizabeth, your Moves.app exporter!
----------------------------------------------
> Using DayOneExport to export 169 days!
> Using DayOne directory: <path redacted>
fs.js:543
return binding.rename(pathModule._makeLong(oldPath),
^
Error: ENOENT, no such file or directory '/Users/user/20130317.png'
at Object.fs.renameSync (fs.js:543:18)
at /usr/local/lib/node_modules/elizabeth/lib/output/DayOneExport.js:197:12
at Object.oncomplete (fs.js:107:15)
I installed the app, then upon running the init command, I created a google app, entered the credentials, then ran the local host command to get the Moves token. I got this string back from Moves:
{"error":"invalid_request"}
I'm thinking of building another Exporter. (For Atlassian Confluence blog posts)
There's some nice logic in DayOneExport.prototype.createText Lines 111-174 which could be used by other types of Exporter save for some formatting.
I'll probably refactor this into a library module if I get a moment.
If anyone has code pending please let me know.
Using DayOneExport to export 7 days!
invalid document source
@#[line:0,col:undefined]
TypeError: Cannot read property 'documentElement' of undefined
at Object.parse (/Users/dan/Documents/elizabeth-master/node_modules/dayone/node_modules/plist/lib/parse.js:45:10)
at DayOneEntry.fromOutputFormat as fromFile
at /Users/dan/Documents/elizabeth-master/node_modules/dayone/lib/DayOne.js:49:19
at Array.forEach (native)
at DayOne.list (/Users/dan/Documents/elizabeth-master/node_modules/dayone/lib/DayOne.js:47:30)
at DefaultPlugin.loadEntries (/Users/dan/Documents/elizabeth-master/lib/output/DayOneExport.js:203:17)
at DefaultPlugin.exportDay (/Users/dan/Documents/elizabeth-master/lib/output/DayOneExport.js:79:10)
at /Users/dan/Documents/elizabeth-master/lib/Elizabeth.js:143:17
at Request._callback (/Users/dan/Documents/elizabeth-master/node_modules/moves-api/lib/MovesApi.js:126:13)
at Request.self.callback (/Users/dan/Documents/elizabeth-master/node_modules/request/request.js:123:22)
Running export is throwing intermittent errors "Cannot read property 'date' of undefined"
./ellie.js export --dayStart 20130202 --dayEnd 20131229
> Exported 20130331
/elizabeth/lib/output/PlaintextExport.js:26
var text = 'Moves log for ' + day.date + '\n';
^
TypeError: Cannot read property 'date' of undefined
at DefaultPlugin.exportDay (/elizabeth/lib/output/PlaintextExport.js:26:35)
at Elizabeth.startExport (/elizabeth/lib/Elizabeth.js:143:17)
at Request.MovesApi.getStoryline [as _callback] (/elizabeth/node_modules/moves-api/lib/MovesApi.js:126:13)
at Request.init.self.callback (/elizabeth/node_modules/request/request.js:123:22)
at Request.EventEmitter.emit (events.js:99:17)
at Request.onResponse (/elizabeth/node_modules/request/request.js:893:14)
at Request.EventEmitter.emit (events.js:126:20)
at IncomingMessage.Request.onResponse.buffer (/elizabeth/node_modules/request/request.js:844:12)
at IncomingMessage.EventEmitter.emit (events.js:126:20)
at IncomingMessage._emitEnd (http.js:366:10)
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.
Not an issue, but seeking some advice.
I'd like to run elizabeth nightly on a mac using launchd via either Lingon or LaunchControl, but I'm struggling to make it work. I'm sure it's down to my inexperience, so any advice of how to configure to plist file, or where permissions etc might be getting in the way would be great.
Thanks!
Is there a way to comment out sections of the DayOneExport.js script so that the google map does not export to DayOne?
I made sure I pulled the latest version... I get this error (default set to 150 in elizabeth config to test):
ellie.js export --output DayOneExport --directory /Users/christianvogel/Dropbox\ (Personal)/Apps/Day\ One/Journal.dayone
Using DayOneExport to export 150 days!
/usr/local/lib/node_modules/elizabeth/lib/output/DayOneExport.js:56
if(day.segments == null) return;
^
TypeError: Cannot read property 'segments' of undefined
at DefaultPlugin.exportDay (/usr/local/lib/node_modules/elizabeth/lib/output/DayOneExport.js:56:11)
at /usr/local/lib/node_modules/elizabeth/lib/Elizabeth.js:143:17
at Request._callback (/usr/local/lib/node_modules/elizabeth/node_modules/moves-api/lib/MovesApi.js:126:13)
at Request.self.callback (/usr/local/lib/node_modules/elizabeth/node_modules/moves-api/node_modules/request/request.js:344:22)
at Request.emit (events.js:110:17)
at Request. (/usr/local/lib/node_modules/elizabeth/node_modules/moves-api/node_modules/request/request.js:1239:14)
at Request.emit (events.js:129:20)
at IncomingMessage. (/usr/local/lib/node_modules/elizabeth/node_modules/moves-api/node_modules/request/request.js:1187:12)
at IncomingMessage.emit (events.js:129:20)
at _stream_readable.js:908:16
I want to export 80 days into DayOne. However, when running the appropriate command, I get an error.
$ ellie export --dayStart 20130604 --output DayOneExport --directory ~/Dropbox/Apps/Day\ One/Journal.dayone/
Welcome to Elizabeth, your Moves.app exporter!
----------------------------------------------
> Using DayOneExport to export 80 days!
/Users/noxoc/Dropbox/code/elizabeth/lib/output/DayOneExport.js:54
if(day.segments == null) return;
^
TypeError: Cannot read property 'segments' of undefined
at DefaultPlugin.exportDay (/Users/noxoc/Dropbox/code/elizabeth/lib/output/DayOneExport.js:54:11)
at Elizabeth.startExport (/Users/noxoc/Dropbox/code/elizabeth/lib/Elizabeth.js:143:17)
at Request.MovesApi.getStoryline [as _callback] (/Users/noxoc/Dropbox/code/elizabeth/node_modules/moves-api/lib/MovesApi.js:126:13)
at Request.init.self.callback (/Users/noxoc/Dropbox/code/elizabeth/node_modules/request/request.js:129:22)
at Request.EventEmitter.emit (events.js:91:17)
at Request.onResponse (/Users/noxoc/Dropbox/code/elizabeth/node_modules/request/request.js:873:14)
at Request.EventEmitter.emit (events.js:115:20)
at IncomingMessage.Request.onResponse.buffer (/Users/noxoc/Dropbox/code/elizabeth/node_modules/request/request.js:824:12)
at IncomingMessage.EventEmitter.emit (events.js:115:20)
at IncomingMessage._emitEnd (http.js:366:10)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.