What's new

uiDivStats uiDivStats - WebUI for Diversion statistics

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

After updating my ac86 to the latest 18 update, my CPU usage kept going really high. I had to uninstall uidivstats and that immediately fixed my high CPU usage. Just fyi

Verstuurd vanaf mijn ONEPLUS A6003 met Tapatalk
 
why's mine still empty?
Untitled.jpg
 
do you have stats reporting turned on in diversion itself? has it run? (weekly iirc)
Where are these switches in Diversion (stats reporting; frequency)?
 
Mine was off also.

I just set it up with my hotmail account.



When you go into diversion select option C
Thanks! I had no idea all that good stuff was in there. My bad...
Anton
 
v2.2.1 is now available!
Changelog:
Code:
CHANGED: Try to find hostname locally, use dig if not found
NEW: Add WebUI section for text stats file generated by Diversion itself

Really chuffed to see the addition of the highlighted text above ... however the Webui seems to have latched on to a 19 July 2020 text file to display and likes that one too much to let go :oops:? Diversion faithfully been producing weekly stats to text file since then - but uiDivstats unimpressed and sticks with the old one ???

Perhaps @Jack Yaz can persuade it to be a bit more up to date on those text files [really useful for tracking down a client causing the unwanted blocks] :D,
 
Really chuffed to see the addition of the highlighted text above ... however the Webui seems to have latched on to a 19 July 2020 text file to display and likes that one too much to let go :oops:? Diversion faithfully been producing weekly stats to text file since then - but uiDivstats unimpressed and sticks with the old one ???

Perhaps @Jack Yaz can persuade it to be a bit more up to date on those text files [really useful for tracking down a client causing the unwanted blocks] :D,
what does the below return for you?
Code:
/usr/bin/find /opt/share/diversion/stats -name "Diversion_Stats*"
 
what does the below return for you?
Code:
/usr/bin/find /opt/share/diversion/stats -name "Diversion_Stats*"

Code:
/opt/share/diversion/stats/Diversion_Stats_RT-AC86U_2020-07-30_22.18.txt
/opt/share/diversion/stats/Diversion_Stats_RT-AC86U_2020-07-28_22.06.txt
/opt/share/diversion/stats/Diversion_Stats_RT-AC86U_2020-07-25_01.30.txt
/opt/share/diversion/stats/Diversion_Stats_RT-AC86U_2020-07-27_11.32.txt
/opt/share/diversion/stats/Diversion_Stats_Asus-Home_2020-08-07_09.40.txt
/opt/share/diversion/stats/Diversion_Stats_RT-AC86U_2020-07-22_06.22.txt
/opt/share/diversion/stats/Diversion_Stats_RT-AC86U_2020-08-01_01.30.txt
/opt/share/diversion/stats/Diversion_Stats_RT-AC86U_2020-07-19_14.24.txt

The one named "Asus-Home" was generated manually within Diversion [option 5 to get via email as well].
The order above is exactly as it presents from the code you provided.
 
I manually deleted the pesky 2020-07-19 one and regenerated stats in your utility - now displays 2020-08-01 stats [2nd to bottom above]. So I guess the order in the folder drives the issue. Not sure why naming convention changes between manual and auto stats - but that's outside your control.
 
I manually deleted the pesky 2020-07-19 one and regenerated stats in your utility - now displays 2020-08-01 stats [2nd to bottom above]. So I guess the order in the folder drives the issue. Not sure why naming convention changes between manual and auto stats - but that's outside your control.
I'll take a look - I can probably sort the files explicitly
 
I'll take a look - I can probably sort the files explicitly

May not be necessary for you to sort - could just be something odd about my files.
See for e.g. the way the files are listed in Diversion option "SF" below: -

Code:
     Diversion stats files:
  6. Diversion_Stats_Asus-Home_2020-08-07_09.40.txt
  7. Diversion_Stats_RT-AC86U_2020-07-22_06.22.txt
  8. Diversion_Stats_RT-AC86U_2020-07-25_01.30.txt
  9. Diversion_Stats_RT-AC86U_2020-07-27_11.32.txt
 10. Diversion_Stats_RT-AC86U_2020-07-28_22.06.txt
 11. Diversion_Stats_RT-AC86U_2020-07-30_22.18.txt
 12. Diversion_Stats_RT-AC86U_2020-08-01_01.30.txt

The order is correct [most recent at the bottom] - save for the manually generated one using c 2 2 5 in Diversion menus [item 6 above].
To verify I ran another manually generated set of stats - this time using Diversion menu options c 2 2 1 - and this was the result under SF option ...

Code:
     Diversion stats files:
  6. Diversion_Stats_Asus-Home_2020-08-07_09.40.txt
  7. Diversion_Stats_RT-AC86U_2020-07-22_06.22.txt
  8. Diversion_Stats_RT-AC86U_2020-07-25_01.30.txt
  9. Diversion_Stats_RT-AC86U_2020-07-27_11.32.txt
 10. Diversion_Stats_RT-AC86U_2020-07-28_22.06.txt
 11. Diversion_Stats_RT-AC86U_2020-07-30_22.18.txt
 12. Diversion_Stats_RT-AC86U_2020-08-01_01.30.txt
 13. Diversion_Stats_RT-AC86U_2020-08-07_14.37.txt

Note this time no base name change to the newest file. So would expect a regenerate for the Webui to now pick up stats listed 13 above - but it remains stuck on stats listed 12.

