FlexHub Forum

FlexHub General => Announcements => Topic started by: FlipFlop™ on July 01, 2012, 17:13:23

Title: Web statistics
Post by: FlipFlop™ on July 01, 2012, 17:13:23
With the new FlexHub release svn 1358, we have added web statistics.

(http://www.flexhub.org/images/flexstats-screen1.jpg)

Here's an example: http://flexhub.org/stats/flexhub.php?hubid=VKAFLB (http://flexhub.org/stats/flexhub.php?hubid=VKAFLB)
The statistics charts are interactive, you can click on a legend item to hide the graph for that item, and you can zoom in by dragging over the desired area in the chart.

From now on flexhub.org will host those web statistics for your hub for free.
To enable it for your hub, there are three simple steps.

1. Make sure your hubsoft is up to date. If you're not running svn 1358 yet: use '!update now' and restart your hub.

2. Make sure that the hubaddress set with !set hub_address is the proper address for your hub.
This address is used to verify the source when your hub sends the statistics to the flexhub.org server. If the address doesn't match the external IP of the hub, the statistics are ignored.

3. Use !webstats_reg <forumnick> <forumpass>
Instead of <forumnick> and <forumpass> use the nickname and password you use when logging into the flexhub.org (http://www.flexhub.org) forum. If you don't have an account yet, register there first.

That's all.
If the webstats registration is successful you'll see a website address for your hub statistics. If you want to broadcast it to your users or operators, you can use the %[webstats] parameter to add to any textcommand.

Some planned features that aren't working yet:
- Password protection of statistics (for private hubs or hubowners who don't want their statistics to be public)
- Worldmap: Shows geolocation of the users in the hub (testversion is working for the support hub only)
- Live chat: Will allow registered users to use webchat from any browser.
Title: Re: Web statistics
Post by: LadyStardust on July 03, 2012, 08:20:30
All web stats settings you can check with !set webstats command. Please don't change them, all you need to be set up is !webstats_reg

Quote
[08:14:30] <`°º¤MotherNature¤º°`> *** !set webstats
[08:14:30] <`°º¤MotherNature¤º°`>

   Available settings:

____________________________________________________________
   !set webstats_enable                        Value: true                                      Use the flexhub.org statistics service
   !set webstats_id                            Value: meow                                    Set the hub ID you received from flexhub.org (don't share this ID, it's linked to this hub!)
   !set webstats_interval                      Value: 1800                                      Time interval between sending statistics
   !set webstats_page                          Value: http://flexhub.org/stats/flexhub.php?hubid=meow      The webpage showing your hub statistics
   !set webstats_token                         Value: gtokEWCWAOLZ                           Set the token you received from flexhub.org

If you can't remember your forum password please let us know and we will try to deal with it  ;)
Title: Re: Web statistics
Post by: massi on July 04, 2012, 17:39:52
Very nice work ! Flex it's the right way to go !  ;)
Title: Re: Web statistics
Post by: Neolo on July 05, 2012, 11:37:32
- Please fix charset problem, it always chasing me.
- I want to have translated stats to my own language.
- I want to embed stats on my website with style like this http://www.flexhub.org/dev/clientstats.php without left menu and big logo.
- I forced to set hub address by naked IP, because I wont accept domain name (my server has 2 IPs)
Error: 12 The specified hub address doesn't resolve to this hub IP.
Thank you. Appreciate your work.  :P
Title: Re: Web statistics
Post by: FlipFlop™ on July 05, 2012, 12:06:43
- Charset problem will be fixed on next update
- Translation is planned
- Hosting your own stats: I've answered this already. You can edit the Hub-WebStats.lua file to let it send the data you want to your own server. Then you can store that data in a MySQL database and can create and host your own statistics with some php, javascript and the help of http://www.highcharts.com
- I've set that second IP as alternative now for that hub, you should be able to use the domain name now in !set hub_address
Title: Re: Web statistics
Post by: þ††i£øû]v[™ on July 09, 2012, 06:42:28
yes very nice
good job :)
Greetings
Title: Re: Web statistics
Post by: sergius_s on June 12, 2013, 13:43:02
It is a very good idea !!!
Title: Re: Web statistics
Post by: sergius_s on June 17, 2013, 05:14:27
I had one problem today with the web statistics. This is the log bot:

04:06:53] <«»Siberia«»> [FI]
If this is another hub, first use !set hub_address <address>:<port> and then use !webstats_reg <forumnick> <forumpass> to register.
[04:36:53] <«»Siberia«»> [FI]
If this is another hub, first use !set hub_address <address>:<port> and then use !webstats_reg <forumnick> <forumpass> to register.
[05:36:55] <«»Siberia«»> [FI]
If this is another hub, first use !set hub_address <address>:<port> and then use !webstats_reg <forumnick> <forumpass> to register.

But the hub worked fine at this time, hublist pinged the hub normally and users did not have the disconnects.
Then returned to normal job statistics.

P.S.: I'm sorry for my terrible english, I do not speak English - only russian, i use google translator ;)
Title: Re: Web statistics
Post by: FlipFlop™ on June 17, 2013, 09:15:37
I think that for some reason the FlexHub webserver couldn't resolve the address siberia.sytes.net to the proper IP for a while.
If it happens more often please let me know.
Title: Re: Web statistics
Post by: sergius_s on June 17, 2013, 09:25:37
Ok, FlipFlop and thanks :)

