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 4 ... 7

Author Topic: DSLstats with a Raspberry Pi  (Read 34415 times)

jamesfoley

  • Member
  • **
  • Posts: 46
Re: DSLstats with a Raspberry Pi
« Reply #15 on: August 14, 2015, 01:07:15 PM »

I'm currently looking at building something that is usable from the command line which runs as a service providing stats to a web interface. Time has been a little tight the last few weeks as I've just moved house, but I plan on ramping up the dev work in the evenings and will hopefully have something that works soonish.

I did write up a small guide which I sent to Dray, but I'm not really a fan of the whole keeping a window in x up all the time, plus I'm terrible at writing  ;)

If someone wants to take my tutorial and re-factor it so its a little easier to follow, let me know. :)
Logged

Dray

  • Kitizen
  • ****
  • Posts: 2361
Re: DSLstats with a Raspberry Pi
« Reply #16 on: August 14, 2015, 01:14:17 PM »

Given the RPi is solely being used for DSLStats, I don't see the problem with keeping an X window up all the time.
Logged

beardedwonder

  • Member
  • **
  • Posts: 10
Re: DSLstats with a Raspberry Pi
« Reply #17 on: September 03, 2015, 10:03:54 AM »

Does anyone know if it's possible to connect the modem to the pi via ethernet and access the pi via wifi usb to get the stats?
Logged

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 43593
  • Penguins CAN fly
    • DSLstats
Re: DSLstats with a Raspberry Pi
« Reply #18 on: September 03, 2015, 10:50:01 AM »

Yes, it's possible, but not recommended. You're likely to get intermittent errors caused by glitches in the WiFi connection.
Logged
  Eric

nivek1612

  • Member
  • **
  • Posts: 79
Re: DSLstats with a Raspberry Pi
« Reply #19 on: October 19, 2015, 09:31:50 AM »

I love DSLSTATS on the RPi

Although all attempts to make it auto run on reboot have failed

Any one else managed that
I tried the normal auto run files
Logged
Life is what happens while you're making plans

OPNsense  18.7.* on Qotom  i5-5250U with Zen FTTC 80/20

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 43593
  • Penguins CAN fly
    • DSLstats
Re: DSLstats with a Raspberry Pi
« Reply #20 on: October 19, 2015, 10:07:42 AM »

I'm not exactly sure what you mean by the normal autorun files, but do understand that DSLstats is dependent on a GUI environment, so you can't start it from /etc/init.d or anything like that.
Logged
  Eric

LaurieR

  • Member
  • **
  • Posts: 35
Re: DSLstats with a Raspberry Pi
« Reply #21 on: October 20, 2015, 04:46:55 PM »

I'm a complete RPi noob. I tried several of the autostart methods described on various websites but none seemed to work - I blamed the fact that some only applied to the original Pi, not the 2, and some didn't work on Jessie (I updated from Wheezy).

Then suddenly I was getting "DSLstats is running already - closing down" on reboot so two autostarts were working! Trouble is, I can't remember what changes I made.
Logged

nivek1612

  • Member
  • **
  • Posts: 79
Re: DSLstats with a Raspberry Pi
« Reply #22 on: October 20, 2015, 11:45:55 PM »

Yes I had similar issues

Tried nearly every website guide our there never managed to get it to start clean

Even posted on the Pi forum - no one answered

But eh its a small issue 
Logged
Life is what happens while you're making plans

OPNsense  18.7.* on Qotom  i5-5250U with Zen FTTC 80/20

LaurieR

  • Member
  • **
  • Posts: 35
Re: DSLstats with a Raspberry Pi
« Reply #23 on: October 29, 2015, 06:05:00 PM »

Grrr. I reinstalled the Pi from Noobs to get rid of the various changes I'd made and forgotten about. So from a clean install I made just the one change - in /home/pi/.config/lxsession/LXDE-pi I added the line "/home/pi/dslstats/dslstats" to file "autostart".

Now on reboot I still get "dslstats already running - shutting down" but I can't see it on the desktop. It is running in the background as I can see it in task manager and mydslwebstats is green, but no GUI window.
Logged

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 43593
  • Penguins CAN fly
    • DSLstats
Re: DSLstats with a Raspberry Pi
« Reply #24 on: October 29, 2015, 06:34:17 PM »

When I get some time, I'll look into this, but at the moment all I can suggest is that you start DSLstats manually.
Logged
  Eric

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 43593
  • Penguins CAN fly
    • DSLstats
Re: DSLstats with a Raspberry Pi
« Reply #25 on: October 30, 2015, 10:31:45 AM »

@LaurieR: I think I have a solution (it works here on my RPi mark 2):

1. Remove the dslstats line from /home/pi/.config/lxsession/LXDE-pi/autostart/

2. Open Leafpad and create a file called dslstats.desktop as below. Save it in /home/pi/.config/autostart/  (not in the directory mentioned above)

Contents of dslstats.desktop:

Code: [Select]
[Desktop Entry]
Version=1.0
Type=Application
Name=DSLstats
Exec=/home/pi/dslstats/dslstats

Save this file, then reboot the RPi.
Logged
  Eric

LaurieR

  • Member
  • **
  • Posts: 35
Re: DSLstats with a Raspberry Pi
« Reply #26 on: October 30, 2015, 06:18:07 PM »

I tried that but still get "already running" and no DSLstats window.
Not really a problem though.
Logged

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 43593
  • Penguins CAN fly
    • DSLstats
Re: DSLstats with a Raspberry Pi
« Reply #27 on: October 30, 2015, 06:42:52 PM »

All I can think is that something is trying to launch DSLstats from some other source. Have you been experimenting with other autostart methods perhaps? The RPi on which I tested the .desktop method was a nearly new, clean installation. Even with your previous method, I didn't get any "already running" messages; the method simply failed to launch DSLstats.
Logged
  Eric

nivek1612

  • Member
  • **
  • Posts: 79
Re: DSLstats with a Raspberry Pi
« Reply #28 on: November 01, 2015, 10:23:20 AM »

Im away, but will give this a go when I get back
Logged
Life is what happens while you're making plans

OPNsense  18.7.* on Qotom  i5-5250U with Zen FTTC 80/20

vic0239

  • Reg Member
  • ***
  • Posts: 519
Re: DSLstats with a Raspberry Pi
« Reply #29 on: November 01, 2015, 02:20:26 PM »


Contents of dslstats.desktop:

Code: [Select]
[Desktop Entry]
Version=1.0
Type=Application
Name=DSLstats
Exec=/home/pi/dslstats/dslstats
Thank you for the tip. :thumbs: I have implemented this on my Pi 2 Model B and it is working fine. Only snag was that the desktop environment was initialising before the network was up (I’m supposing) and DSLstats complained that it could not check MyDSLWebStats details. I got round this by placing my own script in the ~/.config/autostart/dslstats.desktop file and invoking DSLstats from that after a little sleep time.  :sleep: Crude I know, but I couldn’t be bothered to code anything more precise to check the network was up.  :)
Logged
Lothian Broadband 900/900 + AAISP VDSL, Vigor2865Vac, MikroTik rb260gsp, ZyXel NWA50AX WiFi AP.
Pages: 1 [2] 3 4 ... 7
 

anything