Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Converting SignalK battery data to NMEA200 #31

Closed
Selene53 opened this issue Oct 18, 2023 · 4 comments
Closed

Converting SignalK battery data to NMEA200 #31

Selene53 opened this issue Oct 18, 2023 · 4 comments

Comments

@Selene53
Copy link

HI, I'm having trouble converting SK to N2K in Node-red. I have a "subscriber node" connected to a "function node" which takes the single voltage as a string and creates json:
const pgn = {
"pgn": 127508,
"Battery Instance": 0,
"Instance":0,
"Voltage": Number(msg.payload ),
"Current": 0,
"Temperature":0
}
msg.payload = pgn;
return msg;

Here is the debug Output:
{pgn: 127508, Battery Instance: 0, Instance: 0, Voltage: 26.3, Current: 0, Temperature: 0}

from this function its going to a "signalk-send-nmea2000" node

If I check in "SignalK Server Log" under "signalk-server:events:nmeaJsonOut" I see the data:
"Oct 18 12:04:46 2023-10-18T19:04:46.052Z signalk-server:events:nmea2000JsonOut [ { pgn: 127508, 'Battery Instance': 0, Instance: 0, Voltage: 26.55, Current: 0, Temperature: 0 } ]"

But I don't see any reference of it under "signalk-to-nema2000" or under the WebApps @Mxtommy/Kip

Any help?
Thanks

@sbender9
Copy link
Member

What exactly are you trying to do?

You would not see this in kip or anywhere else in SK. You would only see it on other n2k devices. This just sends out n2k data.

Seems like you should just being using the signalk-to-nmea2000 plugin, no reason to be using node-red here.

@Selene53
Copy link
Author

I was trying just signalk and I thought I would see it on my Actisence NGK input to signalK but didn't, so I tried Node-red. I am seeing other instruments like the depth sounder coming in to signalk from the Actisence. Should I just assume its going out.

Backgound is I'm trying to take sensor battery data from an ESP8266 and send it to a chart plotter. Its getting in signalK
Path Value Units Timestamp Source
Battery BowThruster.2.label "BowThruster 2" 10/18 12:31:22 ESPDevices

Thanks for responding.

@sbender9
Copy link
Member

Yeah, you won't see outgoing data on the Actisense. You need to confirm with another n2k device on the network.

@Selene53
Copy link
Author

Thanks, I Really appreciate your quick responce.

@tkurki tkurki closed this as completed Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants