Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: SignalK/signalk-to-nmea2000
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.0.1
Choose a base ref
...
head repository: SignalK/signalk-to-nmea2000
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
25 changes: 25 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Node.js CI & Test

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
20 changes: 20 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish to npm

# https://stackoverflow.com/questions/69063452/github-actions-on-release-created-workflow-trigger-not-working
on:
workflow_run:
workflows: ["Release on tag"]
types: [completed]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
33 changes: 33 additions & 0 deletions .github/workflows/release_on_tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: 'Release on tag'
on:
push:
tags:
- '*'

jobs:
release:
permissions:
contents: write
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install && npm pack

- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@v1
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_PAT }}

- name: Create Release
uses: ncipollo/release-action@v1
with:
body: ${{steps.github_release.outputs.changelog}}
artifacts: "signalk-to-influxdb2*.tgz"
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_PAT }}
13 changes: 13 additions & 0 deletions .github/workflows/require_pr_label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Pull Request Labels
on:
pull_request:
types: [opened, labeled, unlabeled, synchronize]
jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: mheap/github-action-required-labels@v1
with:
mode: exactly
count: 1
labels: "fix, feature, doc, chore, test, ignore, other, dependencies"
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
language: node_js
node_js:
- "6"
- "10"
- "16"
sudo: false
70 changes: 70 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,75 @@
## Change Log

