@beejjacobs/nissan-connect
Nissan Connect API wrapper
Last updated 2 years ago by beejjacobs .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @beejjacobs/nissan-connect 
SYNC missed versions from official npm registry.

Nissan Connect

A Node js library for interacting with the Nissan Connect (Carwings) API. This provides a wrapper around the API to make it cleaner to use.

nissan-connect-app provides a front end and HTTP server, with local storage; using this module.

Example Usage

NissanConnect is promise based. Generated docs can be found here.

 const NissanConnect = require('nissan-connect');
 
 let nc = new NissanConnect('username','password');
 
 async function things() {
   //AC controls
   await nc.acOn();
   await nc.acOff();
   
   await nc.setAcSchedule('2017-11-04 07:30');
   
   let schedule = await nc.getAcSchedule();
   
   console.log(schedule.targetDate);
   
   // Battery status
   let status = await nc.getBatteryStatus();
   
   console.log(status.batteryStatus.chargeState);
   console.log(status.batteryStatus.timeToFull3kW);
   
   //Driving analysis
   let drivingAnalysis = await nc.getDrivingAnalysisWeek('2017-11-01');
   
   console.log(drivingAnalysis.startDate);
   drivingAnalysis.days.forEach(daySummary => {
     console.log(daySummary.targetDate);
     if (daySummary.hasData) {
      console.log(daySummary.averageEconomy);
      console.log(daySummary.regen);
     }
   });
 }
 
things().catch(console.error);

Current Tags

  • 1.0.17                                ...           latest (2 years ago)

18 Versions

  • 1.0.17                                ...           2 years ago
  • 1.0.16                                ...           2 years ago
  • 1.0.15                                ...           2 years ago
  • 1.0.14                                ...           2 years ago
  • 1.0.13                                ...           2 years ago
  • 1.0.12                                ...           2 years ago
  • 1.0.11                                ...           2 years ago
  • 1.0.10                                ...           2 years ago
  • 1.0.9                                ...           2 years ago
  • 1.0.8                                ...           3 years ago
  • 1.0.7                                ...           3 years ago
  • 1.0.6                                ...           3 years ago
  • 1.0.5                                ...           3 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 18
Last Month 36
Dependencies (3)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |