Skip to content

Read data from the nmea0183 and nmea0183out stream and parse that using regular expressions and jexl

Notifications You must be signed in to change notification settings

codekilo/regexp-jexl-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

regexp-jexl-reader

Read data from the nmea0183 and nmea0183out stream and parse that using regular expressions and jexl

Example to parse the PASHR Message: screenshor

In this example the regular expression is ^\$PASHR,([^,]*),([^,]*),([^,]*),([^,]*),([^,]*). When an incomming line matches this regular expression all corresponding calculations are applied. A calculation consist of a Jexl expression and a SignalK path. In the Jexl expression the variable m can be used to retrieve the results of the regular expression match. m[4] is the value of the 4th group in the regular expression. The expression in this example are {roll: m[4] * 0.01745329252, pitch: m[5] * 0.01745329252} and m[2] * 0.01745329252

About

Read data from the nmea0183 and nmea0183out stream and parse that using regular expressions and jexl

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published