Last active
November 23, 2015 11:09
-
-
Save tkurki/84cd71d2329f3ffae9f0 to your computer and use it in GitHub Desktop.
Signal K sample (multiple values)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"uuid": "10101011", | |
"navigation": { | |
"speedThroughWater": { | |
"value": 3.2444444444444445, | |
"sentence": "VHW", | |
"$source": "nmea2.II", | |
"timestamp": "2015-11-15T14:37:32.306Z", | |
"values": { | |
"nmea1.II": { | |
"value": 3.2444444444444445, | |
"timestamp": "2015-11-15T14:37:32.125Z", | |
"sentence": "VHW" | |
}, | |
"nmea2.II": { | |
"value": 3.2444444444444445, | |
"timestamp": "2015-11-15T14:37:32.306Z", | |
"sentence": "VHW" | |
}, | |
"n2k1.115": { | |
"value": 3.21, | |
"timestamp": "2014-08-15-19:01:43.301", | |
"pgn": 128259 | |
}, | |
"n2k2.115": { | |
"value": 3.21, | |
"timestamp": "2014-08-15-19:01:43.301", | |
"pgn": 128259 | |
} | |
} | |
} | |
}, | |
"sources": { | |
"nmea1": { | |
"label": "nmea1", | |
"type": "NMEA0183", | |
"II": { | |
"talker": "II", | |
"sentences": { | |
"VHW": "2015-11-15T14:52:01.092Z", | |
"VTG": "2015-11-15T14:52:01.192Z", | |
"MWV": "2015-11-15T14:52:00.000Z", | |
"HDT": "2015-11-15T14:52:00.990Z", | |
"DBT": "2015-11-15T14:52:00.000Z", | |
"GLL": "2015-11-15T09:56:19.000Z", | |
"HDM": "2015-11-15T14:52:00.896Z" | |
} | |
} | |
}, | |
"nmea2": { | |
"label": "nmea2", | |
"type": "NMEA0183", | |
"II": { | |
"talker": "II", | |
"sentences": { | |
"VHW": "2015-11-15T14:52:01.122Z", | |
"VTG": "2015-11-15T14:52:01.225Z", | |
"MWV": "2015-11-15T14:52:01.000Z", | |
"HDT": "2015-11-15T14:52:00.926Z", | |
"DBT": "2015-11-15T14:52:00.000Z", | |
"GLL": "2015-11-15T09:56:23.000Z", | |
"HDM": "2015-11-15T14:52:00.926Z" | |
} | |
} | |
}, | |
"n2k1": { | |
"115": { | |
"src": "115", | |
"pgns": { | |
"128259": "2014-08-15-19:00:01.086", | |
"128267": "2014-08-15-19:00:00.591", | |
"128275": "2014-08-15-19:00:01.194", | |
"130306": "2014-08-15-19:00:00.514" | |
} | |
}, | |
"160": { | |
"src": "160", | |
"pgns": { | |
"126992": "2014-08-15-19:00:01.139", | |
"127250": "2014-08-15-19:00:00.892", | |
"128259": "2014-08-15-19:00:01.240", | |
"129025": "2014-08-15-19:00:00.540", | |
"129026": "2014-08-15-19:00:00.740", | |
"129291": "2014-08-15-19:00:00.332", | |
"130577": "2014-08-15-19:00:00.537" | |
} | |
}, | |
"label": "n2k1", | |
"type": "NMEA2000" | |
}, | |
"n2k2": { | |
"115": { | |
"src": "115", | |
"pgns": { | |
"128259": "2014-08-15-19:00:01.086", | |
"128267": "2014-08-15-19:00:00.591", | |
"128275": "2014-08-15-19:00:01.194", | |
"130306": "2014-08-15-19:00:00.514" | |
} | |
}, | |
"160": { | |
"src": "160", | |
"pgns": { | |
"126992": "2014-08-15-19:00:01.139", | |
"127250": "2014-08-15-19:00:00.892", | |
"128259": "2014-08-15-19:00:01.240", | |
"129025": "2014-08-15-19:00:00.540", | |
"129026": "2014-08-15-19:00:00.740", | |
"129291": "2014-08-15-19:00:00.332", | |
"130577": "2014-08-15-19:00:00.537" | |
} | |
}, | |
"label": "n2k2", | |
"type": "NMEA2000" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very nearly there. I think we need to have an extra level in the sources which matches the categories i.e. Sources/Propulsion or Sources/Tanks and this will allow the consumer to quickly grab just the sources for the data it is interested in. Does this make sense ?