Technical Discussion
  >> Technical Issues


Register (or login) on our website and you will not see this ad.


  Print Thread
Standard User StephenTodd
(committed) Fri 30-Nov-12 22:08:45
Print Post

Interactive graphing for HG612 statistics


[link to this post]
 
I have been using Bald-Eagle's very helpful statistics gathering for the HG612 for some time. ( http://forum.kitz.co.uk/index.php/topic,10552.msg208... etc)

However, I did find the associated graphing rather laborious. I have put together an interactive graphing package that works off the same modem_stats.log file he generates. It operates from a modern web browser: Chrome, Opera, Firefox and IE 10 tested (IE slow to load the data). The fast Dygraphs package does the real work ( http://dygraphs.com/index.html )

You can try it by visiting http://programbits.co.uk/modemGraph/plotstats.html and pointing it at your log file. Internet security rules mean it is a few (very easy) steps to load the data initially; but you can then easily zoom in and out, change details plotted, etc.

For now, if you have any comments/issues etc please post them on this thread. I may arrange it in a more 'normal' repository at some point.

It currently consists of two files. plotstats.html contains the HTML and javascript source, and dygraph-combined.js the underlying graphing package.

--
Moved (with trepidation) to BT Infinity 2 for upload speed. Happy BE user for several years.

Edited by StephenTodd (Fri 30-Nov-12 22:11:09)

Standard User Bald_Eagle1
(committed) Sat 01-Dec-12 22:27:51
Print Post

Re: Interactive graphing for HG612 statistics


[re: StephenTodd] [link to this post]
 
After confirming the log file location & ticking a few boxes, I can't seem to get this to generate anything - using IE 8.


I see this error message:-

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; eSobiSubscriber 2.0.4.16; MAAR; InfoPath.1; .NET4.0C; .NET4.0E)
Timestamp: Sat, 1 Dec 2012 22:34:41 UTC


Message: Object doesn't support this property or method
Line: 121
Char: 3
Code: 0
URI: http://programbits.co.uk/modemGraph/plotstats.html




Any suggestions?

Edited by Bald_Eagle1 (Sat 01-Dec-12 22:35:36)

Standard User StephenTodd
(committed) Sun 02-Dec-12 10:41:09
Print Post

Re: Interactive graphing for HG612 statistics


[re: Bald_Eagle1] [link to this post]
 
I forgot in my original post to say 'thank you' for your helpful scripts: so, thank you.

I designed this plotting for later browsers, but I'll see if it can easily be made to work on older ones. I'll post later how things go.
Meanwhile, you might try to see if it works for you on Chrome or other up to date browser.

The immediate problem your saw with IE8 is that it does not support the indexOf method on arrays: I can easily fix that.
On IE8, I find that I can't get the file input dialog to come up either. It sounds as if you were able to get that working.
However, when I tested with IE9 it got over those issues; but never managed to show a graph either, even though it didn't produce any diagnostic messages.

All my IE tests except IE10 are using IETester. http://www.my-debugbar.com/wiki/IETester/HomePage It is certainly a very useful tool, but I don't know how accurately it reflects these details of the different IE versions.

--
Moved (with trepidation) to BT Infinity 2 for upload speed. Happy BE user for several years.

Edited by StephenTodd (Sun 02-Dec-12 10:42:27)


Register (or login) on our website and you will not see this ad.

Standard User StephenTodd
(committed) Sat 08-Dec-12 00:38:06
Print Post

Re: Interactive graphing for HG612 statistics


[re: StephenTodd] [link to this post]
 
I looked into it a little more and there are several things that break on IE8 that would not be worth fixing, especially based on the lack of response to this post.

My general approach for websites is to try to make sure they work even on IE6. But where the web browser is really being used as an application hosting environment I think it is much more reasonable to limit interoperation to modern browsers.

--
Moved (with trepidation) to BT Infinity 2 for upload speed. Happy BE user for several years.
  Print Thread

Jump to