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

Status display - User access list Feature #1173 #164

Closed
wants to merge 45 commits into from

Conversation

andyb2000
Copy link
Contributor

Adds the tab "Status" and sub-tab "User Access List" which lists which users/devices are connected to TVH.
Entries include http to the Webui and HTSP for streaming. Shows IP of device/user connected and if HTSP also the channel being streamed.

andyb2000 and others added 30 commits September 8, 2012 09:32
as a config parameter not an in-memory storage
config options not in-memory structure (for runtime logging)
Fixed search and display routine (will dump current user
database on a status.xml request)

And user information automatically updated at each http or htsp
request.
Now outputs logs in the format:

Sep 17 10:30:04 [DEBUG]:accesscontrol: Logging structure al->id: 2
Sep 17 10:30:04 [DEBUG]:accesscontrol: Logging structure al->username: andyb
Sep 17 10:30:04 [DEBUG]:accesscontrol: Logging structure al->startlog: 1347874194
Sep 17 10:30:04 [DEBUG]:accesscontrol: Logging structure al->currlog: 1347874204
Sep 17 10:30:04 [DEBUG]:accesscontrol: Logging structure al->ip: 192.168.2.94
Sep 17 10:30:04 [DEBUG]:accesscontrol: Logging structure al->type: http
displays contents of the access_log database
suggestion
Re-do initial logging initialisation code
a destroy event to remove when client disconnects (hopefully)
logs honoured, so status.xml now shows active htsp
and will remove htsp client/user on stop subscription
for htsp subscriptions by parsing the log data
string
@nmaclean
Copy link
Contributor

Hi Andy - nice work - can you change status_userlist.js to have a relative url, just for the guys that have tvheadend behind a reserve proxy.

url : '/status/userlist', -> url : 'status/userlist',

I have test this change.

@xhaggi
Copy link
Contributor

xhaggi commented Oct 14, 2012

@andyb2000 it would be great if you can squash all your commits, so it's only one commit

@adamsutton
Copy link
Contributor

@andyb2000 I wouldn't worry about squashing stuff in PRs I will always do that before I push to master anyway.

@adamsutton
Copy link
Contributor

@andyb2000 I need a proper chance to review this, but to do that I need to be on a machine at home. So I'm gonna have to leave this for a bit.

  url : '/status/userlist', -> url : 'status/userlist',
To handle reverse proxy a little better
@andyb2000
Copy link
Contributor Author

Just noticed a push with similar code added by andoma, was this part of this PR or are you still reviewing this Adam?

Adam Sutton notifications@github.com wrote:

@andyb2000 I need a proper chance to review this, but to do that I need
to be on a machine at home. So I'm gonna have to leave this for a bit.


Reply to this email directly or view it on GitHub:
#164 (comment)

Sent from my Android phone with K-9 Mail. Please excuse my brevity.

@adamsutton
Copy link
Contributor

@andyb2000 yeah sorry about that, I did point @andoma at your PR and he was originally going to pull it and modify I think. But I'm not sure whether he ended up doing it from scratch.

Maybe its worth taking a look at what he's done and seeing how well it aligns and whether you can add to what he's done.

Adam

@adamsutton
Copy link
Contributor

@andyb2000 I've had a look at @andoma's version and I don't think his includes everything you were planning to add, however he might also be adding more to his.

I think it would be a good idea to chat it over with him and see whether its worth you continuing what you're doing and simply incorporate into his etc...

Adam

@ghost ghost assigned andoma Oct 19, 2012
@andyb2000 andyb2000 closed this Oct 22, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants