Kitz ADSL Broadband Information
adsl spacer  
Support this site
Home Broadband ISPs Tech Routers Wiki Forum
 
     
   Compare ISP   Rate your ISP
   Glossary   Glossary
 
Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: 1 2 [3]

Author Topic: DSLstats pre-release version 6.3.5  (Read 7659 times)

broadstairs

  • Kitizen
  • ****
  • Posts: 3697
Re: DSLstats pre-release version 6.3.5
« Reply #30 on: April 01, 2018, 10:55:40 AM »

Eric I think the single line per minute method works well for both human readers and parsing the file with something like PHP especially as the data is space delimited.

Stuart
Logged
ISP:Vodafone Router:Vodafone Wi-Fi hub FTTP

ejs

  • Kitizen
  • ****
  • Posts: 2078
Re: DSLstats pre-release version 6.3.5
« Reply #31 on: April 01, 2018, 10:57:10 AM »

I think one sample per line would make the file much easier to import or use with other programs.
Logged

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 43432
  • Penguins CAN fly
    • DSLstats
Re: DSLstats pre-release version 6.3.5
« Reply #32 on: April 01, 2018, 11:09:04 AM »

There's one small thing to be aware of: Linux systems use LF for a line break, but Windows uses CRLF. So if you're collecting the data using a Raspberry Pi but processing it using Windows, you'll have to deal with LF line breaks. Is that a problem?
Logged
  Eric

kitz

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 33879
  • Trinity: Most guys do.
    • http://www.kitz.co.uk
Re: DSLstats pre-release version 6.3.5
« Reply #33 on: April 01, 2018, 11:17:06 AM »

If anyone gets to the stage of wanting to draw their own graphs from google from the data then you'd need something like a CRLF delimiter to break down the data anyhow.

I haven't properly thought that far in advance yet.... but if reading data from the file then I'd use space delimiter to break down the various elements into an array and a CRLF delimiter to identify and separate the various arrays for each data row.    If it was all spaces then it will be harder to search for the end of each separate row of data before breaking down the arrays into relevant fields.

TBH I thought you'd used CRLF on purpose because it makes it easier programming wise to do something with the data.. and easier on the human eye to read it.


----
ETA

Another example of how long it takes me to type these days..   there were no other responses about using single line methods when I started.   Sorry for continually being late to the party :(

« Last Edit: April 01, 2018, 11:19:44 AM by kitz »
Logged
Please do not PM me with queries for broadband help as I may not be able to respond.
-----
How to get your router line stats :: ADSL Exchange Checker

broadstairs

  • Kitizen
  • ****
  • Posts: 3697
Re: DSLstats pre-release version 6.3.5
« Reply #34 on: April 01, 2018, 11:31:02 AM »

There's one small thing to be aware of: Linux systems use LF for a line break, but Windows uses CRLF. So if you're collecting the data using a Raspberry Pi but processing it using Windows, you'll have to deal with LF line breaks. Is that a problem?

I dont believe it is an issue especially when using PHP, at least I've not found one  ;)

Stuart
Logged
ISP:Vodafone Router:Vodafone Wi-Fi hub FTTP

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 43432
  • Penguins CAN fly
    • DSLstats
Re: DSLstats pre-release version 6.3.5
« Reply #35 on: April 01, 2018, 12:34:23 PM »

OK, thanks for all the comments. I'll go ahead with line breaks as dividers between the sets of data.
Logged
  Eric

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: DSLstats pre-release version 6.3.5
« Reply #36 on: April 01, 2018, 04:09:55 PM »

In the "Event Log", is there a reason for the blank line that separates the "Recording Started" and the "IP address is now . . ." lines?

Example --

01 Apr 2018 16:04:39   Recording started

01 Apr 2018 16:04:43   IP address is now W.X.Y.Z
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 43432
  • Penguins CAN fly
    • DSLstats
Re: DSLstats pre-release version 6.3.5
« Reply #37 on: April 01, 2018, 04:27:24 PM »

If there was a reason at one time I don't remember what it was. I'll put it on the list to correct, but it will be at the end of the list. :)
Logged
  Eric

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: DSLstats pre-release version 6.3.5
« Reply #38 on: April 01, 2018, 04:46:07 PM »

Thank you. :)
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: DSLstats pre-release version 6.3.5
« Reply #39 on: April 01, 2018, 05:10:53 PM »

I found myself staring at the "Event Log" as something seemed to be slightly askew. Here is a screen-scrape --

01 Apr 2018 16:03:17   Configuration files stored in /home/bcat/.dslstats/
01 Apr 2018 16:03:17   The configured modem/router is Zyxel VMG1312-B10A
01 Apr 2018 16:03:17   Snapshots folder is /home/bcat/lib/dslstats64L-6.3.5/Snapshots/
01 Apr 2018 16:03:17   Webserver folder is /home/bcat/lib/dslstats64L-6.3.5/Webserver/
01 Apr 2018 16:03:17   Data store location is /home/bcat/lib/dslstats64L-6.3.5/DataStore/
01 Apr 2018 16:04:39   Recording started

01 Apr 2018 16:04:43   IP address is now W.X.Y.Z

Eventually I realised that it was the difference between the lines referencing the "Snapshots" & "Webserver" folders and the "Data store location".

For consistency, could those three lines use the same teminology? For example --

01 Apr 2018 16:03:17   Snapshots folder is /home/bcat/lib/dslstats64L-6.3.5/Snapshots/
01 Apr 2018 16:03:17   Webserver folder is /home/bcat/lib/dslstats64L-6.3.5/Webserver/
01 Apr 2018 16:03:17   DataStore folder is /home/bcat/lib/dslstats64L-6.3.5/DataStore/

-- or --

01 Apr 2018 16:03:17   Snapshots location is /home/bcat/lib/dslstats64L-6.3.5/Snapshots/
01 Apr 2018 16:03:17   Webserver location is /home/bcat/lib/dslstats64L-6.3.5/Webserver/
01 Apr 2018 16:03:17   DataStore location is /home/bcat/lib/dslstats64L-6.3.5/DataStore/
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 43432
  • Penguins CAN fly
    • DSLstats
Re: DSLstats pre-release version 6.3.5
« Reply #40 on: April 01, 2018, 06:22:31 PM »

OK, it's on the list.
Logged
  Eric

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: DSLstats pre-release version 6.3.5
« Reply #41 on: April 01, 2018, 06:29:41 PM »

Thank you.  :)
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.
Pages: 1 2 [3]
 

anything