Git Product home page Git Product logo

carwings's People

Contributors

ashmartian avatar gboudreau avatar joshperry avatar suhajdab avatar

Watchers

 avatar

Forkers

suhajdab bhagyas

carwings's Issues

Failed login - Status -2010, INVALID PARAMS

Filing this error here, since to my knowledge it fails in this library, not in the homebridge_carwings.

Login does not work, and if fails with error:
Oct 8 11:27:55 raspberrypi homebridge[13344]: _currentUrl: 'https://gdcportalgw.its-mo.com' }, Oct 8 11:27:55 raspberrypi homebridge[13344]: data: { status: '-2010', message: 'INVALID PARAMS' } } Oct 8 11:27:55 raspberrypi homebridge[13344]: Error .
More detail log attached
carwings_error.txt

I have an older carwings account (3+ years), and in some apps such iOS EVA app I can only login with the user name (not with email). On Nissan web it works with either, also works with both in Nissan EV app.
I've tried both user name and email, and with a combination of clear text password and base64 encoded in the config.
Versions used is the latest of homebridge_carwings and this carwings library (to the best of my understanding).

I will contact Nissan support to see if it is possible to convert my Carwings account to an email only account.

Thanks!

batteryStatusCheck return error

With this code :

var carwings = require('carwings');

carwings.loginSession('login', 'password', 'NE').then(function(session){
  //Get cached current LEAF status
  carwings.batteryStatusCheck(session).then(function(status){	
    console.log(status);
  });
});

I have a lot of date and at the end :

  data: 
   { status: '-6000',
     ErrorCode: '-6000',
     ErrorMessage: 'BadRequest' } }
Error: BadRequest
    at /home/furax/node_modules/carwings/lib/index.js:17:13
    at Generator.next (<anonymous>)
    at step (/home/furax/node_modules/carwings/lib/index.js:42:191)
    at /home/furax/node_modules/carwings/lib/index.js:42:361
    at process._tickCallback (internal/process/next_tick.js:103:7)

First I think there was an error in L114 and change to :

const batterystatuscheck = session => longpollrequest('BatteryStatusCheckRequest', 'BatteryStatusCheckResultRequest', session);

because compraing to pycarwings, I think first we hav to call BatteryStatusCheckRequest before BatteryStatusCheckResultRequest
But always the same error (work with pycarwings2 example)
My knowledge with JS is too poor to understand why it doesn't work !

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.