Maybe the problem was on the server NoIP?
Title: Re: Web statistics
Post by: sergius_s on June 19, 2013, 19:55:32
On the chart N2 share=0, but It is not so.
Statistics determines the number of users correctly, but share - no...
Title: Re: Web statistics
Post by: FlipFlop™ on June 21, 2013, 10:13:24
Thanks for reporting, fixed for next release.
Title: Re: Web statistics
Post by: sergius_s on June 29, 2013, 16:37:38
One of my friends has a problem with the Cyrillic alphabet on the site web statistics.
How can I fix it?
In the settings hub he did !set char_set windows-1251 but it did not help.
May be necessary to replace UTF-8 into cp1251 or windows-1251 in the script Hub-WebStats.lua?
Title: Re: Web statistics
Post by: FlipFlop™ on July 01, 2013, 00:28:32
Thanks for reporting. It's a known problem, due to a charset mismatch with the webserver's database fields.
It's on the todo-list to be fixed, but in the meantime: apart from the hubname, the statistics will be correct.
Title: Re: Web statistics
Post by: sergius_s on July 31, 2013, 17:42:50
I saw an interesting phenomenon in the WebStatistics...
Tell me what kind of time loop on the diagrams? Or i do not understand anything in the diagrams :DD
Title: Re: Web statistics
Post by: sergius_s on August 04, 2013, 14:54:06
Btw, If anyone is interested --> https://vimeo.com/73554582 (https://vimeo.com/73554582)

 ;)
Title: Re: Web statistics
Post by: FlipFlop™ on August 20, 2013, 16:16:42
Stats problem was due to a sorting problem in php, fixed now.

Nice demo video of the FlexHub Webstats!
Title: Re: Web statistics
Post by: sergius_s on August 20, 2013, 16:59:26
I also like this video. For two reasons:

1. I like the FlexHub.
and
2. I like the Dubstep (music at the clip - Bare-Shot me down)

 ;)
Title: Re: Web statistics
Post by: we420247 on September 01, 2013, 15:11:51
Any update on this feature?
... <snip>
Some planned features that aren't working yet:
- Password protection of statistics (for private hubs or hubowners who don't want their statistics to be public)
Thanks for all that you do, have done and may yet do!
Title: Re: Web statistics
Post by: tiwgr on September 02, 2013, 19:42:24
Hey guys

few minutes ago the hub feed bot tell me this message

Result of sending hub statistics to flexhub.org server: Statistics denied by flexhub.org server: 12 This hub doesn't match the IP for the registered address: theinternetworld.no-ip.info:413, statistics ignored.
If this is another hub, first use !set hub_address <address>:<port> and then use !webstats_reg <forumnick> <forumpass> to register.

please help me how to fixed this error?

sorry my bad english i m from greece.
Title: Re: Web statistics
Post by: massi on September 03, 2013, 07:43:04
Hi, welcome!   :)

- - -

1) To enable webstats, in your hub please type:

!webstats_reg <forumnick> <forumpass>

- For example, if your forumnick is "tiwgr" and your forumpass is "tiwgr" ( forum http://www.flexhub.org/  ;) )

- Type in your hub:

!webstats_reg tiwgr tiwgr

- - -

2) Check and type in your hub:

!set hub_address theinternetworld.no-ip.info:413

- nb. if this it's your hub address of course :)

- - -

NB for any problem, write here and take a look http://www.flexhub.org/forum/index.php?topic=485.0

- - - 

If it's all right, i think that for some reason the FlexHub webserver couldn't resolve the address theinternetworld.no-ip.info:413 to the proper IP for a while. Thanks for your reporting.

- - -

Take a look here...  ::)

http://www.dchublist.com/hub/search/?SearchHubForm%5Bkeyword%5D=theinternetworld&yt0=Search&SearchHubForm%5Bstatus%5D=&SearchHubForm%5Bcountry%5D=&SearchHubForm%5Bhub_type%5D=&SearchHubForm%5Busers%5D=&SearchHubForm%5Bmin_share%5D=&SearchHubForm%5Btotal_share%5D=&SearchHubForm%5Bmin_slot%5D=&SearchHubForm%5Badc%5D=

Timeout...
check your firewall or your hub setting or your dns setting or your portforward -> http://portforward.com/  :D
check setting in your Dynamic update client http://www.noip.com/downloads.php?page=win   ;)

NB. HexHub 411, Ptokax 412, FlexHub 413 portforward all port in your router and in your firewall.

- - -

Summary of the key things to check:

1. Make sure your hubsoft is up to date. If you're not running svn 1358 yet: use '!update now' and restart your hub.

