Coder Social home page Coder Social logo

epoc.js's Introduction

Hey, I'm Charlie! ๐Ÿ‘‹ ๐Ÿ˜ƒ

Pronouns: She/Her

I'm currently a Staff full stack engineer @Socket.

I am passionate about human-computer interaction so, on my personal time, I build lots of interactive prototypes using machine learning, hardware, creative coding, AR/VR, most of it in JavaScript!

You can check all my projects on my website.

I regularly speak at conferences to share things I learn and build, and I'm also the author of a book on machine learning for web developers with TensorFlow.js! ๐Ÿ“š

epoc.js's People

Contributors

charliegerard 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  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  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

epoc.js's Issues

error with npm install epocjs

Any fix for this?

npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the epocjs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild

Mental data available?

Thanks so much for making this framework. I notice this frameworks picks up facial gestures, does it also pick up the following mental values?

int | interest value
str | stress value
rel | relaxation value
exc | excitement value
eng | engagement value
lex | long term excitement value
foc | focus value

Epoc.js on Windows?

I apologize if this is an ignorant question based on the parameters/scope of this project, but is it possible to install the plugin via npm on windows?

Thanks in advance :)

N-API support

Hi @charliegerard I watched your talk at JSConfEU and I tried to port this module to N-API using its C++ wrapper node-addon-api.
You can find my work here: https://github.com/NickNaso/Epoc.js/tree/napi
If you want experiment with N-API you can create a branch and call it "napi" so I can execute the PR on it.
After that we can iterate to over it and at the end publish a new version of epocjs or a tagged version like reported here: https://nodejs.org/en/docs/guides/publishing-napi-modules/
I'm involved on the N-API team and this porting is part of our effort to understand which are the common api that developers need to implement native add-ons.
If you don't want to take dependency on N-API I understand. If you want give me a feedback it should be great.
I will be happy to contribute and help in any way.

epoc+

hi , does it support epoc+ model 2018 without need for licence buy ?

How to make .emu file ?

I have an Emotiv Epoc+ v1.1 released back in 2015 and have the latest emotiv MacOS framework installed ( community-sdk-3.5.1-WIN-MAC-ANDROID ).

screenshot 2018-05-25 at 11 28 07 pm

I am successfully able to turn on the device and use it in the emotiv apps and see feedback.

screenshot 2018-05-25 at 11 50 21 pm

However there does not appear to be any Profiles folder in my users Emotive folder:

/Users/peter/Library/Application Support/Emotiv

screenshot 2018-05-25 at 11 14 06 pm

I assumed, likely incorrectly, that since I did not have that file, perhaps your instructions were stating I should make a file, as there was a comment in the example for "path/to/user/file".

Here is a sample code I used to see if I could get things running:

var Epoc = require('epocjs')();

Epoc.connectToLiveData('./test.emu', function(event) {
  if (event) {
    console.log('Event Fired');

    if (event.batteryLevel && event.batteryLevel > 0) {
      console.log(`Battery level: ${event.batteryLevel}%`);
    }
  }
});

Here is the output from that command

screenshot 2018-05-25 at 11 30 12 pm

If there is something I am supposed to be doing with the Emotiv in the background, it would be helpful to learn this. The docs make it sound like I can just plug on the device, make sure I can access it via the Emotiv software, then fire up some node script to connect to it, and that is not turning out to be the case :(

BTW, for the sake of testing purposes, I also use the Epoc.connectToEmoComposer method while tinkering with the EmotivXavierComposer app in the background, and the output from that was only ever Connected to EmoComposer but none of the tested events seemed to fire off either. Not sure if maybe something else is going on here where the method are not firing for some reason I don't know about.

Here was my test file for that, should this be a related issues:

var Epoc = require('epocjs')();

Epoc.connectToEmoComposer(function(event) {
  if (event) {
    pastAction = action;

    if (event.blink > 0) {
      action = 'blink';
    }

    if (event.lookingLeft > 0) {
      action = 'looking left'
    }

    if (event.lookingUp > 0) {
      action = 'looking up'
    }

    if (event.gyroX) {
      console.log("gyroX: ", event.gyroX);
    }

    if (event.gyroY) {
      console.log("gyroY: ", event.gyroY);
    }

    // at the moment will only handle 1 event at a time. Need to fix that
    if (pastAction !== action) {
      console.log('action', action)
    }
  }
});

Any help would be greatly appreciated ๐Ÿ˜ƒ

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.