Skip to content

Commit

Permalink
Merge branch 'stephendade:master' into videostreaminfo
Browse files Browse the repository at this point in the history
  • Loading branch information
ddd999 authored Feb 27, 2024
2 parents dc3c4e0 + c619331 commit e0e4549
Show file tree
Hide file tree
Showing 14 changed files with 148 additions and 408 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:

strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
node-version: [18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install packages
run: |
cd ./deploy && ./install_common_libraries.sh
Expand All @@ -33,7 +33,7 @@ jobs:
cd ./deploy && ./build_mavlinkrouter.sh
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
Expand Down
11 changes: 0 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,6 @@ sudo apt update
sudo apt install -y nodejs
```

Note that the Raspberry Pi Zero (1) requires an unofficial build of nodejs, as Rpanion-server requires
nodejs version 12 or greater, and official support for the Pi Zero ended with nodejs version 11;

```
wget https://unofficial-builds.nodejs.org/download/release/v16.19.1/node-v16.19.1-linux-armv6l.tar.xz
sudo mkdir -p /usr/local/lib/nodejs
sudo tar -xJvf node-v16.19.1-linux-armv6l.tar.xz -C /usr/local/lib/nodejs
sudo ln -s /usr/local/lib/nodejs/node-v16.19.1-linux-armv6l/bin/node /usr/local/bin
sudo ln -s /usr/local/lib/nodejs/node-v16.19.1-linux-armv6l/bin/npm /usr/local/bin
```

The required prerequisite packages can be installed via:

```
Expand Down
139 changes: 58 additions & 81 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"express-fileupload": "^1.4.0",
"express-rate-limit": "^6.9.0",
"express-validator": "^7.0.1",
"microtime": "^3.1.1",
"moment": "^2.29.4",
"node-mavlink": "^2.0.5",
"npm": "^9.8.1",
Expand Down
2 changes: 1 addition & 1 deletion python/tlog2kmz.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def mavtogpx_filepath():

def convert_tlog_files():
"""Convert any tlog files to GPX, KML, KMZ and PNG."""
mavlog = glob.glob("flightlogs/tlogs/*.tlog")
mavlog = glob.glob("flightlogs/*.tlog")
latest_file = max(mavlog, key=os.path.getctime)
kmzlogs = glob.glob("flightlogs/kmzlogs/*.kmz")
passed = True
Expand Down
3 changes: 1 addition & 2 deletions server/cloudUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class cloudUpload {
}

this.topfolder = path.join(appRoot.toString(), 'flightlogs')
this.binlogfolder = path.join(this.topfolder, 'binlogs')

this.rsyncPid = null

Expand All @@ -40,7 +39,7 @@ class cloudUpload {
const rsync = new Rsync()
.shell('ssh -o StrictHostKeyChecking=no')
.flags('avzP')
.source(this.binlogfolder + '/')
.source(this.topfolder + '/')
.destination(this.options.binUploadLink)
.include('*.bin')

Expand Down
Loading

0 comments on commit e0e4549

Please sign in to comment.