Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incomplete information on web interface #4

Open
edglazer opened this issue Sep 3, 2015 · 5 comments
Open

Incomplete information on web interface #4

edglazer opened this issue Sep 3, 2015 · 5 comments

Comments

@edglazer
Copy link

edglazer commented Sep 3, 2015

This is such a cool project!
I'm having a problem that the "current listeners" doesn't show anything, nor do the "Maximum" "Minimum" "Average per day" "Median per day" and the "Most quarter listened" "Least quarter listener" "Average listeners per quarter" and "Median listeners per quarter". Also I don't see any GeoIP information presented anywhere either. Is it possibly something on my system?

Ubuntu 14.04.03 all up to date. Initial installation was 8/20/2015 or so, and just pulled the latest version, but still having the issue.

@leofiore
Copy link
Contributor

leofiore commented Sep 4, 2015

it is not your fault. Right now the interface is quite a work-in progress so not really all informations are displayed or displayed correctly.

At the moment, the GeoIP informations are stored in the database but never displayed. The other informations needs to be calculated at runtime and then displayed, so we have to implement the core logic. Sorry for the mess!

@biappi
Copy link

biappi commented Sep 4, 2015

what version are we running on radiocicletta.it? we can tag that as "0.1" or something.

@edglazer
Copy link
Author

edglazer commented Sep 4, 2015

Ah! Ok, I understand! Well I think its very neat so far, and I'm interested to see the future of this project. I tried looking at the data yesterday, to see if the GeoIP was recorded in the database, as you mention. But I couldn't find the database file. Am I correct in thinking that it uses a sqlite database file?

@leofiore
Copy link
Contributor

leofiore commented Sep 4, 2015

@biappi

what version are we running on radiocicletta.it? we can tag that as "0.1" or something.

currently is HEAD (always on the edge!)

@edglazer

I tried looking at the data yesterday, to see if the GeoIP was recorded in the database, as you mention. But I couldn't find the database file. Am I correct in thinking that it uses a sqlite database file?

50/50. Look at https://github.com/radiocicletta/morganfreeman/blob/master/icestats/db.py#L22 , that is the model of the sqlite file we use to store data. Actually, the table listener contains the fields country and iso_code. Those fields are derived by the geoip function, that use a maxmind db (which you have to download by yourself, using the instructions on the readme file.

The same data are already packed and sent via JSON to the interface (but not displayed, as i previously said). Try to inspect all the xhr calls and you'll see what i'm talking about.

@romeor
Copy link

romeor commented Nov 13, 2015

Hey,

When do you plan to implement the geoip function? Am also interested in this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants