More work on simple install script. Now this needs to be tested on latest venus os release

This commit is contained in:
Tobi177 2020-07-30 22:18:01 +02:00
parent 50ceba40f2
commit cd6d183604

View file

@ -1,8 +1,9 @@
#!/bin/bash
echo "Install Chargery BMS on Venus OS"
sleep 2
read -p "Install Chargery BMS on Venus OS at your own risk? [Y to proceed]" -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo "Download driver and library"
wget https://github.com/Tobi177/venus-chargerybms/archive/master.zip
@ -33,4 +34,23 @@ chmod +x /opt/victronenergy/chargerybms/service/log/run
ln -s /opt/victronenergy/chargerybms/service /service/chargerybms
echo "Copy gui files"
cp venus-chargerybms-master/gui/qml/MbItemRowTOBO.qml /opt/victronenergy/gui/qml
cp venus-chargerybms-master/gui/qml/MbTextDescriptionTOBO.qml /opt/victronenergy/gui/qml
cp venus-chargerybms-master/gui/qml/PageBatteryChargeryBMS.qml /opt/victronenergy/gui/qml
cp venus-chargerybms-master/gui/qml/PageBatteryChargeryBMSImpedances.qml /opt/victronenergy/gui/qml
cp venus-chargerybms-master/gui/qml/PageBatteryChargeryBMSVoltages.qml /opt/victronenergy/gui/qml
cp venus-chargerybms-master/gui/qml/PageMain.qml /opt/victronenergy/gui/qml
read -p "Setup new gui overview? [Y to proceed]" -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo "Setup new overview"
cp venus-chargerybms-master/gui/qml/OverviewTiles.qml /opt/victronenergy/gui/qml
fi
echo "To finish, reboot the Venus OS device"
fi