Changes

Jump to navigation Jump to search

X728-Software

346 bytes added, 16:36, 18 June 2021
no edit summary
git clone https://github.com/geekworm-com/x728.git
cd x728
chmod +x *.sh
4. Install script&reboot:
sudo bash x728-v1.0.shor printf "%s\n" "alias x728off='sudo x728softsdbash x728-v2.0.sh'" >> ~/.bashrc then
sudo reboot
sudo pyton /home/pi/x728bat_v1.2.py
'''UPDATED!'''You can get the following python file in /home/pi/ fold:
we add a new python script file (x728bat_v1.3 x728bat.py) to implement automatic shutdown function when the # Reading battery is low voltage due to the hardware ASD function is remove in X728 V1.3, in fact this script also fit to x728 old version,
You can found this x728bat_v1.3 x728pld.py file in /home/pi# Testing AC power off/x728 folder after you execute the command git clone successfully.loss or power adapter failure detection
User Guide: https://github.com/geekworm-com/x728 to know more details;
But we hope that the script can be executed automatically when the Raspberry Pi board boots, we can use crontab system command to achieve it. please refer to the following:
 
pi@raspberrypi ~ $ `sudo crontab -e`
 
Choose "`1`" then press Enter
 
Add a line at the end of the file that reads like this:
 
`@reboot python /home/pi/x728bat.py`
7. Power off command on Raspbian from software
sudo python x728pld.py
==uninstall x728 script==
uninsatll x728 shell script, run the following command:
sudo ./uninstall_x728.sh
 
For the x728 old shell script, you also run this command to remove it, then re-install the x728 script.
Return to [[X728]]

Navigation menu