Code Monkey home page Code Monkey logo

batteryhub's Introduction

Build Status Release License

About GreenHub BatteryHub

BatteryHub is a simple way to keep up with your device's battery details. The app works as a battery monitor compiling all useful information necessary for you to identify any energy anomalies. Keep in mind that the app by itself is NOT a battery saver, at least for now. It simply aggregates data to keep you informed of the battery details.

Use BatteryHub to:

  • Monitor your battery details in real-time such as instant consumption and battery temperature and more.
  • Check your device specifications, network information, storage details and memory usage.
  • Find out what apps are running and how much memory they are using.
  • Keep track of your battery state history with interactive charts with different time intervals.

Disclaimer: This app is still under development and it is NOT finished. Updates will be released over time with new content.

BatteryHub is a fork of the Carat Project and is part of the project GreenHub.

What is GreenHub?

A collaborative approach to power consumption analysis of Android devices.

It collects anonymous data about your devices's power consumption and uploads them to our server.

Learn more at greenhubproject.org.

Ecosystem

Project Status Description
greenhub-farmer greenhub-farmer-status Backend Web application + REST API
greenhub-lumberjack greenhub-lumberjack-status A command line app for interacting with the GreenHub REST API

Build Instructions

Gradle

Linux and Mac OS:

Make sure gradlew is executable, by typing this command:

$ chmod +x gradlew

You can now build and test the project:

$ ./gradlew clean check assembleDebug

Windows:

$ gradlew.bat clean check assembleDebug

Docker

If it is the first time building the Android app with Docker, it is necessary to build a local Docker image before running it. Afterwards just run a container:

Note: Make sure you have at least 2GB free storage on your workstation to build the docker image.

$ curl https://raw.githubusercontent.com/hmatalonga/docker-android/master/Dockerfile -sSf | docker build -t greenhub-project/batteryhub -f - .
$ docker run -it --name container-name \         # Choose a container name
-v `pwd`:/usr/src/app \                          # DO NOT change this src path
greenhub-project/batteryhub \
/bin/bash

Inside the container you can now run gradle tasks, for example:

./gradlew clean check assembleDebug  # This will create a debug build after passing all checks

To start an existing container, type:

$ docker start -i container-name

One line build, for copy-paste:

curl https://raw.githubusercontent.com/hmatalonga/docker-android/master/Dockerfile -sSf | docker build -t greenhub-project/batteryhub -f - . && docker run -it --name batteryhub-app -v `pwd`:/usr/src/app greenhub-project/batteryhub /bin/bash

To list all available gradle tasks run ./gradlew tasks.

Need help?

Having problems building BatteryHub? Please see the Troubleshooting guide.

For more details, please check our documentation.

Issues

If you think you have found a bug or have a feature request, refer to the issues page, proper labels are provided.

Before opening a new issue, be sure to search existing ones to avoid duplicates. Please try to include steps to reproduce the problem and copy the print stack tree output from the logs if necessary.

Known issues

  • Some Android devices don't support current measurement with BatteryManager API. Legacy support is being developed
  • Power Indicator is not working properly, see issue

Contributing

Please read through our contributing guidelines before making a pull request. Included are directions for coding standards and development process.

Changelog

Detailed changes for each release are documented in the release notes.

License

Copyright (c) 2016-present Hugo Matalonga & João Paulo Fernandes.

The code is available under the Apache 2.0 License unless otherwise stated in the file or by a dependency's license file.

Acknowledgments

GreenHub was originally inspired by and has used data definitions from:

It uses battery percentage icons from the project:

batteryhub's People

Contributors

hmatalonga avatar

Watchers

 avatar

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.