Node.js Code Example: Geocode RBN Stream with QRZ XML Api

Discussion in 'Amateur Radio Software' started by AF7TI, Nov 1, 2018.

Tags:
ad: L-HROutlet
ad: l-rl
ad: l-assoc
ad: L-MFJ
ad: MessiPaoloni-1
ad: Left-2
ad: Subscribe
ad: Left-3
  1. AF7TI

    AF7TI XML Subscriber QRZ Page

    Here's basic working Node.js code to

    -consume a socket.io stream of CW and FT8 Reverse Beacon Spots
    -geocode de and dx using QRZ XML API callsign= then dxcc=
    -save spots with geocoded callsigns as nested object

    this code is in no way a proper use of Node and is only to demonstrate how to convert client-side socket stream processing and geocoding to server-side with the fewest changes

    to use replace callsign and password

    https://gist.githubusercontent.com/AF7TI/d0eb11af70a05df3cfa76ea09d27d114/raw/273f9034eb21e7a607a3f61dd41ffd825244bcd1/nodeapp.js
     

    Attached Files:

  2. AF7TI

    AF7TI XML Subscriber QRZ Page

    Here's example map consuming the real-time geocoded data. Will tidy up and document this weekend.

    The page is getting data object from node.js server every 1 sec. The data object contains links and nodesCumulative. links are last 100 spots, nodesCumulative are all nodes seen since server started.

    This example demonstrates how to use the QRZ XML interface on server, cache results and serve spot data as JSON to client via Ajax.

    http://bl.ocks.org/AF7TI/raw/51a055a1bd9aa6adc768d2bb83d8f61a/
     
  3. AF7TI

    AF7TI XML Subscriber QRZ Page

  4. AF7TI

    AF7TI XML Subscriber QRZ Page

    added Dockerfile so application can be deployed as serverless container. i'm running rbnSocket and qrzSocket as containers in an Amazon ECS aka Fargate Cluster.
     

Share This Page

ad: wmr-1