Skip to content

Commit

Permalink
Prepare for removing dev branch
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-manuel committed Feb 28, 2024
1 parent 47cd9fc commit 525d241
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 21 deletions.
16 changes: 7 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,6 @@

* The Bluetooth and CAN connections are still not stable on some systems. If you want to have a stable connection use the serial connection.

## Known issues

* Driver version greater or equal to `v1.0.20231126dev` and smaller or equal to `v1.2.20240227dev`:

* If multiple batteries have the same `unique_identifier`, then they are displayed as one battery in the VRM portal and if you change the name,
it get changed for all dbus-serialbattries. Please change the capacity of the batteries to be unique (if the unique identifier ends with Ah)
or change the custom field on supported BMS.
E.g.: 278 Ah, 279 Ah,280 Ah,281 Ah and 282 Ah, if you have 5 batteries with 280 Ah.

## Breaking changes

* Driver version greater or equal to `v1.2.20240219beta`
Expand Down Expand Up @@ -95,6 +86,13 @@
* Changed: Fixed some smaller errors by @mr-manuel
* Changed: More detailed error output when an exception happens by @mr-manuel

### Known issues for v1.1.20240121

* If multiple batteries have the same `unique_identifier`, then they are displayed as one battery in the VRM portal and if you change the name,
it get changed for all dbus-serialbattries. Please change the capacity of the batteries to be unique (if the unique identifier ends with Ah)
or change the custom field on supported BMS.
E.g.: 278 Ah, 279 Ah,280 Ah,281 Ah and 282 Ah, if you have 5 batteries with 280 Ah.


## v1.0.20240102beta

Expand Down
24 changes: 12 additions & 12 deletions etc/dbus-serialbattery/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ latest_release_louisvdw_stable=$(curl -s https://api.github.com/repos/Louisvdw/d
# louisvdw beta
latest_release_louisvdw_beta=$(curl -s https://api.github.com/repos/Louisvdw/dbus-serialbattery/releases | grep "tag_name.*beta" | cut -d : -f 2,3 | tr -d "\ " | tr -d \" | tr -d \, | head -n 1)

# louisvdw dev
latest_release_louisvdw_dev=$(curl -s https://raw.githubusercontent.com/Louisvdw/dbus-serialbattery/dev/etc/dbus-serialbattery/utils.py | grep DRIVER_VERSION | awk -F'"' '{print "v" $2}')
# louisvdw master branch
latest_release_louisvdw_nightly=$(curl -s https://raw.githubusercontent.com/Louisvdw/dbus-serialbattery/master/etc/dbus-serialbattery/utils.py | grep DRIVER_VERSION | awk -F'"' '{print "v" $2}')

# mr-manuel stable
latest_release_mrmanuel_stable=$(curl -s https://api.github.com/repos/mr-manuel/venus-os_dbus-serialbattery/releases/latest | grep "tag_name" | cut -d : -f 2,3 | tr -d "\ " | tr -d \" | tr -d \,)

# mr-manuel beta
latest_release_mrmanuel_beta=$(curl -s https://api.github.com/repos/mr-manuel/venus-os_dbus-serialbattery/releases | grep "tag_name.*beta" | cut -d : -f 2,3 | tr -d "\ " | tr -d \" | tr -d \, | head -n 1)

# mr-manuel dev
latest_release_mrmanuel_dev=$(curl -s https://raw.githubusercontent.com/mr-manuel/venus-os_dbus-serialbattery/dev/etc/dbus-serialbattery/utils.py | grep DRIVER_VERSION | awk -F'"' '{print "v" $2}')
# mr-manuel master branch
latest_release_mrmanuel_nightly=$(curl -s https://raw.githubusercontent.com/mr-manuel/venus-os_dbus-serialbattery/master/etc/dbus-serialbattery/utils.py | grep DRIVER_VERSION | awk -F'"' '{print "v" $2}')

# done
echo " done."
Expand All @@ -54,8 +54,8 @@ version_list=(
"latest release \"$latest_release_mrmanuel_stable\" (mr-manuel's repo, stable, most up to date)"
"beta build \"$latest_release_louisvdw_beta\" (louisvdw's repo)"
"beta build \"$latest_release_mrmanuel_beta\" (mr-manuel's repo, no errors after 72 h runtime, long time testing needed)"
"dev build \"$latest_release_louisvdw_dev\" (louisvdw's repo)"
"dev build \"$latest_release_mrmanuel_dev\" (mr-manuel's repo, newest features and fixes, bugs possible)"
"nightly build \"$latest_release_louisvdw_nightly\" (louisvdw's repo)"
"nightly build \"$latest_release_mrmanuel_nightly\" (mr-manuel's repo, newest features and fixes, bugs possible)"
"specific version"
"local tar file"
"quit"
Expand Down Expand Up @@ -84,12 +84,12 @@ do
#echo "Selected number: $REPLY"
break
;;
"dev build \"$latest_release_louisvdw_dev\" (louisvdw's repo)")
"nightly build \"$latest_release_louisvdw_nightly\" (louisvdw's repo)")
echo "Selected: $version"
#echo "Selected number: $REPLY"
break
;;
"dev build \"$latest_release_mrmanuel_dev\" (mr-manuel's repo, newest features and fixes, bugs possible)")
"nightly build \"$latest_release_mrmanuel_nightly\" (mr-manuel's repo, newest features and fixes, bugs possible)")
echo "Selected: $version"
#echo "Selected number: $REPLY"
break
Expand Down Expand Up @@ -185,14 +185,14 @@ fi



## dev builds
if [ "$version" = "dev build \"$latest_release_louisvdw_dev\" (louisvdw's repo)" ] || [ "$version" = "dev build \"$latest_release_mrmanuel_dev\" (mr-manuel's repo, newest features and fixes, bugs possible)" ]; then
## nightly builds
if [ "$version" = "nightly build \"$latest_release_louisvdw_nightly\" (louisvdw's repo)" ] || [ "$version" = "nightly build \"$latest_release_mrmanuel_nightly\" (mr-manuel's repo, newest features and fixes, bugs possible)" ]; then

branch="dev"
branch="master"

cd /tmp

if [ "$version" = "dev build \"$latest_release_mrmanuel_dev\" (mr-manuel's repo, newest features and fixes, bugs possible)" ]; then
if [ "$version" = "nightly build \"$latest_release_mrmanuel_nightly\" (mr-manuel's repo, newest features and fixes, bugs possible)" ]; then

# clean already extracted folder
rm -rf /tmp/venus-os_dbus-serialbattery-$branch
Expand Down

0 comments on commit 525d241

Please sign in to comment.