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

Login with username, password and session length
Advanced search  

News:

Pages: 1 [2] 3 4 ... 7

Author Topic: DSLstats webserver - Custom Interface  (Read 6924 times)

tiffy

  • Reg Member
  • ***
  • Posts: 297
Re: DSLstats webserver - Custom Interface
« Reply #15 on: March 18, 2018, 05:51:51 PM »

Anyone any ideas on creating a desktop shortcut on RPi 3B running Raspbian Jessie to fire up the kitz webserver interface ?

I can double click the /home/pi/.dslstats/webserver/stats.htm file, or indeed any of the *.htm files which will start the webserver application within Chromium browser but can't get the correct syntax to achieve this from a desktop shortcut, with any of the *.htm files nominated as "exec" within the desktop shortcut nothing happens !

I'am sure there must be a way of nominating a browser for file execution from within a DT shortcut ?   
Logged
Plusnet 40/10 - DSLStats/RPi - ZyXEL VMG1312-B10A - Huawei Cab - MDWS (sadly gone 12/03/18)

marjohn56

  • Reg Member
  • ***
  • Posts: 118
Re: DSLstats webserver - Custom Interface
« Reply #16 on: March 19, 2018, 05:42:09 PM »

A quick addition to Kitz work, add your TBB image like so. I've added mine in connection.htm, Open it in a text editor or whatever you prefer.... leave for the moment.

Now web browse to your TBB monitor page on the TBB site. Under your monitor image, click on 'Share Live Graph', Copy the link under Large Graph.

Now back to the editor,

Below <div class="graphs"> add the link. It should end up like this.

Code: [Select]
<div class="graphs">
   <h2>TBB Latency Monitor</h2>
   <a title="Broadband Ping" href="https://www.thinkbroadband.com/broadband/monitoring/quality/share/6e567f1077924e50f24ca309ba78976a"><img alt="My Broadband Ping - QP IPv6" src="https://www.thinkbroadband.com/broadband/monitoring/quality/share/6e567f1077924e50f24ca309ba78976a.png" hspace="20" /></a>

  <h2>Connection Speed</h2>
  <img alt="Connection Speed" src="connspeed.png" hspace="20"><br><br>
 
  <h2>Bit Loading</h2>
  <img alt="Bitloading" src="bitloading.png" hspace="20"><br><br> 
</div>

Note that in the example above there is a hspace="20" towards the end of the TBB line, this is to bring it into line with the other images.

Save, open the connection page in your browser and you should have your TBB image, if you've got mine you've copied the example!  :cool:

« Last Edit: March 19, 2018, 05:53:16 PM by marjohn56 »
Logged
OPNsense 18.* - Billion Bridge - Qotom Q355G4 - ISP - ZEN U.K.

Team Rebellion Member

jaydub

  • Reg Member
  • ***
  • Posts: 220
Re: DSLstats webserver - Custom Interface
« Reply #17 on: March 20, 2018, 12:25:26 AM »

Tweaked mine slightly to reduce it to just the <img alt= part, but great addition.  Thanks, marjohn56.
Logged

tiffy

  • Reg Member
  • ***
  • Posts: 297
Re: DSLstats webserver - Custom Interface
« Reply #18 on: April 18, 2018, 07:36:58 PM »

A couple of days ago I mentioned in this thread, that I'd been playing with a custom html interface for the dslstats inbuilt webserver display.
The custom interface displays all graphs but just outputs them in to more logical groups, that can be tabbed through.

I've had a request if I could make these files publicly available for use, so I've quickly packaged them together in a zip file.
Please note, it's nothing particularly fancy and the history section isn't yet complete as I'd need to install PHP on my local machine and this section isnt yet working.

The relevant files are all included in the attached rar file if you want to make use of them yourself. 


CONTENTS OF FOLDER
++++++++++++++++++

css.css
connection.htm
errors.htm
fullstats.htm
snrm.htm
stats.htm
history.htm
README.txt


@kitz:

Noted in one of your later links that you have made some further progress in the "history" tab but the original files posted on 15/03/18 have not yet been updated, would it be possible to update, I have very limited knowledge of the system but presume that only an updated "history.htm" file would be required.

Fully understand if you prefer to complete the project, time permitting, before re-posting or indeed just don't have the time at present to carry out further development.

Your efforts on this project to produce some form of local MDWS substitute are very much appreciated certainly by the less knowledgable forum members like myself who don't have the necessary technical ability. 
Logged
Plusnet 40/10 - DSLStats/RPi - ZyXEL VMG1312-B10A - Huawei Cab - MDWS (sadly gone 12/03/18)

Chrysalis

  • Content Team
  • Addicted Kitizen
  • *
  • Posts: 5404
Re: DSLstats webserver - Custom Interface
« Reply #19 on: April 18, 2018, 07:44:00 PM »

I've tried this out on my Linux system, and it works perfectly. It's a very nice enhancement.

Just so you know, I'm currently working on the webserver, but what I'm doing won't conflict with this. I'm adding the options for the user to choose where to save the webserver files, and to save them even when the webserver itself isn't running.


right now me martin and skyeci are using these files to upload to my webserver once a minute, I had planned to request a couple of things from you related to this such as using the built in ftp uploader to upload these web files, and to be able to set the interval so e.g. every 5 mins for the upload.

The graph generation server side for a proper MDWS replacement is probably a while off so these graphs will work well in the mean time.

When I have fully integrated kitz code to my graphs and settled on it, I will add the link to my graphs in my signature so they public.

If Martin is ok with it on the domain I can probably actually host anyone's graphs just making an ftp account, providing in PM and they upload, then the graphs are public not just just for private use.
« Last Edit: April 18, 2018, 07:46:09 PM by Chrysalis »
Logged
Sky Fiber Pro - Billion 8800NL bridge & PFSense BOX running PFSense 2.4 - ECI Cab - LINE STATISTICS CLICK HERE

tiffy

  • Reg Member
  • ***
  • Posts: 297
Re: DSLstats webserver - Custom Interface
« Reply #20 on: April 19, 2018, 11:33:56 AM »

@Chrysalis:

Many thanks for the update, I eagerly await further developments.

I currently use "broadstairs" web, php based system which he has kindly made available on request to forum members, running on my Win. 8.1 desktop PC via Apache server, manually uploading my 3 RPi's (different lines) historic graph and data files on a 2 day basis, works very well but will still be keen to review any future alternative systems.
Logged
Plusnet 40/10 - DSLStats/RPi - ZyXEL VMG1312-B10A - Huawei Cab - MDWS (sadly gone 12/03/18)

Chrysalis

  • Content Team
  • Addicted Kitizen
  • *
  • Posts: 5404
Re: DSLstats webserver - Custom Interface
« Reply #21 on: April 19, 2018, 03:45:00 PM »

yes he provided to me as well and I have yet to have a look at it, so there is 2 different system right now available which is great, the bit I am trying to bring together is the public access again for shared knowledge, php is not a problem on my server.
Logged
Sky Fiber Pro - Billion 8800NL bridge & PFSense BOX running PFSense 2.4 - ECI Cab - LINE STATISTICS CLICK HERE

kitz

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 31251
  • Trinity: Most guys do.
    • http://www.kitz.co.uk
Re: DSLstats webserver - Custom Interface
« Reply #22 on: April 28, 2018, 12:01:13 AM »

@kitz:

Noted in one of your later links that you have made some further progress in the "history" tab but the original files posted on 15/03/18 have not yet been updated, would it be possible to update, I have very limited knowledge of the system but presume that only an updated "history.htm" file would be required.

Fully understand if you prefer to complete the project, time permitting, before re-posting or indeed just don't have the time at present to carry out further development.

Your efforts on this project to produce some form of local MDWS substitute are very much appreciated certainly by the less knowledgable forum members like myself who don't have the necessary technical ability.

Sorry didn't see this earlier - my hands have been too bad to type.  Yes I mentioned in another thread that I'd been doing more work on it, but as no-one else seemed interested in running from a remote site I stopped any further development and this was about as far as I got.
https://kitz.co.uk/linestats/

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

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 39206
  • Penguins CAN fly
    • DSLstats
Re: DSLstats webserver - Custom Interface
« Reply #23 on: April 28, 2018, 06:53:09 AM »

I'm just about to release a test version of DSLstats which adds the capability to upload all the webserver files (including this extension if it's there) to a remote location of the user's choice.

