2018-02-19, 09:04 PM
(This post was last modified: 2018-02-19, 09:13 PM by JohanH.
Edit Reason: added info
)
So I finally solved this one.
To get the data into SignalK I made a couple of conversions in the mnea0183-signalk plugin that imports data from NKE PNKEP,xx nmea sentences. These are now merged into the main branch of SK. See signalk on github.
I installed the new canboatjs from Scott Bender that runs in nodejs and got the signalk data out on nmea2000 through the Pican2 can0 interface. See the readme on canboatjs github.
I then use node-red to listen to the signalk websocket, filter out a sentence with performance.polarSpeed and then copy that value to tanks.blackWater.0.currentLevel and out on udp localhost back into SK. Voila the level shows up on the Raymarine display as black water tank level. Other tanks as grey water etc can be used to get more values over. It is not very pretty so I am probably going to use a signalk instrument panel on a tablet anyway.
A lot of thanks to Teppo Kurki and Scott Bender from the SignalK team that helped me get started with nodejs development and pointing me to the right places in the code.
To get the data into SignalK I made a couple of conversions in the mnea0183-signalk plugin that imports data from NKE PNKEP,xx nmea sentences. These are now merged into the main branch of SK. See signalk on github.
I installed the new canboatjs from Scott Bender that runs in nodejs and got the signalk data out on nmea2000 through the Pican2 can0 interface. See the readme on canboatjs github.
I then use node-red to listen to the signalk websocket, filter out a sentence with performance.polarSpeed and then copy that value to tanks.blackWater.0.currentLevel and out on udp localhost back into SK. Voila the level shows up on the Raymarine display as black water tank level. Other tanks as grey water etc can be used to get more values over. It is not very pretty so I am probably going to use a signalk instrument panel on a tablet anyway.
A lot of thanks to Teppo Kurki and Scott Bender from the SignalK team that helped me get started with nodejs development and pointing me to the right places in the code.