The command you gave me provides this output ...
Code:
 /usr/bin/find /opt/share/diversion/stats -name "Diversion_Stats*"
 /opt/share/diversion/stats/Diversion_Stats_RT-AC86U_2020-07-30_22.18.txt
/opt/share/diversion/stats/Diversion_Stats_RT-AC86U_2020-08-07_14.37.txt
/opt/share/diversion/stats/Diversion_Stats_RT-AC86U_2020-07-28_22.06.txt
/opt/share/diversion/stats/Diversion_Stats_RT-AC86U_2020-07-25_01.30.txt
/opt/share/diversion/stats/Diversion_Stats_RT-AC86U_2020-07-27_11.32.txt
/opt/share/diversion/stats/Diversion_Stats_Asus-Home_2020-08-07_09.40.txt
/opt/share/diversion/stats/Diversion_Stats_RT-AC86U_2020-07-22_06.22.txt
/opt/share/diversion/stats/Diversion_Stats_RT-AC86U_2020-08-01_01.30.txt

Not the correct order - with 2020-08-01 still the "last" entry.

Please NB - No rush from my side - fully aware that you have far more important matters to attend to. :cool:
Address it as needs be in your next general update of this awesome Diversion Add-On. :).
I have SSH access to the text stats anyway - as do we all {ThumbsUp}.
 
May not be necessary for you to sort - could just be something odd about my files.
See for e.g. the way the files are listed in Diversion option "SF" below: -

Code:
     Diversion stats files:
  6. Diversion_Stats_Asus-Home_2020-08-07_09.40.txt
  7. Diversion_Stats_RT-AC86U_2020-07-22_06.22.txt
  8. Diversion_Stats_RT-AC86U_2020-07-25_01.30.txt
  9. Diversion_Stats_RT-AC86U_2020-07-27_11.32.txt
10. Diversion_Stats_RT-AC86U_2020-07-28_22.06.txt
11. Diversion_Stats_RT-AC86U_2020-07-30_22.18.txt
12. Diversion_Stats_RT-AC86U_2020-08-01_01.30.txt

The order is correct [most recent at the bottom] - save for the manually generated one using c 2 2 5 in Diversion menus [item 6 above].
To verify I ran another manually generated set of stats - this time using Diversion menu options c 2 2 1 - and this was the result under SF option ...

Code:
     Diversion stats files:
  6. Diversion_Stats_Asus-Home_2020-08-07_09.40.txt
  7. Diversion_Stats_RT-AC86U_2020-07-22_06.22.txt
  8. Diversion_Stats_RT-AC86U_2020-07-25_01.30.txt
  9. Diversion_Stats_RT-AC86U_2020-07-27_11.32.txt
10. Diversion_Stats_RT-AC86U_2020-07-28_22.06.txt
11. Diversion_Stats_RT-AC86U_2020-07-30_22.18.txt
12. Diversion_Stats_RT-AC86U_2020-08-01_01.30.txt
13. Diversion_Stats_RT-AC86U_2020-08-07_14.37.txt

Note this time no base name change to the newest file. So would expect a regenerate for the Webui to now pick up stats listed 13 above - but it remains stuck on stats listed 12.

The command you gave me provides this output ...
Code:
 /usr/bin/find /opt/share/diversion/stats -name "Diversion_Stats*"
/opt/share/diversion/stats/Diversion_Stats_RT-AC86U_2020-07-30_22.18.txt
/opt/share/diversion/stats/Diversion_Stats_RT-AC86U_2020-08-07_14.37.txt
/opt/share/diversion/stats/Diversion_Stats_RT-AC86U_2020-07-28_22.06.txt
/opt/share/diversion/stats/Diversion_Stats_RT-AC86U_2020-07-25_01.30.txt
/opt/share/diversion/stats/Diversion_Stats_RT-AC86U_2020-07-27_11.32.txt
/opt/share/diversion/stats/Diversion_Stats_Asus-Home_2020-08-07_09.40.txt
/opt/share/diversion/stats/Diversion_Stats_RT-AC86U_2020-07-22_06.22.txt
/opt/share/diversion/stats/Diversion_Stats_RT-AC86U_2020-08-01_01.30.txt

Not the correct order - with 2020-08-01 still the "last" entry.

Please NB - No rush from my side - fully aware that you have far more important matters to attend to. :cool:
Address it as needs be in your next general update of this awesome Diversion Add-On. :).
I have SSH access to the text stats anyway - as do we all {ThumbsUp}.
I've just pushed a hotfix which will hopefully solve this for you
 
I've just pushed a hotfix which will hopefully solve this for you

Good Grief o_O ... SORTED at warp speed ... MANY thanks - hopefully not just me fixed but others too. :D

Edit: Pushed some well deserved Coffee your way {ThumbsUp}
 
Last edited:
Feature request - when and if you feel appropriate ... on uiDivStats webui page, provide a button to update uidivstats - same as option 2 in your script menu. Diversion updates itself on the hour every hour - however your uidivstats webui does not catch the most recent stats txt file until uidivstats update itself is run.
 
Feature request - when and if you feel appropriate ... on uiDivStats webui page, provide a button to update uidivstats - same as option 2 in your script menu. Diversion updates itself on the hour every hour - however your uidivstats webui does not catch the most recent stats txt file until uidivstats update itself is run.
The stats files are weekly by default, are they not?
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!

Staff online

Top