YAMon 3.0... Usage Reporting by device per hr/day/mo

Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> General Questions
Goto page Previous  1, 2, 3 ... 111, 112, 113 ... 149, 150, 151  Next
Author Message
al_c
DD-WRT Guru


Joined: 13 Apr 2013
Posts: 2134
Location: Ottawa Canada

PostPosted: Thu Aug 10, 2017 15:44    Post subject: Reply with quote
rickmav3 wrote:
Hi Al,
And thank you for the great YAmon and support!

I hope I got it right, these are my screens. In Private Browsing mode it is the same 10 min interval update.

I did not update yamon3.3.html yet.



So I think the most important tidbit in your screenshots is the max-age:600... or 10 minutes

Do things change at all if you add the meta tag to your yamon3.x.html file (in /opt/YAMon3/www)?

<meta http-equiv="cache-control" content="no-cache" />

e.g.,
Code:
<!DOCTYPE html>
<html>
   <head>
      <meta http-equiv="cache-control" content="no-cache" />
      <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />


Al
Sponsor
ddaniel51
DD-WRT Guru


Joined: 19 Feb 2013
Posts: 1464

PostPosted: Thu Aug 10, 2017 21:25    Post subject: Reply with quote
No change:

Request URL:http://192.168.1.1/user/js/live_data.js
Request Method:GET
Status Code:200 Ok (from disk cache)
Remote Address:192.168.1.1:80
Referrer Policy:no-referrer-when-downgrade
Response Headers
Cache-Control:private, max-age=600
Content-Length:4211
Content-Type:text/javascript
Date:Thu, 10 Aug 2017 21:16:09 GMT
Server:httpd

If I set ajax cache false I get:

Request URL:http://192.168.1.1/user/js/live_data.js?_=1502400976085
Request Method:GET
Status Code:404 Not Found
Remote Address:192.168.1.1:80
Referrer Policy:no-referrer-when-downgrade
Response Headers
view source
Cache-Control:no-store, no-cache, must-revalidate
Cache-Control:post-check=0, pre-check=0
Connection:close
Content-Type:text/html
Date:Thu, 10 Aug 2017 21:39:18 GMT
Pragma:no-cache
Server:httpd

_________________
Segment 1 XR700 10Gb LAN, 1Gb WAN ISP BS
Wired AP 1 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 2 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 3 Unifi Wifi 6 LR US 1Gb LAN
Syslog Services Asustor 7110T NAS 10GB
NetGear XS716T 10GB Switch
download1.dd-wrt.com/dd-wrtv2/downloads/betas/ (Brain Slayer)
YAMon https://usage-monitoring.com/index.php
al_c
DD-WRT Guru


Joined: 13 Apr 2013
Posts: 2134
Location: Ottawa Canada

PostPosted: Fri Aug 11, 2017 3:24    Post subject: Reply with quote
ddaniel51 wrote:
No change:

Request URL:http://192.168.1.1/user/js/live_data.js
Request Method:GET
Status Code:200 Ok (from disk cache)
Remote Address:192.168.1.1:80
Referrer Policy:no-referrer-when-downgrade
Response Headers
Cache-Control:private, max-age=600
Content-Length:4211
Content-Type:text/javascript
Date:Thu, 10 Aug 2017 21:16:09 GMT
Server:httpd

If I set ajax cache false I get:

Request URL:http://192.168.1.1/user/js/live_data.js?_=1502400976085
Request Method:GET
Status Code:404 Not Found
Remote Address:192.168.1.1:80
Referrer Policy:no-referrer-when-downgrade
Response Headers
view source
Cache-Control:no-store, no-cache, must-revalidate
Cache-Control:post-check=0, pre-check=0
Connection:close
Content-Type:text/html
Date:Thu, 10 Aug 2017 21:39:18 GMT
Pragma:no-cache
Server:httpd

Dave - I added some additional settings options in the latest version of yamon3.3.html (see http://usage-monitoring.com/manualInstall.php)



Please try checking the "Use `/dev` JS & CSS files" option then reload the reports...

When that option is checked, your reports will use my in-development JS & CSS files (in `/dev`) rather than the ones in `/current` (and the file versions at the top of the page should get a yellow background...) In the past, you did this by adding `?dev` to the reports URL but that no longer works because a query on the URL results in a blank page)

In `/dev`, I've modified the way that the scripts load the live data file (using an $.ajax() rather than a $.getScript()). The former allows me to set the `cache-control` value in the HTTP header... I've set it to
Code:
Cache-Control   
"no-cache, no-store"

