Skip to content

Commit

Permalink
updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Schuhfuss committed Sep 25, 2012
1 parent cdc309d commit aa3a966
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Expand Up @@ -44,9 +44,11 @@ now take a photo to see if it's working.

## Integrate into your own project

Integration is possible, but currently not very feature-rich.
Integration is possible, and not really complicated.
It basically just works (or maybe doesn't) and emits an
`imageReceived`-Event whenever the upload of an image is completed.
Additionally, you may listen for `uploadProgress`-events which are fired during
the file-upload.

By default, logging will print error-messages to the console. This is
something I'm working on. (If you want to customize logging, the only way
Expand All @@ -66,6 +68,10 @@ for now is to create your own logger-instance (see standalone.js))
eyefiServer.on('imageReceived', function(data) {
console.log('received an image: ' + data.filename);
});

eyefiServer.on('uploadProgress', function(progress) {
console.log( (100*progress.received/progress.expected).toFixed(2) + '% complete');
});


## Doesn't work?
Expand Down

0 comments on commit aa3a966

Please sign in to comment.