xtacocorex / chip_batt_autoshutdown Goto Github PK
View Code? Open in Web Editor NEWScript to auto power down the CHIP computer based upon attached battery level
License: MIT License
Script to auto power down the CHIP computer based upon attached battery level
License: MIT License
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.
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/chip_batt_autoshutdown# cp ./chip_autoshutdown.sh /usr/bin/
root@chip:
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.