I can see the change on my router (when I look at the headers in the Developers Tools). Does this have any effect for you?

I'm grasping at straws here because for some dumb reason my firmware does not seem to have the same problem as yours?!? Arrrrggggh!
ddaniel51
DD-WRT Guru


Joined: 19 Feb 2013
Posts: 1464

PostPosted: Fri Aug 11, 2017 7:59    Post subject: Reply with quote
Live now works when /dev is checked.

Grats!

_________________
Segment 1 XR700 10Gb LAN, 1Gb WAN ISP BS
Wired AP 1 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 2 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 3 Unifi Wifi 6 LR US 1Gb LAN
Syslog Services Asustor 7110T NAS 10GB
NetGear XS716T 10GB Switch
download1.dd-wrt.com/dd-wrtv2/downloads/betas/ (Brain Slayer)
YAMon https://usage-monitoring.com/index.php
al_c
DD-WRT Guru


Joined: 13 Apr 2013
Posts: 2134
Location: Ottawa Canada

PostPosted: Fri Aug 11, 2017 12:55    Post subject: Reply with quote
ddaniel51 wrote:
Live now works when /dev is checked.

Grats!


great - I've pushed that change to the /current directory so you can uncheck that option if you like.

Al
steviej1974
DD-WRT Novice


Joined: 27 Jun 2017
Posts: 13

PostPosted: Sat Aug 12, 2017 2:42    Post subject: YAHmon without USB Reply with quote
Hi all the Guru's , is there anyway I could install YAHmon without a USB?

I have 2 TP-Link WR841 routers running dd-wrt which do not have a USB connection.

If it is possible is there a guide out there on how to do this?

Thanks
Rolling Eyes
rickmav3
DD-WRT User


Joined: 08 Sep 2014
Posts: 145

PostPosted: Sat Aug 12, 2017 8:48    Post subject: Reply with quote
I did not get on that router earlier but my findings are the same: working now with Set cache=true in `$.ajaxSetup()`. Thanks for being able to restore Live View functionality. Not easy with so many new DD-WRT builds and even more compatible with all other firmwares. Router was on couple of the latest Kong's builds: 33000M, 33010M.

I introduced some friends on your great YAmon. Those still on Tomato they also have the nice graphs included in firmware, and the extra live view graph that can show on only one IP. But I got others so impressed about YAmon capabilities that they should go and click on the donate button Wink

al_c wrote:
rickmav3 wrote:
Hi Al,
And thank you for the great YAmon and support!

I hope I got it right, these are my screens. In Private Browsing mode it is the same 10 min interval update.

I did not update yamon3.3.html yet.



So I think the most important tidbit in your screenshots is the max-age:600... or 10 minutes

Do things change at all if you add the meta tag to your yamon3.x.html file (in /opt/YAMon3/www)?

<meta http-equiv="cache-control" content="no-cache" />

e.g.,
Code:
<!DOCTYPE html>
<html>
   <head>
      <meta http-equiv="cache-control" content="no-cache" />
      <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />


Al
ddaniel51
DD-WRT Guru


Joined: 19 Feb 2013
Posts: 1464

PostPosted: Sat Aug 12, 2017 9:44    Post subject: Re: YAHmon without USB Reply with quote
steviej1974 wrote:
Hi all the Guru's , is there anyway I could install YAHmon without a USB?
I have 2 TP-Link WR841 routers running dd-wrt which do not have a USB connection.
If it is possible is there a guide out there on how to do this?
Thanks
Rolling Eyes


There was a discussion about it earlier in this thread.

Or you can go here and follow the buttons: YAMon usage-monitoring.com/manualInstall.php

_________________
Segment 1 XR700 10Gb LAN, 1Gb WAN ISP BS
Wired AP 1 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 2 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 3 Unifi Wifi 6 LR US 1Gb LAN
Syslog Services Asustor 7110T NAS 10GB
NetGear XS716T 10GB Switch
download1.dd-wrt.com/dd-wrtv2/downloads/betas/ (Brain Slayer)
YAMon https://usage-monitoring.com/index.php
steviej1974
DD-WRT Novice


Joined: 27 Jun 2017
Posts: 13

PostPosted: Sat Aug 12, 2017 23:24    Post subject: Reply with quote
Thanks,

It does not look like my TP-Link 841N supports the JFFs2 as it does not appear on the Admin tab. As far as I read I need to enable this to be able to copy the YAHmon files to the flash memory.

Build I am using.
DD-WRT v3.0-r32170 std (06/01/17)

Crying or Very sad
al_c
DD-WRT Guru


Joined: 13 Apr 2013
Posts: 2134
Location: Ottawa Canada

