Comments (6)
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.
Also, did you try to enable debug mode?
$nissanConnect->debug = TRUE;
from nissan-connect-php.
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.
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.
No idea what could cause this.
The official Nissan LEAF app on mobile (iOS or Android) works fine?
from nissan-connect-php.
Started getting the same error myself. Fixed this in the code just now.
Ref: 7aa7494
from nissan-connect-php.
Related Issues (20)
- "status":"-2010","message":"INVALID PARAMS" HOT 2
- Find my car function HOT 9
- get-leaf-location example not working HOT 1
- Base URL Changed Again? HOT 3
- Issue with last Commit HOT 6
- Issue with new API -- No battery info? HOT 4
- Intermittent Connexion Issues? HOT 11
- Receiving INVALID PARAMS response HOT 1
- does not work since mid-December 2018 .... HOT 8
- Leaf Gen2 HOT 8
- Nissan changed api again HOT 8
- New Leaf 2019 Protocol HOT 15
- New Response since Nov 21st? HOT 2
- Response Authentication error HOT 7
- New fix does not work when changing request source. HOT 2
- API error, NoRecordInDatabase HOT 3
- BlahBlah?? HOT 10
- The return of the BlahBlah code :( HOT 4
- Here we go again! :) HOT 4
- Still getting Unauthorized response after last update HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nissan-connect-php.