Giter Club home page Giter Club logo

crowpi-l_batterystatus's Introduction

CrowPi L Battery status

Battery status for the CrowPi L laptop, with the native Linux Raspberry Pi OS, standing in the system tray, written with python3 and python3-pyqt5.

Animation

Features

  • Running on the native Linux Raspberry Pi OS,
  • standing in the system tray,
  • 7 state icons of the battery from 0% to 100%,
  • icon when charging,
  • alert icon when battery is very low,
  • tooltip to view the percentage of the battery load and its voltage,
  • contextual menu to properly quit the app,
  • based on the official python script delivered by CrowPi (/usr/local/sbin/getPowerBattery.py),
  • multi-threaded app to access the battery data with I2C.

Installing and starting the application

From a terminal, install python3-pyqt5

$ sudo apt install python3-pyqt5

From a terminal, clone this projet (the first time only), go to its directory, make it executable (the first time only), run it and enjoy!

$ git clone [email protected]:ppyne/crowPi-L_BatteryStatus.git
$ cd crowPi-L_BatteryStatus/
$ chmod +x ./batteryStatus.py
$ ./batteryStatus.py

Warning: to quit the app properly, you must right click on its icon in the system tray and click the menu "Quit".

crowpi-l_batterystatus's People

Contributors

ppyne avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

wojtekadams

crowpi-l_batterystatus's Issues

INstall fails

Traceback (most recent call last):
File "/home/ken/crowPi-L_BatteryStatus/./batteryStatus.py", line 27, in
bus = smbus.SMBus(1)
FileNotFoundError: [Errno 2] No such file or directory

I also was not able to clone the git, but rather downloaded the zip file??

git clone [email protected]:ppyne/crowPi-L_BatteryStatus.git
Cloning into 'crowPi-L_BatteryStatus'...
Warning: Permanently added the ECDSA host key for IP address '140.82.112.4' to the list of known hosts.
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

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.