Skip to content

Commit

Permalink
Update GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-manuel committed Jan 5, 2024
1 parent d5c0730 commit da23acf
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,32 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Show folder content
run: |
pwd
ls -l
- name: Change to docs folder
run: cd docs

- name: Show folder content
run: ls -l

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 21.x
cache: yarn
cache-dependency-path: './docs/yarn.lock' # THIS PATTERN did the trick for me.
#cache: yarn
#cache-dependency-path: './yarn.lock' # THIS PATTERN did the trick for me.

- name: Cleanup
run: yarn clear

- name: Install dependencies
run: yarn install --cwd ./docs --frozen-lockfile --non-interactive
run: yarn install --frozen-lockfile --non-interactive

- name: Build
run: yarn --cwd ./docs build
run: yarn build

- name: Setup Pages
uses: actions/configure-pages@v1
Expand Down
55 changes: 55 additions & 0 deletions docs/docs/general/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,61 @@ Place a `venus-data.tar.gz` file in the folder `/var/volatile/tmp/` by copying/u

Since driver version `>= v1.0.0` you can also get an overview of the BMS specific settings be checking the end of the [`config.default.ini`](https://github.com/Louisvdw/dbus-serialbattery/blob/master/etc/dbus-serialbattery/config.default.ini).


### Get BMS MAC address

Execute this commands to scan for Bluetooth devices and get their MAC address:

**Command to execute**
```bash
bluetoothctl
```

**Output**
```
Agent registered
[CHG] Controller xx:xx:xx:xx:xx:xx Pairable: yes
```

**Command to execute**
```bash
scan on
```

**Output**
```
Discovery started
[CHG] Controller xx:xx:xx:xx:xx:xx Discovering: yes
[CHG] Device xx:xx:xx:xx:xx:xx RSSI: -60
```

**Command to execute**
```
devices
```

**Output with device MAC addresses**
```
Device xx:xx:xx:xx:xx:xx JK-B2A24S15P
```

**Command to execute**
```
scan off
```

**Output**
```
Discovery stopped
[CHG] Device xx:xx:xx:xx:xx:xx RSSI is nil
[CHG] Controller xx:xx:xx:xx:xx:xx Discovering: no
```

**Command to execute**
```
quit
```

## How to change the default limits

The driver currently uses a fixed upper current limit for the BMS:
Expand Down

0 comments on commit da23acf

Please sign in to comment.