bottleneck
Choose style:

Author Topic: Can't view any realtime graphs in the OpenWRT section  (Read 14023 times)

0 Members and 1 Guest are viewing this topic.

Offline reedog117

  • Backer
  • *
  • Posts: 28
  • Thanks: 0
  • Registered : 22/07/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Can't view any realtime graphs in the OpenWRT section
« on: August 16, 2014, 02:49:50 am »
None of the realtime status graphs work in the OpenWRT section, at least on a Mac.  In Safari, it just continuously downloads SVG files. In Firefox, it says it's missing plugins.  In Chrome, it downloads the svg file to my default download directory, then shows a warning that the page is trying to download multiple files and asks whether to allow or deny.

I tried the newest versions available for OS X Mavericks for Safari, Firefox, and Chrome.

To duplicate, just go to the OpenWRT section and try going to Status > Realtime Graphs > (any of the four choices)

I'm running the newest version of the firmware (R065).

Offline The19th

  • Backer
  • *
  • Posts: 69
  • Thanks: 3
  • Registered : 02/08/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Can't view any realtime graphs in the OpenWRT section
« Reply #1 on: August 16, 2014, 02:59:43 am »
Not sure what to tell you.  I'm running R065 firmware, Safari 7.0.5 on 10.9.4 and it works:



It was discovered in a previous firmware that there was a missing line in a .conf file and it should have been included in R065.

Also, check out this topic.  I did the steps listed for a previous firmware version and it worked.  However, I have done multiple factory resets since installing R065, so those steps on my A+ should have been blown away by now if it wasn't fixed in firmware (which it should have)
« Last Edit: August 16, 2014, 03:03:45 am by The19th »

Offline reedog117

  • Backer
  • *
  • Posts: 28
  • Thanks: 0
  • Registered : 22/07/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Can't view any realtime graphs in the OpenWRT section
« Reply #2 on: August 16, 2014, 07:06:23 pm »
I SSH'ed into my router and the line was still missing.  After adding it manually and restarting lighttpd the graphs now work properly.

Offline hilo90mhz

  • Backer
  • *
  • Posts: 9
  • Thanks: 0
  • Registered : 09/08/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Can't view any realtime graphs in the OpenWRT section
« Reply #3 on: August 16, 2014, 07:19:43 pm »
My graphs are missing in R065 too.

Offline SecureComp

  • Backer
  • *
  • Posts: 541
  • Thanks: 1
  • Registered : 05/08/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Can't view any realtime graphs in the OpenWRT section
« Reply #4 on: August 19, 2014, 10:34:42 am »
I am on R065 and also do not have the live graphs.

Using MAC OSX and Safari, the svg files are downloaded, nothing is displayed.
Kickstarter Backer
Securifi Wiki Editor and Beta Tester, Not a Securifi employee
Almond+, many sensors, IOS App, Android Apps and Widgets

Offline reedog117

  • Backer
  • *
  • Posts: 28
  • Thanks: 0
  • Registered : 22/07/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Can't view any realtime graphs in the OpenWRT section
« Reply #5 on: August 19, 2014, 11:23:36 am »
I SSH'ed into my router and the line was still missing.  After adding it manually and restarting lighttpd the graphs now work properly.

I think I spoke too soon.  I can't see any graphs for wlan00.  Also, the graphs that I do see don't update at all.  It's like it just does one screen draw and then that's it.

Offline chevyman142000

  • Backer
  • *
  • Posts: 105
  • Thanks: 0
  • Registered : 02/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Can't view any realtime graphs in the OpenWRT section
« Reply #6 on: August 19, 2014, 11:42:07 am »
I would agree that the graphs only do one draw. I found that if I repeatedly click on where it says "auto refresh" at the top it will sort of refresh/re-draw the graphs. Definitely a bug imo.

Offline czyzczyz

  • Backer
  • *
  • Posts: 49
  • Thanks: 0
  • Registered : 23/08/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Can't view any realtime graphs in the OpenWRT section
« Reply #7 on: August 25, 2014, 09:06:51 pm »
I think it's a mime-type issue -- svg is missing from lighttpd's list of mime-types.

You may need to add the line:
 ".svg"          =>      "image/svg+xml",   
to the mimetype.assign section of /etc/lighttpd/lighttpd.conf.

More info here:
https://forum.openwrt.org/viewtopic.php?id=31605


LGNilsson

  • Guest
Re: Can't view any realtime graphs in the OpenWRT section
« Reply #8 on: August 27, 2014, 11:33:20 am »
This was supposed to be fixed, but seemingly wasn't in R065, it will be fixed in R066. That said, it seems like the graphs aren't really auto updating and I'm not sure why. Manual refresh seems to work though.