### v2.13.0 (2021/08/17 13:28 +00:00)
- [#54](https://github.com/SignalK/signalk-to-nmea2000/pull/54) feature: add support for navigation data (129283, 129284) (@ardbiesheuvel)
- [#56](https://github.com/SignalK/signalk-to-nmea2000/pull/56) Ais delta guard (@tkurki)
- [#55](https://github.com/SignalK/signalk-to-nmea2000/pull/55) chore: fix failing test (@tkurki)

### v2.12.0 (2020/12/03 21:36 +00:00)
- [#52](https://github.com/SignalK/signalk-to-nmea2000/pull/52) feature: add Sea/Air Temp PGN (130310) (@benwingrove)

### v2.11.0 (2020/10/30 21:34 +00:00)
- [#47](https://github.com/SignalK/signalk-to-nmea2000/pull/47) feature: add support for n2k alerts (126983, 126985) (@jncarter123)

### v2.10.0 (2020/05/26 14:31 +00:00)
- [#50](https://github.com/SignalK/signalk-to-nmea2000/pull/50) feature: source filtering (@tkurki)
- [#49](https://github.com/SignalK/signalk-to-nmea2000/pull/49) fix: plugin name in server ui (@tkurki)

### v2.9.1 (2020/04/28 19:19 +00:00)
- [#48](https://github.com/SignalK/signalk-to-nmea2000/pull/48) fix: crashing with system time enabled (@sbender9)

### v2.9.0 (2020/03/21 13:38 +00:00)
- [#46](https://github.com/SignalK/signalk-to-nmea2000/pull/46) feature: add support for attitude (127257) (@sbender9)

### v2.8.0 (2020/03/10 18:53 +00:00)
- [#40](https://github.com/SignalK/signalk-to-nmea2000/pull/40) Added Atmospheric Pressure using Environmental Parameters PGN 130311. (@htool)
- [#44](https://github.com/SignalK/signalk-to-nmea2000/pull/44) feture: add a setting to configure how to resend (@sbender9)
- [#42](https://github.com/SignalK/signalk-to-nmea2000/pull/42) fix: show an error message for unknown tank types (@sbender9)
- [#41](https://github.com/SignalK/signalk-to-nmea2000/pull/41) feature: add support for conversions to use subscriptions (@sbender9)

### v2.7.0 (2020/03/03 17:21 +00:00)
- [#39](https://github.com/SignalK/signalk-to-nmea2000/pull/39) feature: add option to periodically resend data to the bus (@sbender9)

### v2.6.0 (2020/02/22 19:36 +00:00)
- [#37](https://github.com/SignalK/signalk-to-nmea2000/pull/37) Feature: Extend support for other PGN 130312 temperature sources (@jncarter123)

### v2.5.0 (2019/07/27 18:43 +00:00)
- [#30](https://github.com/SignalK/signalk-to-nmea2000/pull/30) chore: update to latest canboatjs (@sbender9)
- [#29](https://github.com/SignalK/signalk-to-nmea2000/pull/29) feature: support "greyWater" keys (@sbender9)

### v2.4.1 (2019/06/04 17:32 +00:00)
- [#26](https://github.com/SignalK/signalk-to-nmea2000/pull/26) fix: bad heading values causing ais encoding to fail (@sbender9)

### v2.4.0 (2019/05/29 12:48 +00:00)
- [#25](https://github.com/SignalK/signalk-to-nmea2000/pull/25) feature: add Speed Through Water PGN (@jtroyer76)

### v2.3.0 (2019/05/02 12:13 +00:00)
- [#24](https://github.com/SignalK/signalk-to-nmea2000/pull/24) feature: add engine parameters rapid update 127488 (@sbender9)

### v2.2.4 (2018/11/06 20:01 +00:00)
- [#23](https://github.com/SignalK/signalk-to-nmea2000/pull/23) fix; update to support changes to the Instance field names in canboat (@sbender9)

### v2.2.3 (2018/09/13 23:30 +00:00)
- [#22](https://github.com/SignalK/signalk-to-nmea2000/pull/22) fix: alternator voltage is getting set to the wrong value (@sbender9)

### v2.2.2 (2018/09/13 16:31 +00:00)
- [#19](https://github.com/SignalK/signalk-to-nmea2000/pull/19) fix: Engine Parameters, Dynamic not getting generated correctly (@sbender9)

### v2.2.1 (2018/08/10 01:18 +00:00)
- [#18](https://github.com/SignalK/signalk-to-nmea2000/pull/18) fix: saving configuration fails when there is no tank data in signalk (@sbender9)

### v2.2.0 (2018/07/14 17:35 +00:00)
- [#12](https://github.com/SignalK/signalk-to-nmea2000/pull/12) [WIP] chore: update to use the latest plugin api (@sbender9)
- [#16](https://github.com/SignalK/signalk-to-nmea2000/pull/16) feature: implement temperature and dynamic engine parameter sending (@mairas)
- [#15](https://github.com/SignalK/signalk-to-nmea2000/pull/15) doc: add reference to canboatjs & admin ui (@tkurki)
- [#13](https://github.com/SignalK/signalk-to-nmea2000/pull/13) doc: note adding pgns to allowed tx list of ntg-1 (@webmasterkai)

### v2.1.0 (2018/02/06 04:03 +00:00)
- [#11](https://github.com/SignalK/signalk-to-nmea2000/pull/11) feature: add conversion for tank level and capacity (@sbender9)

### v2.0.1 (2018/02/05 23:44 +00:00)
- [#10](https://github.com/SignalK/signalk-to-nmea2000/pull/10) fix: battery conversion not working (@sbender9)

### v2.0.0 (2018/01/30 00:42 +00:00)
- [#8](https://github.com/SignalK/signalk-to-nmea2000/pull/8) refactor: break conversion out into separate files and use canboatjs (@sbender9)
- [#6](https://github.com/SignalK/signalk-to-nmea2000/pull/6) fix: ais PGNs (@sbender9)
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -4,8 +4,6 @@

Plugin to convert Signal K to NMEA2000

Currently only support apparent wind, gps location and system time.

Requires that toChildProcess be set to nmea2000out for the actisense execute provider:

```
@@ -19,3 +17,10 @@ Requires that toChildProcess be set to nmea2000out for the actisense execute pro
}
}
```

or you can configure your N2K connection to use canboatjs in the server admin user interface:
![image](https://user-images.githubusercontent.com/1049678/41557237-ac2e2eea-7345-11e8-8719-bbd18ef832cb.png)



Note that if you're using an NGT-1 to transmit AIS, then you need to use their Windows [NMEA Reader](https://www.actisense.com/wp-content/uploads/2017/07/Actisense-NMEA-Reader-v1.517-Setup.exe_.zip) software to add the pgns (129794, 129038, 129041) in the transmitted list.
Loading