Are the current MDWS graphs created by Google Charts? https://developers.google.com/chart/
Yes I was looking at google charts last night. In fact I was actually looking at their Line charts
here.
But its not quite so simple as having the charts, you'd also need something which would accept the data from DSLstats, update the data then send it to be able to graph it to the chart.
If you were running it on your own website, you'd need to update and retain the data. I'm not sure how its currently done, but last night I was looking at the info sent from kitz_live_modem_stats.log.
It's currently sent as space delimited file, so first step would be to break down into an array for each item, something like the function explode should do that.
$file = "kitz_live_modem_stats.log";
$stats = file_get_contents($file);
$arr_stats = explode(" ", $stats);
output would be something like
print_r($arr_stats);
Array
(
[0] => 06/03/2018
[1] => 12:20
[2] => 72629
[3] => 20000
[4] => 6.2
[5] => 6.8
[6] => 6.8
[7] => 72641
[8] => 28686
[9] => PTM
[10] => 0.00
[11] => 0.00
[12] => 0
etc
)
You'd then need to identify what each stat in the array is and name it, so you can identify which piece of data you want for the particular graph you want to display.... and that's just the easy bit.
There's lots of other areas you need to think about.
- How is the data automatically going to be uploaded to your webserver
- How are you going to keep a permanent record of all the stats so that each new incoming data is added to the record
- Code for sending an array to the graph... there's some code
here which may help - You'd need .html templates to output the graph to.
Unfortunately this isn't going to be a 2 minute job just because there is such a thing as google charts