Using the existing API, which returns the 50 or so most recent APRS messages, without any idea when they were sent, we can get the 5000 character-long “result”, split it into individual messages (looking for the \n), and then stuff everything into a workable JSON structure using a parser. Then the applications can look at the elements in the data structure and do various things like notify the user that an APRS message came it, flash lights, forward the packet to some other network (Twitter or Email could be examples), etc.
Here’s what the Node-RED flow will look like for an APRS twitter bot.
There’s still a couple of issues.
- We need time stamps to know when the messages were received. Do you want to act on old messages or act more than once? A stitch in time saves nine.
- We need to find a parser that will accommodate both uncompressed and Mic-E formats and is known to be pretty error free.
- The current API can only return a fixed number of records.
It sure would be nice if a real API was provided that returned a useful JSON structure instead of this pathetic mess of a giant character string without time stamps.
–Konrad, WA4OSH