Giter VIP home page Giter VIP logo

rusty-battery's Introduction

rusty-battery's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar kucera-lukas avatar pre-commit-ci[bot] avatar

Stargazers

 avatar  avatar  avatar

Forkers

doom4535

rusty-battery's Issues

Add unit tests

Add unit tests to make sure that mainly the lower level functions work as expected.

Specify delay between battery refresh

The CLI Notify subcommand should have a new option to allow the user to specify the delay between battery refresh and possible notification event.

This option should have a default so it can be ommitted.

`KDE Connect` integration

Add option to ping chosen mobile devices with information about battery charging status.

The kdeconnect-cli tool should probably be used, unless there is some other handy library for KDE Connect.

Use rust-battery

Instead of reading current battery percentage via upower command, we should use more generic interface for different operating systems. The rust-battery crate is exactly what is needed.

Optimize notifiers

  • warning message should be created only once
  • notifiers should not have internal state if they don't need it

Only ping available KDE Connect devices

KDE Connect notification interface should not collect all devices at startup. Better solution is to ping all available devices during the notification event.

Create error.rs

error.rs file should contain the application error definition.

Show all possible battery device models

This should probably be done via a CLI subcommand. It should collect battery models of each battery device and print them to the terminal along with their current state of charge to help user identify which one is the one which is in use by their device.

Set up pre-commit

Create .pre-commit-config.yml for linting on commit.

GitHub actions should be used to make sure that all files adhere to the code style defined in pre-commit-config.yaml in combination with #4

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.