Page 1 of 1

Station System/Diagnostic Data on Dashboard

Posted: Sun 30 Oct 2016 5:35 pm
by CO_Mike
I recently migrated from 1.9.4 to MX b3041 on a Windows Server 2008 R2 machine. First of all, great improvements across the board.

After searching the forum and wiki, I realize that the dashboard can only read the data provided by the MX engine as exposed in http://localhost:8998/api/data/currentdata and doesn't use any of the web tags made available through the processing engine.

I primarily use Cumulus to upload data to the various collector sites (CWOP, WU, AWEKAS, etc.) and don't host a website. So for my purposes, the built-in dashboard and associated pages are fine and save the overhead of running a local web server. That said, it would be helpful to have access to some of the system info and diagnostic data like <#DavisFirmwareVersion>, <#txbattery channel=1>, <#battery>, <#DavisTotalPacketsReceived>, <#DavisTotalPacketsMissed>, <#DavisNumberOfResynchs>, <#DavisMaxInARow>, <#DavisNumCRCerrors>.

Is there any way to augment the currentdata available to the dashboard?

Re: Station System/Diagnostic Data on Dashboard

Posted: Sun 30 Oct 2016 5:47 pm
by steve
You could create a template file using web tags in some format of your choosing, e.g. plain text, xml, json etc, and get MX to process it locally in the MX interface directory at the realtime or standard interval. Then add code to the dashboard javascript to read that file (the interface directory is the root directory of the built-in web server), process it, and display it on the dashboard.

Note that I haven't actually tried this myself. And if I remember correctly, some of the Davis stats aren't actually available for reasons that I forget at the moment.