PostPosted: Sun Aug 13, 2017 13:40    Post subject: Reply with quote
steviej1974 wrote:
Thanks,

It does not look like my TP-Link 841N supports the JFFs2 as it does not appear on the Admin tab. As far as I read I need to enable this to be able to copy the YAHmon files to the flash memory.

Build I am using.
DD-WRT v3.0-r32170 std (06/01/17)

Crying or Very sad


Sorry - it appears that you're hooped until you get another router (with a USB port).

Do you have options for Samba in your admin GUI (Services-->NAS)? That might be an option but I've never tried to figure it out (and sadly, do not have the time for that).

Let me know if that works and I'll add an FAQ entry.

A;
al_c
DD-WRT Guru


Joined: 13 Apr 2013
Posts: 2134
Location: Ottawa Canada

PostPosted: Sun Aug 13, 2017 13:45    Post subject: Reply with quote
rickmav3 wrote:
I did not get on that router earlier but my findings are the same: working now with Set cache=true in `$.ajaxSetup()`. Thanks for being able to restore Live View functionality. Not easy with so many new DD-WRT builds and even more compatible with all other firmwares. Router was on couple of the latest Kong's builds: 33000M, 33010M.

I introduced some friends on your great YAmon. Those still on Tomato they also have the nice graphs included in firmware, and the extra live view graph that can show on only one IP. But I got others so impressed about YAmon capabilities that they should go and click on the donate button Wink



Glad to hear that the Live Tab is working again. Yeah... the idiosyncrasies between builds and firmware variants often keeps me up late into the wee hours.

YAMon runs on Tomato... (with a few tweaks... apparently). I've never flashed a router to Tomato. I know I should probably have a lab full of routers for every major variant but I don't have the time (or budget) for that.

Al
NiTrus
DD-WRT User


Joined: 25 Dec 2010
Posts: 295
Location: Twin Cities, MN

PostPosted: Mon Aug 14, 2017 18:26    Post subject: Reply with quote
ddaniel51 wrote:
Live now works when /dev is checked.

Grats!


not a big deal for me, but live tab still not working, checking /dev has no effect..

_________________
NETGEAR R9000 | RT | 40134
NETGEAR R7800 | AP | 40134

al_c
DD-WRT Guru


Joined: 13 Apr 2013
Posts: 2134
Location: Ottawa Canada

PostPosted: Mon Aug 14, 2017 19:39    Post subject: Reply with quote
NiTrus wrote:
ddaniel51 wrote:
Live now works when /dev is checked.

Grats!


not a big deal for me, but live tab still not working, checking /dev has no effect..


Did you force a reload with <ctrl>+F5?

Al
NiTrus
DD-WRT User


Joined: 25 Dec 2010
Posts: 295
Location: Twin Cities, MN

PostPosted: Mon Aug 14, 2017 20:42    Post subject: Reply with quote
al_c wrote:
NiTrus wrote:
ddaniel51 wrote:
Live now works when /dev is checked.

Grats!


not a big deal for me, but live tab still not working, checking /dev has no effect..


Did you force a reload with <ctrl>+F5?

Al


it works with chrome on my PC..it wont load on ios devices...(iphone7p/ipad pro)

_________________
NETGEAR R9000 | RT | 40134
NETGEAR R7800 | AP | 40134

al_c
DD-WRT Guru


Joined: 13 Apr 2013
Posts: 2134
Location: Ottawa Canada

PostPosted: Tue Aug 15, 2017 4:41    Post subject: Reply with quote
NiTrus wrote:

it works with chrome on my PC..it wont load on ios devices...(iphone7p/ipad pro)

Did none of the report tabs work on your iDevices? I don't have any iDevices & don't normally use Safari but when I tried it this evening, I found that the reports would not load at all on my WinX laptop.

I made a small change to yamon3.3.html, found & fixed a number of CSS issues and the reports are working much better now in Safari than they were earlier this evening. There where no significant changes in Chrome or FireFox (As a general rule, I do not use (or test) the reports in MSIE.)

I just posted the updated version of yamon3.3.html to http://usage-monitoring.com/manualInstall.php... go there to get the latest file (or run install.sh again - but that seems like overkill for just one file). I've also updated `yamon3.3.css` in the /current directory. As always when the CSS and/or JS files are updated, you might have to hit <ctrl>+F5 to clear the old versions from the cache.


Please take a look and let me know if these changes help.

Al
Goto page Previous  1, 2, 3 ... 111, 112, 113 ... 149, 150, 151  Next Display posts from previous:    Page 112 of 151
Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum