Giter VIP home page Giter VIP logo

matrix-cli's Introduction

MATRIX OS (MOS) has been deprecated. We are no longer providing support for it and it may cease to function at any time. Please refer to our new library MATRIX Lite to easily program your MATRIX Device with just one line of code.

Welcome to your MatrixOS Console Line Interface

Build Status

Bugs

https://github.com/matrix-io/matrix-cli/issues

Questions

http://community.matrix.one

Documentation

http://matrix-io.github.io/matrix-documentation

Installation

npm install matrix-cli -g

Setup

Make sure you're using our rc environment.

matrix set env rc

For Matrix-Console Developers

Globalize Master Command

Use sudo npm link after git clone to make matrix available globally.

Refreshing Tarfile

#dont gzip, not supported
tar vcf baseapp.tar baseapp

Just for you Debug command

See the local configuration easy with matrix debug

matrix-cli's People

Contributors

bauff avatar brayan25 avatar brayanp avatar brianofrokk3r avatar diegoribero avatar eighteyes avatar gordinh avatar samreenislam 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

Watchers

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

matrix-cli's Issues

Create doesn't work

The create command doesn't work (windows / Linux)

matrix create nfc

Windows:

An error occurred: { Error: ENOENT: no such file or directory, open 'C:\Users\andre\Projects\nfc\:'
    at Error (native)
  errno: -4058,
  code: 'ENOENT',
  syscall: 'open',
  path: 'C:\\Users\\andre\\Projects\\nfc\\:' }

Linux I get a similar issues.

Fresh Install -g throws error on store.json

Error: EACCES: permission denied, open '/usr/local/lib/node_modules/matrix-cli/lib/../store.json'
Need to figure out now to not need sudo to persist information. I am not clear as to where is a safe place to store this kind of information. I don't know enough about unix file structure and permissions. @maciekrb any ideas?

missing links in documentation

Hello guys,

the links in the documentation don't work.

  • registering an admobilize account is not available
  • setup a simulator link doesn't work
  • documentation unclear and confusing

Please some help

Command matrix deploy app not working properly.

The error message says:

Unable to reach device, the application will be installed as soon as your device is available

I have connected the Matrix Voice to a raspberry pi and am writing a node test app following the tutorial on https://matrix-io.github.io/matrix-documentation/matrix-os/overview/cli/

What I have done:

  1. Registered my account with matrix register
  2. Confirmed by account and looking at the empty dashboard.
  3. Registered my device with matrix register device.
  4. I see the device listed on matrix list devices.

Couple facts:

  1. The device is NOT listed on my web dashboard.
  2. The command matrix list decices is showing my device.
  3. The command matrix list devices is showing "ok: no" and "Last Online: 48 years ago."
  4. The lights on my Matrix voice are all on/green, so it is connected.

Any insights ?

TypeError: Cannot read property 'token' of undefined

$ matrix register device
/usr/lib/node_modules/matrix-cli/bin/matrix-validate.js:23
  var token = Matrix.config.user.token;
                                ^

TypeError: Cannot read property 'token' of undefined
    at token (/usr/lib/node_modules/matrix-cli/bin/matrix-validate.js:23:33)
    at Object.user (/usr/lib/node_modules/matrix-cli/bin/matrix-validate.js:3:3)
    at /usr/lib/node_modules/matrix-cli/bin/matrix-register.js:14:23
    at /usr/lib/node_modules/matrix-cli/node_modules/node-yaml-localize/lib/node-yaml-localize/translator.js:175:24
    at next (/usr/lib/node_modules/matrix-cli/node_modules/node-yaml-localize/lib/node-yaml-localize/translator.js:228:35)
    at /usr/lib/node_modules/matrix-cli/node_modules/node-yaml-localize/lib/node-yaml-localize/translator.js:240:25
    at FSReqWrap.oncomplete (fs.js:123:15)

No way to ignore self-signed certificate error

Hi,

I am behind my company’s firewall.

Therefore, I am getting a self signed certificate error when trying to create a Matrix account through CLI.

What should I do to ignore the error? There doesn't seem to be any built-in way to do it.

Thanks in advance.

Sensor Install is not working now.

While trying to install sensorTest

matrix install sensorTest
⡿ C:\Users\userx\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\matrix-node-sdk\adsdk.js:369
    cb(null,resp);
    ^

TypeError: cb is not a function
    at C:\Users\userx\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\matrix-node-sdk\adsdk.js:369:5
    at Socket.<anonymous> (C:\Users\userx\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\matrix-node-sdk\utils\Socket.js:28:13)
    at Socket.Emitter.emit (C:\Users\userx\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\component-emitter\index.js:133:20)
    at Socket.onClose (C:\Users\userx\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\engine.io-client\lib\socket.js:715:10)
    at close (C:\Users\userx\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\engine.io-client\lib\socket.js:651:10)
    at Socket.<anonymous> (C:\Users\userx\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\engine.io-client\lib\socket.js:640:11)
    at Socket.on (C:\Users\userx\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\component-emitter\index.js:65:8)
    at Socket.Emitter.emit (C:\Users\userx\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\component-emitter\index.js:133:20)
    at Socket.onDrain (C:\Users\userx\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\engine.io-client\lib\socket.js:544:10)
    at WS.<anonymous> (C:\Users\userx\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\engine.io-client\lib\socket.js:265:10)

command `matrix ping` throws error

matrix ping works, but an error will always appear.

The documentation has it written down.
/matrix-os/reference/cli-tool/#development

Matrix CLI Error: TypeError: Cannot read property 'message' of null

Corporate Proxy variable is not being respected by the CLI

The CLI is not respecting the http_proxy env variable

Error:


Upgrade Check Error:  { [Error: getaddrinfo ENOTFOUND raw.githubusercontent.com raw.githubusercontent.com:443]
  code: 'ENOTFOUND',
  errno: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'raw.githubusercontent.com',
  host: 'raw.githubusercontent.com',
  port: 443 }

need to sudo matrix first run after global install

Maybe write the store without the folder.

Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/matrix-cli/lib/../tmp'
    at Error (native)
    at Object.fs.mkdirSync (fs.js:916:18)
    at Object.getConfig (/usr/local/lib/node_modules/matrix-cli/lib/helpers.js:46:8)
    at Object.<anonymous> (/usr/local/lib/node_modules/matrix-cli/bin/matrix-init.js:17:32)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)

Search doesn't work

Hi there !

While trying to search for apps from the matrix-cli, here is the stacktrace I get :

/usr/local/lib/node_modules/matrix-cli/bin/matrix-search.js:27
<<<<<<< HEAD
^^
SyntaxError: Unexpected token <<
    at Object.exports.runInThisContext (vm.js:76:16)
    at Module._compile (module.js:542:28)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:509:3

It must be an old merge conflict 😄 !
I think that as soon as tests will be passing, you will push fixes to npm !

Cheers!

Unable to register device

$ matrix register device
/usr/lib/node_modules/matrix-cli/bin/matrix-validate.js:23
  var token = Matrix.config.user.token;
                                ^

TypeError: Cannot read property 'token' of undefined
    at token (/usr/lib/node_modules/matrix-cli/bin/matrix-validate.js:23:33)
    at Object.user (/usr/lib/node_modules/matrix-cli/bin/matrix-validate.js:3:3)
    at /usr/lib/node_modules/matrix-cli/bin/matrix-register.js:14:23
    at /usr/lib/node_modules/matrix-cli/node_modules/node-yaml-localize/lib/node-yaml-localize/translator.js:175:24
    at next (/usr/lib/node_modules/matrix-cli/node_modules/node-yaml-localize/lib/node-yaml-localize/translator.js:228:35)
    at /usr/lib/node_modules/matrix-cli/node_modules/node-yaml-localize/lib/node-yaml-localize/translator.js:240:25
    at FSReqWrap.oncomplete (fs.js:123:15)

This appears same as #52 but solution there did not work for me. I am on current node, and current matrix-cli running on mac osx

matrix stop needs to error gracefully if no app name provided

hi guys @di3goleite lets make this happen, i'm here to help

intended behavior

