More work on simple install script. Now this needs to be tested on latest venus os release
This commit is contained in:
parent
50ceba40f2
commit
cd6d183604
1 changed files with 44 additions and 24 deletions
|
|
@ -1,8 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "Install Chargery BMS on Venus OS"
|
read -p "Install Chargery BMS on Venus OS at your own risk? [Y to proceed]" -n 1 -r
|
||||||
sleep 2
|
echo # (optional) move to a new line
|
||||||
|
if [[ $REPLY =~ ^[Yy]$ ]]
|
||||||
|
then
|
||||||
echo "Download driver and library"
|
echo "Download driver and library"
|
||||||
|
|
||||||
wget https://github.com/Tobi177/venus-chargerybms/archive/master.zip
|
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
|
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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue