Giter Club home page Giter Club logo

edison-cli's People

Contributors

adammagaluk avatar landlessness avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

edison-cli's Issues

What is needed on the Edison?

It is not clear what is necessary to run on the Edison. For example, I was running a wscat as follows:

root@eddie:~# wscat -l 5888
listening on port 5888 (press CTRL+C to quit)
  client connected
  < {"channel":"command","message":"run"}
> ls
  disconnected

  client connected
  < {"channel":"command","message":"run"}
  disconnected
  client connected
  < {"channel":"command","message":"run"}
  disconnected
  client connected
  < {"channel":"command","message":"run"}
> {"hello": 1}
  disconnected

"edison-cli deploy" returns "TypeError: Object #<Object> has no method 'clearFolder'"

When trying to deploy to the Edison with edison-cli I encounter the error below and the command seems to hang. Not sure if it's actually hung or installing like it's supposed to do.

Command:

> edison-cli -H 10.1.10.51 deploy

Error:

edison-cli -H 10.1.10.51 deploy
XDK - IoT App Dameon v0.0.13 - commands: run, list, debug, status
uncaughtException occured: TypeError: Object #<Object> has no method 'clearFolder'
    at /opt/xdk-daemon/current/appDaemon.js:229:19
    at Object.oncomplete (fs.js:107:15)

"edison-cli" list throws "TypeError: Cannot call method 'some' of undefined" error.

When running edison-cli listI get TypeError: Cannot call method 'some' of undefined error.

> edison-cli list
/usr/local/lib/node_modules/edison-cli/lib/find.js:24
    return data.type.some(function(type){
                     ^
TypeError: Cannot call method 'some' of undefined
    at filter (/usr/local/lib/node_modules/edison-cli/lib/find.js:24:22)
    at null.<anonymous> (/usr/local/lib/node_modules/edison-cli/lib/find.js:30:9)
    at EventEmitter.emit (events.js:95:17)
    at internal.onMessage (/usr/local/lib/node_modules/edison-cli/node_modules/mdns-js/lib/browser.js:51:8)
    at null.<anonymous> (/usr/local/lib/node_modules/edison-cli/node_modules/mdns-js/lib/browser.js:132:26)
    at Socket.EventEmitter.emit (events.js:98:17)
    at UDP.onMessage (dgram.js:440:8)

After adding a console.log on the data being passed into filter(data), I see that some data objects do not have type objects. Confer with logs below.

The first data has a type element and runs fine.

{ addresses: [ '127.0.0.1' ],
  query: '_services._dns-sd._udp.local',
  type: 
   [ { name: 'afpovertcp',
       protocol: 'tcp',
       subtypes: [],
       description: 'Apple File Sharing' } ],
  interfaceIndex: 0,
  networkInterface: 'lo0' }

The second data does NOT have a type element and causes the error.

{ addresses: [ '127.0.0.1' ],
  query: '_services._dns-sd._udp.local',
  interfaceIndex: 3,
  networkInterface: 'en6' }

Error: bind EADDRINUSE 224.0.0.251:5353

λ: edison-cli list
events.js:141
      throw er; // Unhandled 'error' event
      ^

Error: bind EADDRINUSE 224.0.0.251:5353
    at Object.exports._errnoException (util.js:874:11)
    at exports._exceptionWithHostPort (util.js:897:20)
    at dgram.js:213:18
    at doNTCallback3 (node.js:450:9)
    at process._tickCallback (node.js:356:17)
    at Function.Module.runMain (module.js:469:11)
    at startup (node.js:134:18)
    at node.js:961:3

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.