GithubHelp home page GithubHelp logo

xtacocorex / chip_batt_autoshutdown Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 6.0 7 KB

Script to auto power down the CHIP computer based upon attached battery level

License: MIT License

Shell 100.00%

chip_batt_autoshutdown's People

Contributors

xtacocorex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

chip_batt_autoshutdown's Issues

Really low minimum voltage

Li-ion and lipo batteries should not be discharged to below ~3.0V under load or you'll damage them permanently, getting less and less out of them each time. It would be a good idea to adjust the minimum voltage, in case someone decides to use your script.

Error in command ?

Hi, im a beggining Linux user, i highly suspect a 18 inch code there.. and i try to acheive this:

git clone https://github.com/xtacocorex/chip_batt_autoshutdown.git
cd chip_batt_autoshutdown
chmod +x chip_batt_autoshutdown.sh
sudo cp ./chip_autoshutdown.sh /usr/bin/

1- I install git
2- I get to github : git clone https://github.com/xtacocorex/chip_batt_autoshutdown.git
3- I change the directory, using : cd chip_batt_autoshutdown
4- And there is the problem:
root@chip:~/chip_batt_autoshutdown# chmod +x chip_batt_autoshutdown.sh
chmod: cannot access 'chip_batt_autoshutdown.sh': No such file or directory

I try this:
root@chip:/chip_batt_autoshutdown# chmod +x chip_autoshutdown.sh
root@chip:
/chip_batt_autoshutdown# cp ./chip_autoshutdown.sh /usr/bin/
root@chip:~/chip_batt_autoshutdown# cd

And get this:
root@chip:# battery.sh
BAT_STATUS=0
CHARG_IND=0
BAT_EXIST=1
CHARGE_CTL=0xc9
CHARGE_CTL2=0x45
Battery voltage = 4170.1mV
Battery discharge current = 0mA
Battery charge current = 0mA
Internal temperature = 40.1c
root@chip:
#

Its normal to have nothing show in
Battery discharge current = 0mA
Battery charge current = 0mA

Maybe i miss something?

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.