GithubHelp home page GithubHelp logo

jaxbot / wear-leafstatus Goto Github PK

View Code? Open in Web Editor NEW
9.0 6.0 3.0 6.52 MB

Quick Leaf Notifications app for Nissan Leaf cars

Home Page: https://jaxbot.me/articles/weekend-project-leaf-status-for-android-wear-09-21-14

License: Other

Java 100.00%

wear-leafstatus's Introduction

Leaf Notification for Android and Wear

I found Nissan's Android app for the Leaf to be bit cumbersome, and I wanted something that could integrate with Wear. Thus, I reverse engineered the web API endpoints and built this app. Here's a demonstration:

<iframe width="560" height="315" src="//www.youtube.com/embed/XIwbIoerSrg" frameborder="0" allowfullscreen></iframe>

Youtube

Get it on Google Play

About the code

The code is available under MIT, feel free to experiment with it, learn from it, etc. It does use an undocumented API that is subject to change, though, and references to Nissan are obviously owned by their respective copyright owner. This project is not affiliated with or endorsed by Nissan.

It was a great learning experience, though, and if you have any suggestions, let me know!

wear-leafstatus's People

Contributors

jaxbot avatar

Stargazers

Dmitry Drepin avatar Gerad Munsch avatar Daniele Tartarini avatar Yuki MIZUNO avatar Konrad Iturbe avatar John Anderson avatar  avatar Angus H. avatar  avatar

Watchers

Gerad Munsch avatar James Cloos avatar  avatar Justin Pontius avatar  avatar  avatar

wear-leafstatus's Issues

Cache vehicle ID

Currently, the app grabs the vehicle ID each time it pulls. This is unnecessary, and should instead be cached in sharedperferences.

Investigate using app API instead of web API

The web API no longer supports JSON, which makes parsing it really difficult and makes it very difficult to future proof. It is worth investigating if the official app has a better API

Add "camp mode"

This mode would continually request the A/C to stay on until requested otherwise.

Implement Material Design

I think trying to implement Material would be a good experience to work on my UI skills on Android. This project is a good testing ground for it, since its so simple.

Intelligently decide how often to ping data center

Right now, if a user wants to set and forget, it may be desirable to set the timer to 15 minutes. This results in unnecessary spamming of the data center and car, because a car that is unplugged and doing nothing does not need to be frequently pinged.

To improve this, I think it would be best to have an "auto" mode that pings the car more frequently when it is charging.

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.