GithubHelp home page GithubHelp logo

piskula / fuelup Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 2.0 20.83 MB

Android FuelUp application

License: GNU General Public License v3.0

Java 99.79% HTML 0.21%
android android-application contentprovider java sqlite

fuelup's People

Contributors

martinstyk avatar piskula avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

soenkegissel

fuelup's Issues

Statistics basic

Important

  • average fuel consumption
  • average kilometres/miles per litre
  • total tracked distance
  • period of registred expenses/fillups (i.e. tracking for 1year and 3months)

Total

  • total number of fill ups
  • total number of expenses
  • total fuel volume
  • total price (fuel + fillups)
  • total fuel price
  • total expense price

Average per distance

  • average total price per kilometer 100kilometers
  • average fuel price per kilometer 100kilometers
  • average expense price per kilometer 100kilometers

Average per time

  • average total costs per week

  • average total costs per month

  • average total costs per year

  • average fuel costs per week

  • average fuel costs per month

  • average fuel costs per year

  • average expense costs per week

  • average expense costs per month

  • average expense costs per year

  • average distance per day

  • average distance per week

  • average distance per month

  • average distance per year

Average fuel

  • average fuel cost per litre
  • average fuel volume per fillup
  • average fuel cost per fillup

Extreme values

  • Best fuel consumption
  • Worst fuel consumption
  • Cheapest fuel price per litre
  • Most expensive fuel price per litre
  • Largest distance between two fill ups
  • Smallest distance between two fill ups

Date Locale

add proper date formatting according to Locale to:

  • edit screens
  • list screens

e.g. 05/20/2015 20.5.2015

Create fill up using camera

Let user to take a picture of fuel dispenser and parse picture to find - price per volume, volume, total price

Graphs button statistics tab

Do not show graphs button on same place as add button on other screens.
Align graphs button with action bar. Remove Actionbar menu in this screen

Detailed Statistics

  • linechart - consumption in time
  • piechart* - ratio between fillups & expenses (price)
  • linechart - price per litre in time
  • columnchart - average consumption per month
  • columnchart - monthly expenses

Currency formatting

add few more currencies and proper number formatting, e.g.:

  • price
    • 1.050,00 EUR
    • 1 050 Kč (no decimal)
  • price per litre
    • 1,052 Eur/litre (3 decimal)
    • 30,26 Kč/litre (2 decimal)

Sample Data for statistics testing

Create 3 vehicles

  • one with no fill up and no expense - to test everything works when no values are inserted
  • one with few (3?) fill ups and expenses - to test computed values are correct
  • one with many (300?) fillups/expenses - to test performance

Imperial and metric units

When createing car, make a choice between imperial and metric units
metric - km, litres, l/100km
imperial - miles, galons, mile per gallon

Use strategy pattern?

To avoid problems with l/100km - miles/gallon always compute consumption in both ways - show user l/100km and also km/l - than only string change is required (no other computations)

Plus button BUG

  1. go to vehicle detail
  2. tap statistics
  3. rotate screen
    both 'plus' & 'detail' button appears

CI build

continuous integration build and deploying public APK file for actual dwnload

lazy reload

show only last 10 fillups/expenses

  • reload on demand

Naming pattern in resources

Consistent naming of layouts, for example
activity_vehicle_add
activity_vehicle_update
...
fragment_fillup_list
...
dialog_vehicle_add

Compute fuel consumption

Support

  • update of old fill up,
  • create old fill up

When computing fuel consumption

  • look for closest full fill up older than currently added/edited
  • look for closest full fill up newer than currently added/edited (incl. currently added/edited)
  • update consumption of all fill ups between two full fill ups found above

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.