zettajs / edison-cli Goto Github PK
View Code? Open in Web Editor NEWCli node application manager for the edison
Cli node application manager for the edison
Hi @AdamMagaluk ,
Due to recent changes in xdk-daemon it accepts connection only if intel edison is password protected. edison-cli do not have any option where we can send credentials.
Please find more details here https://communities.intel.com/thread/60406
Cheers,
Anil Sagar
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)
As I'm using the tool from the command line interface, it's a bit redundant to have '-cli' in the name of the command.
Just edison
would be fine.
λ: 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
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
When running edison-cli list
I 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' }
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.