Utility to merge two Signal K objects, resolving conflicts using the timestamp of child objects.
npm install signalk-merge
var merge = ;/*Merge a full signalK object into another.Arguments:0: full signalk object1: full signalk object*/var signalk = merge;/*Merge a partial 'navigation' object into vessel 'self'.Arguments:0: full signalk object1: vessel identifier or 'self'2: object to merge into the vessel*/signalk = merge;
Note: At the moment, it's not possible to merge partial objects into anything else but a vessel. Scheduled for the next release.