<div dir="ltr"><div class="gmail_default" style="font-size:x-small">All,</div><div class="gmail_default" style="font-size:x-small"><br></div><div class="gmail_default" style="font-size:x-small">This is a work in progress, for my own use right now.  </div><div class="gmail_default" style="font-size:x-small"><br></div><div class="gmail_default" style="font-size:x-small">It shows presentation of magnetometer data in a web browser.  Ignore the actual data shown, it properly signed quantities.</div><div class="gmail_default" style="font-size:x-small"><br></div><div class="gmail_default" style="font-size:x-small">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.</div><div class="gmail_default" style="font-size:x-small"><br></div><div class="gmail_default" style="font-size:x-small">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.  </div><div class="gmail_default" style="font-size:x-small"><br></div><div class="gmail_default" style="font-size:x-small">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.</div><div class="gmail_default" style="font-size:x-small"><br></div><div class="gmail_default" style="font-size:x-small">Data logging locally and remotely could both be controlled.</div><div class="gmail_default" style="font-size:x-small"><br></div><div class="gmail_default" style="font-size:x-small">Again this is just eye candy, showing what can be done.  No frameworks, user's language of choice for the service.</div><div class="gmail_default" style="font-size:x-small"><br></div><div class="gmail_default" style="font-size:x-small">Dave Witten</div></div>