Code Monkey home page Code Monkey logo

Comments (6)

gboudreau avatar gboudreau commented on June 3, 2024

Do you have the mcrypt extension installed? If not, you need to use NissanConnect::ENCRYPTION_OPTION_WEBSERVICE instead of NissanConnect::ENCRYPTION_OPTION_MCRYPT

from nissan-connect-php.

gboudreau avatar gboudreau commented on June 3, 2024

Also, did you try to enable debug mode?
$nissanConnect->debug = TRUE;

from nissan-connect-php.

clafouti2104 avatar clafouti2104 commented on June 3, 2024

Thanks for the quick answer.

The mcrypt extension is installed.
Here's the result with the debug enabled:

[2016-09-08 13:46:00] [NissanConnect] Request: POST https://gdcportalgw.its-mo.com/gworchest_0307C/gdc/BatteryStatusRecordsRequest.php {"custom_sessionid":"Z8DI+...==","initial_app_strings":"geORNtsZe5I4lRGjG9GZiA","RegionCode":"NE","lg":"en-US","DCMID":"203561200947","VIN":"SJN...346","tz":"Europe\/Paris"}
[2016-09-08 13:46:03] [NissanConnect] Response: {"status":200,"message":"success","BatteryStatusRecords":{"OperationResult":"START","OperationDateAndTime":"Sep  8, 2016 01:45 PM","BatteryStatus":{"BatteryChargingStatus":"NOT_CHARGING","BatteryCapacity":"240","BatteryRemainingAmount":"200","BatteryRemainingAmountWH":"16880","BatteryRemainingAmountkWH":"","SOC":{"Value":"80"}},"PluginState":"NOT_CONNECTED","CruisingRangeAcOn":"129000","CruisingRangeAcOff":"134000","TimeRequiredToFull":{"HourRequiredToFull":"5","MinutesRequiredToFull":"0"},"TimeRequiredToFull200":{"HourRequiredToFull":"3","MinutesRequiredToFull":"0"},"TimeRequiredToFull200_6kW":{"HourRequiredToFull":"2","MinutesRequiredToFull":"30"},"NotificationDateAndTime":"2016\/09\/08 11:45","TargetDate":"2016\/09\/08 11:45"}}
[2016-09-08 13:46:03] [NissanConnect] Request: POST https://gdcportalgw.its-mo.com/gworchest_0307C/gdc/RemoteACRecordsRequest.php {"custom_sessionid":"Z8DI+...==","initial_app_strings":"geORNtsZe5I4lRGjG9GZiA","RegionCode":"NE","lg":"en-US","DCMID":"203561200947","VIN":"SJN...346","tz":"Europe\/Paris"}
An error occurred: Request for 'RemoteACRecordsRequest.php' failed. Response received: {"status":400,"message":"\u8981\u6c42\u30a8\u30e9\u30fc","OperationDateAndTime":""}

from nissan-connect-php.

clafouti2104 avatar clafouti2104 commented on June 3, 2024

I comment the RemoteACRecordsRequest in the getStatus function and here's my result:

An error occurred: Invalid 'OperationResult' received in call to 'BatteryStatusRecordsRequest.php': ELECTRIC_WAVE_ABNORMAL

from nissan-connect-php.

gboudreau avatar gboudreau commented on June 3, 2024

No idea what could cause this.
The official Nissan LEAF app on mobile (iOS or Android) works fine?

from nissan-connect-php.

gboudreau avatar gboudreau commented on June 3, 2024

Started getting the same error myself. Fixed this in the code just now.
Ref: 7aa7494

from nissan-connect-php.

Related Issues (20)

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.