Display App Stop Error: application not specified.

actual behavior

at iterateeCallback (C:\Users\Dian Y Vince\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\matrix-firebase\node_modules\async\dist\async.js:965:24)
Matrix CLI Error: Error: Query.equalTo failed: First argument contains undefined in property ‘users.58f7a3682bbc323a0037f39a.devices.d0776caa0071.apps’
   at Error (native)
   at Md (C:\Users\Dian Y Vince\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\firebase\database-node.js:100:67)
   at Ld (C:\Users\Dian Y Vince\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\firebase\database-node.js:99:694)
   at X.h.Jf (C:\Users\Dian Y Vince\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\firebase\database-node.js:238:60)
   at Object.getIDForName (C:\Users\Dian Y Vince\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\matrix-firebase\lib\app.js:246:6)
   at C:\Users\Dian Y Vince\AppData\Roaming\npm\node_modules\matrix-cli\lib\app.js:208:29
   at C:\Users\Dian Y Vince\AppData\Roaming\npm\node_modules\matrix-cli\bin\matrix-init.js:117:16
   at C:\Users\Dian Y Vince\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\matrix-firebase\lib\util.js:66:9
   at C:\Users\Dian Y Vince\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\matrix-firebase\node_modules\async\dist\async.js:460:16
   at iterateeCallback (C:\Users\Dian Y Vince\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\matrix-firebase\node_modules\async\dist\async.js:965:24) Error: Query.equalTo failed: First argument contains undefined in property ‘users.58f7a3682bbc323a0037f39a.devices.d0776caa0071.apps’
   at Error (native)

Approach

use t(matrix.stop.application_unspecified) to lookup a localized string for the error message. look @ lib/app.js/200

Register device not finishing

When registering a new device, the message Device registered succesfully is displayed, however the id and secret are never shown.

`matrix update` is not enabled

Typing the command in the CLI outputs this:

$ matrix update

⣷ /Users/carlos/.nvm/versions/node/v9.5.0/lib/node_modules/matrix-cli/node_modules/async/lib/async.js:718
            task(_restParam(function (err, args) {
            ^

TypeError: task is not a function
    at /Users/carlos/.nvm/versions/node/v9.5.0/lib/node_modules/matrix-cli/node_modules/async/lib/async.js:718:13
    at Immediate.iterate (/Users/carlos/.nvm/versions/node/v9.5.0/lib/node_modules/matrix-cli/node_modules/async/lib/async.js:262:13)
    at runCallback (timers.js:756:18)
    at tryOnImmediate (timers.js:717:5)
    at processImmediate [as _immediateCallback] (timers.js:697:5)

Login Timeout

The timeout time for having to login again should be longer. Ideally, the users username should be stored locally so that they only have to enter their password after over an hour of inactivity.

Token Error on Login

Authentication error (auth/custom-token-mismatch):  The custom token corresponds to a different audience.

Temporary Fix:

Set environment
matrix set env dev

Error with Yarn

The installation with yarn fails, moreover, the dependencies need to be updated.

Node 9.5.0

[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
[1/2] ⠄ deasync
[2/2] ⠄ spawn-sync
[-/2] ⠄ waiting...
[-/2] ⠄ waiting...
error /usr/local/share/.config/yarn/global/node_modules/deasync: Command failed.
Exit code: 127
Command: node ./build.js
Arguments:

Install doesn't find device

So, i'am trying to install an app from the store, but i receive unable to reach like i show below. The weird is on my OS it says is installed, but on my CLI it's unable to reach. This has happened with two apps from the store that i tried to install, but my apps that i build, install just fine.

____ | Installing  vehicle  ==>  df0ebc72dfe0
 ==== ^^^^ GRANT ACCESS ???? ^^^^ ====
{ sensors: [ 'camera' ], services: [ 'vehicle-detection' ] }
? OK to allow vehicle access to the above? Yes

⇒ Installing vehicle with policy:

 sensors:
 ✅  0

 services:
 ✅  0
 Installation progress:
Awaiting installation on Device...
 Unable to reach device, the application will be installed as soon as your device is available

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.