29 lines
679 B
Markdown
29 lines
679 B
Markdown
## Description
|
|
|
|
This script monitors the battery voltage, battery charge current.
|
|
+ Can send an alert if battery is not charging or is low.
|
|
+ May be run as a forground utility also, to display system stats.
|
|
|
|
## Installation
|
|
|
|
1. **clone** repository to your C.H.I.P. device
|
|
|
|
2. ***edit***
|
|
`chipmonk.cfg`
|
|
|
|
2. **copy**
|
|
```
|
|
cp ./chipmonk /usr/local/bin/
|
|
cp ./chipmonk.service /etc/systemd/system/
|
|
cp ./chipmonk.cfg /usr/local/etc/
|
|
```
|
|
4. automatically **start** it using systemd
|
|
```
|
|
systemctl enable chipmonk.service
|
|
systemctl start chipmonk.service
|
|
```
|
|
|
|
## Use as utility
|
|
|
|
You may also run script `chipmonk` without the -d flag to display system stats.
|