Offline sykocus

  • Backer
  • *
  • Posts: 20
  • Thanks: 0
  • Registered : 10/05/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Can't view any realtime graphs in the OpenWRT section
« Reply #9 on: September 30, 2014, 06:42:55 am »
This was supposed to be fixed, but seemingly wasn't in R065, it will be fixed in R066. That said, it seems like the graphs aren't really auto updating and I'm not sure why. Manual refresh seems to work though.

Did this make it into R066? The real time graphs still weren't working even after I updated.  My status page is showing R066 but I'm wondering if something went wrong with the update on my end.

I ended up editing the lighttpd.conf file on my own, but that was quite an adventure.

LGNilsson

  • Guest
Re: Can't view any realtime graphs in the OpenWRT section
« Reply #10 on: September 30, 2014, 06:48:02 am »
It should have, yes, so strange it didn't work.

Offline burnz

  • Backer
  • *
  • Posts: 41
  • Thanks: 0
  • Registered : 02/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Can't view any realtime graphs in the OpenWRT section
« Reply #11 on: September 30, 2014, 04:21:46 pm »
My browser tries to download a file everytime i try to open the realtime graph page...
(tried chrome and safari on a mac yosemite on R066)

Offline burnz

  • Backer
  • *
  • Posts: 41
  • Thanks: 0
  • Registered : 02/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Can't view any realtime graphs in the OpenWRT section
« Reply #12 on: October 06, 2014, 09:50:36 am »
Any ideas how to fix it?

Offline burnz

  • Backer
  • *
  • Posts: 41
  • Thanks: 0
  • Registered : 02/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Can't view any realtime graphs in the OpenWRT section
« Reply #13 on: October 15, 2014, 01:03:03 pm »
No news here?

Offline verdantrouter

  • Backer
  • *
  • Posts: 2
  • Thanks: 0
  • Registered : 04/11/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Can't view any realtime graphs in the OpenWRT section
« Reply #14 on: November 04, 2014, 05:08:58 am »
Burnz I had similar situation on Yosemite with the R66 firmware just flashed. Don't know if it's an issue with retaining settings from previous state when flashing?
Bottom line is a line missing from the /etc/lighttpd/lighthttpd.conf

In the Terminal program on your Mac type   ssh root@10.10.10.254
(use the password which you have set, you'll have to accept the SSH fingerprint)
this substitutes for step 1. in the below which I've lifted from another thread.

once you're logged in you basically do
vi /etc/lighttpd/lighthttpd.conf
use cursor keys to move to the correct location
press i (which starts the insert mode)
press return (to give yourself a line to type)
the first section of space is a tab (don't know if it matters but have had bad experiences in the past so I put a tab in too)
then type in the missing configuration text exactly as per below (making sure you include the comma at the end!)
then press <Esc> (which tips it into command mode)
then :w (the : prepares it to take a command, the w means write, press return to make it happen)
then ZZ to get out of vi... (take a look at the vi editor tips linked in the really really helpful message I quote below)

then use the reboot command at the command line (easiest way, though doubtless there is a way to just reboot the web server)
(your connection to the router will, of course, die.. but the screen on the router will show you it starting up..)

Then.. ta-daa..
the images are correctly shown under Safari as installed with Mac OS X 10.10 (yosemite).

After a bit of research I have found a fix for the real time graph issue on the OpenWRT interface for the Almond+ Router. I claim no responsibility if you have problems, but here here are the steps I followed to resolve the real time graph issue:

1. Open a new SSH session into your Almond+. (I used PuTTY to manage the connection)
2. Log into your router with the appropriate credentials.
3. You'll need to edit the lighttpd.conf file. (If you are uncomfortable using command lind editor VI here is a guide http://www.washington.edu/computing/unix/vi.html) To edit I issued the following command:

Code: [Select]
vi /etc/lighttpd/lighttpd.conf
4. The OpenWRT build of lighttpd Securifi uses is missing the mimetype for svg, which is why the browser is trying to download it. To correct this I added a new entry (using the i command) after line 47 (".png" => "image/png",) for the following:

   ".svg"   => "image/svg+xml",

   here is what my screen looked like after the entry:

5. Save (using :w command) and exit (using ZZ command)
6. (Optional step) If you want to you can verify that the setting saved by running the following command:

Code: [Select]
cat /etc/lighttpd/lighttpd.conf
7. Reboot your router (you can do this issuing a reboot command at) and you should be all set (unless you have certain cable modems which may mean you have to do the whole hard powercycle thing).

Here is a screenshot of my Almond+ (note the "AlmondPlus | Kamikaze" in the top left) with correctly running graphs:


 

Page created in 0.074 seconds with 20 queries.