[Twisted-Python] Handling of NMEA messages

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Wed Dec 1 06:43:40 MST 2010


On 29 Nov, 12:01 pm, albert.brandl at weiermayer.com wrote:
>Hi!
>
>We are working on a project that has to extract weather information 
>from
>an NMEA stream. There is a NMEAReceiver class, but it only extracts GPS
>information - as expected, since the class is defined in t.p.gps.nmea.
>
>We intend to add the NMEA-0183 messages necessary for my purposes. The
>question is: should we just extend the NMEAReceiver? Weather 
>information
>is not exactly what one would expect in a class below t.p.gps...
>
>On the other hand, it would be strange to create a different kind of
>NMEAReceiver which knows how to handle the messages dealing with
>weather data.

Perhaps the NMEA and GPS parts of NMEAReceiver can be separated from 
each other, so that your weather extractor can use just the former and 
ignore the latter.

You may also want to look at 
https://code.launchpad.net/~lvh/twisted/positioning and see if it 
influences your plans at all.  It would be nice if we eventually merged 
that code. :)

Jean-Paul




More information about the Twisted-Python mailing list