2. Make sure that the hubaddress set with !set hub_address is the proper address for your hub.
This address is used to verify the source when your hub sends the statistics to the flexhub.org server. If the address doesn't match the external IP of the hub, the statistics are ignored.

3. Use !webstats_reg <forumnick> <forumpass>

4. Check your portforward -> http://portforward.com/

5. Check your Dynamic update client -> http://www.noip.com/downloads.php?page=win 


- - -

I hope I was clear and above all signing was helpful and that you will solve as soon as possible, keep us informed.
Best regards,
Massimiliano
Title: Re: Web statistics
Post by: FlipFlop™ on September 03, 2013, 11:21:57
The registration was fine.

Some hosts have two or more IP's. When FlexHub connects to the webserver to send statistics, the IP that isn't linked to the DNS can be used for that http traffic. The statistics are then ignored by the webserver because it can't be sure the statistics are from the right hub.

To solve it I've added the second IP for your hub as allowed address. If that's a dynamic IP, it's best to make a different DNS address for it, and let me know, so I can add that one instead of the IP.
Title: Re: Web statistics
Post by: tiwgr on September 22, 2013, 17:19:41
Recieve this error

Result of sending hub statistics to flexhub.org server: Statistics denied by flexhub.org server: Could not connect to MySQL: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)

Result of sending hub statistics to flexhub.org server: Statistics denied by flexhub.org server: Could not connect to MySQL: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Title: Re: Web statistics
Post by: sergius_s on September 22, 2013, 17:35:23
tiwgr, there were some problems on the server. Now everything is working fine.
Title: Re: Web statistics
Post by: tiwgr on September 22, 2013, 22:14:52
Thank You
Title: Re: Web statistics
Post by: tiwgr on September 28, 2013, 11:59:05
Hi all (again)

maybe if you know?

today recieve this error again

Result of sending hub statistics to flexhub.org server: Statistics denied by flexhub.org server: Could not connect to MySQL: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
Title: Re: Web statistics
Post by: sergius_s on September 28, 2013, 15:31:37
Hey tiwgr!

Resource Web Statistics is working fine. Yes, there are short-term problems on the server, but they don't take place due to our fault and not the fault of the FlexHub. Such problems can happen on any server - this iron. But we try to solve these problems as quickly as possible.  ;)

Best regards,
sergius_s
Title: Re: Web statistics
Post by: tiwgr on September 28, 2013, 17:30:58
thank you for anwser

i know this problems dont worry.
Title: Re: Web statistics
Post by: tiwgr on October 17, 2013, 22:19:53
Result of sending hub statistics to flexhub.org server: Statistics denied by flexhub.org server: 13 Your last statistics have been sent less than 30 minutes ago, update skipped.
Title: Re: Web statistics
Post by: FlipFlop™ on October 17, 2013, 22:36:46
That message can occur when your hub is restarted. Then it can try to send statistics to the server too quick since the last time. It will simply skip once and send the statistics 30 minutes later.
Title: Re: Web statistics
Post by: tiwgr on October 20, 2013, 22:12:10
Thank you
Title: Re: Web statistics
Post by: tiwgr on January 28, 2014, 18:50:30
<Hub-Security> [FI]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
- <html><head>
- <title>404 Not Found</title>
- </head><body>
- <h1>Not Found</h1>
- <p>The requested URL /stats/send_flexstats.php was not found on this server.</p>
- <p>Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.</p>
- <hr>
- <address>Apache/2 Server at flexhub.org Port 80</address>
- </body></html>
Title: Re: Web statistics
Post by: FlipFlop™ on January 28, 2014, 21:01:57
The webserver has been offline for a while today for maintenance. That's why some statistics updates will have failed to reach the server.
I'll see if I can make the error in feed a bit more understandable if something like that happens a next time.

Thanks for reporting!
Title: Re: Web statistics
Post by: tiwgr on January 31, 2014, 12:41:54
today give me this error

copy & paste for Hub Feed all messages

<Hub-Security> [FI]
Title: Re: Web statistics
Post by: FlipFlop™ on January 31, 2014, 13:17:09
Hi tiwgr, there has been some maintenance on the hublist and statistics server, during which time that error displayed. All should work ok again now.
Title: Re: Web statistics
Post by: sergius_s on February 01, 2014, 01:42:33
Yes, problems have been, but now all works fine :))
Title: Re: Web statistics
Post by: tiwgr on February 09, 2014, 18:37:23
Yes all ok now

thank you

Title: Re: Web statistics
Post by: þ††i£øû]v[™ on March 28, 2014, 06:56:16
Btw, If anyone is interested --> https://vimeo.com/73554582 (https://vimeo.com/73554582)

 ;)

fine segius :D
Title: Re: Web statistics
Post by: tiwgr on February 16, 2015, 18:06:41
Can't retrieve hub data from MySQL
Title: Re: Web statistics
Post by: FlipFlop™ on February 16, 2015, 19:43:48
Statistics should be fixed now, thanks for reporting!