Giter VIP home page Giter VIP logo

elizabeth's People

Contributors

craigeley avatar enplotz avatar lazerwalker avatar pwaldhauer avatar stephanruttloff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

elizabeth's Issues

has anyone made any progress getting this to work?

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

"path.homedir is not a function"

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?

Invalid document source

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?

where is config

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

Welcome to Elizabeth, your Moves.app exporter!

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.

Day One 2 breaks exporter

The application storage has both changed names, and deprecated features - iCloud and Dropbox are no longer supported.

init has issues with writing config and finishing auth

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

Error Export in Day One with utf8 encoding strings

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

Summary

  • 16km 🚃, 5km 🚶, 0m 🏃, 0m 🚲 at index 127
    at XMLStringifier.module.exports.XMLStringifier.assertLegalChar (/usr/local/lib/node_modules/elizabeth/node_modules/plist/node_modules/xmlbuilder/lib/XMLStringifier.js:150:15)
    at XMLStringifier.assertLegalChar (/usr/local/lib/node_modules/elizabeth/node_modules/plist/node_modules/xmlbuilder/lib/XMLStringifier.js:4:61)
    at XMLStringifier.module.exports.XMLStringifier.eleText (/usr/local/lib/node_modules/elizabeth/node_modules/plist/node_modules/xmlbuilder/lib/XMLStringifier.js:27:19)
    at new XMLText (/usr/local/lib/node_modules/elizabeth/node_modules/plist/node_modules/xmlbuilder/lib/XMLText.js:20:35)
    at XMLElement.module.exports.XMLNode.text (/usr/local/lib/node_modules/elizabeth/node_modules/plist/node_modules/xmlbuilder/lib/XMLNode.js:133:15)
    at XMLElement.module.exports.XMLNode.txt (/usr/local/lib/node_modules/elizabeth/node_modules/plist/node_modules/xmlbuilder/lib/XMLNode.js:249:19)
    at walk_obj (/usr/local/lib/node_modules/elizabeth/node_modules/plist/lib/build.js:127:30)
    at walk_obj (/usr/local/lib/node_modules/elizabeth/node_modules/plist/lib/build.js:109:9)
    at Object.build (/usr/local/lib/node_modules/elizabeth/node_modules/plist/lib/build.js:76:3)
    at DefaultPlugin.saveEntry (/usr/local/lib/node_modules/elizabeth/lib/output/DayOneExport.js:191:25)
    konstantinpopov@MacBook-Pro-KONSTANTIN:~/Dropbox/Приложения/elizabeth$

TypeError: Cannot read property 'nodeName' of null

./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)

Wouldn't Export to DayOne at all using "auto"

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/');
        }

DayOneExport not working

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)

Error getting token from Moves

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"}

Code in DayOneExport could be refactored into library

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.

invalid document source @#[line:0,col:undefined] Please help, I got this to work once, but after reinstall, I get the same error...

Welcome to Elizabeth, your Moves.app exporter!

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)

export throws error "Cannot read property 'date' of undefined"

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)

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

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.

Running elizabeth with launchd

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!

Cannot run Elizabeth for setting more than 7 days

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

Welcome to Elizabeth, your Moves.app exporter!

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

Export does not work (80 days, DayOneExport)

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.