[TangerineSDR] Web presentation of magnetometer data to multiple clients

David Witten wittend at wwrinc.com
Tue Dec 3 13:48:17 EST 2019


All,

This is a work in progress, for my own use right now.

It shows presentation of magnetometer data in a web browser.  Ignore the
actual data shown, it properly signed quantities.

The page is served by HTTP, but the sensor data is sent via Websockets.
This is done using a golang server (minimal) that launches a program
written in C that interrogates the I2C channel. When the golang program
detects a browser connection, it serves the web page.  The web page opens a
Websockets connection and streams the magnetometer data encapsulated in
JSON to the browser client.

No web server, as such, is used.  Only one HTTP/HTTPs request is used.
There are other possible ways to do this, but this one works well for my
purposes.

The intent is to have each local host send its lat/long and ip address on
startup.  The locations would be indicated on the map.  Clicking on the
marker would open a connection to that particular SBC.

Data logging locally and remotely could both be controlled.

Again this is just eye candy, showing what can be done.  No frameworks,
user's language of choice for the service.

Dave Witten
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tapr.org/pipermail/tangerinesdr_lists.tapr.org/attachments/20191203/c71f2365/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Magnetometer-Web 2019-12-03 12-27-15.png
Type: image/png
Size: 129626 bytes
Desc: not available
URL: <http://lists.tapr.org/pipermail/tangerinesdr_lists.tapr.org/attachments/20191203/c71f2365/attachment-0001.png>


More information about the TangerineSDR mailing list