At present it uploads after every sample, but if different timing is needed that can certainly be arranged.
« Last Edit: April 28, 2018, 07:31:55 AM by roseway »
Logged
  Eric

tiffy

  • Reg Member
  • ***
  • Posts: 297
Re: DSLstats webserver - Custom Interface
« Reply #24 on: April 28, 2018, 08:30:50 AM »

@kitz:
Thanks for the update, fully appreciate you situation with typing difficulty at present, hope this improves soon.
As you can see earlier in the thread, Chrysalis did provide an update on his, Martin and skyeci's project progress.

@roseway:
Thanks to you also for the DSLStats update and for your continuing work on the program.
Logged
Plusnet 40/10 - DSLStats/RPi - ZyXEL VMG1312-B10A - Huawei Cab - MDWS (sadly gone 12/03/18)

Chrysalis

  • Content Team
  • Addicted Kitizen
  • *
  • Posts: 5404
Re: DSLstats webserver - Custom Interface
« Reply #25 on: April 28, 2018, 08:53:44 AM »

I have merged stuart's code onto kitz's code to get a solution that takes advantage of both, but its not my work to distribute, but I will post a link to my stats after I or stuart enhance the security of the code, e.g. viewing historical eventlog reveals the broadband ip so I need to remove that facility before I post the link.

Then people can see where we at, but its basically the same as what kitz posted since its using her templates with the addition of a more functional history page.

On my setup the graphs are been automatically synced every minute using winscp cli via a batch script on task scheduler and also a second batch script to upload the snapshots just after midnight.  Eric after my request kindly added native support to dslstats tho so winscp or any other ftp client wont be needed in future.

I have also almost completed a linux script to mass rename files to support the history code, so e.g. if you have snapshots in date order, it will rename them en mase to name order so they work on the history page.
Logged
Sky Fiber Pro - Billion 8800NL bridge & PFSense BOX running PFSense 2.4 - ECI Cab - LINE STATISTICS CLICK HERE

skyeci

  • Kitizen
  • ****
  • Posts: 1132
    • skyECI line stats
Re: DSLstats webserver - Custom Interface
« Reply #26 on: April 28, 2018, 09:14:48 AM »

works great I might add. :). Mine is doing the same with uploads and snapshots
Logged
Sky Fibre Pro - 8800nl v1 (bridge mode) + Opnsense(i5 Qotom) with IPV6 , AC-88U WAP- ECI cab, click for my ECI  line stats

click for  line stats by Pi3/Huawei 

Chrysalis

  • Content Team
  • Addicted Kitizen
  • *
  • Posts: 5404
Re: DSLstats webserver - Custom Interface
« Reply #27 on: April 28, 2018, 09:31:43 AM »

Mass rename is done, check your history page skyeci, I moved the graphs there.
Logged
Sky Fiber Pro - Billion 8800NL bridge & PFSense BOX running PFSense 2.4 - ECI Cab - LINE STATISTICS CLICK HERE

skyeci

  • Kitizen
  • ****
  • Posts: 1132
    • skyECI line stats
Re: DSLstats webserver - Custom Interface
« Reply #28 on: April 28, 2018, 09:33:07 AM »

sweet. got all my old stats back up on line. happy days.

Thanks a bundle  :)
« Last Edit: April 28, 2018, 09:35:23 AM by skyeci »
Logged
Sky Fibre Pro - 8800nl v1 (bridge mode) + Opnsense(i5 Qotom) with IPV6 , AC-88U WAP- ECI cab, click for my ECI  line stats

click for  line stats by Pi3/Huawei 

broadstairs

  • Kitizen
  • ****
  • Posts: 3076
Re: DSLstats webserver - Custom Interface
« Reply #29 on: April 28, 2018, 09:55:46 AM »

Just to pick up in the security bit and IP addresses. I originally created my scripts to be run locally where there would be no security issue however if people want a version which does not display the IP address when viewing the event log then I'll take a look to see how I can achieve this easily. Currently the script simply loads the file contents and displays it, so in order to achieve this it will need some re-writing and expansion of the code to check the data.

Stuart
Logged
ISP:TalkTalk Connection:FTTC Cab:ECI Router:Netgear D6220
Pages: 1 [2] 3 4 ... 7