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

Add a dashboard view to have an overview of the current state of the application #3

Open
hauxir opened this issue Sep 30, 2019 · 7 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@hauxir
Copy link
Owner

hauxir commented Sep 30, 2019

You can already view http://HOSTNAME/status to get a JSON overview of things. Better would be to add a nice view of this under /dashboard or something like that.

@hauxir hauxir added Hacktoberfest enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Sep 30, 2019
@zbendas
Copy link

zbendas commented Oct 1, 2019

I'd like to take a crack at this!

@hauxir
Copy link
Owner Author

hauxir commented Oct 1, 2019

Sounds good! Just contact me if you have any problems.

@hauxir
Copy link
Owner Author

hauxir commented Oct 14, 2019

any updates on this?

@zbendas
Copy link

zbendas commented Oct 14, 2019

Sorry for the delay on this! It took me a while to understand how things were structured.

Would you be able to provide an example of what subtitle_downloads, torrent_downloads, session_torrents, and conversions returned by the /status route should look like? They're the only things I haven't quite figured out as of now.

@hauxir
Copy link
Owner Author

hauxir commented Oct 14, 2019

No worries!

  • subtitle_downloads referes to subtitles being downloaded for a particular file. The key is the filename and possible values are here https://github.com/hauxir/rapidbay/blob/master/app/rapidbaydaemon.py#L96
  • torrent_downloads show the currently downloading+converting files in torrents. The keys are the magnet hashes and the value is an object where the keys are the filenames. the key for each filename is peers(number of connected peers), progress(0-1) that shows the download progress and status which is one of the values here https://github.com/hauxir/rapidbay/blob/master/app/rapidbaydaemon.py#L80. This is probably the most important information for the dashboard.
  • conversions is an object that contains the files currently being converted. The keys are filenames and the value is simply true.

If you have any more questions just hit me up!

@zbendas
Copy link

zbendas commented Oct 29, 2019

Apologies, but I ended up not having as much time as I would've liked to work on this! I've got a partial implementation of a dashboard that I could put up as a pull request.

It's got views for torrent downloads, in-progress conversions, subtitle downloads, a hierarchical view of the output directory, file directory, and download directory.

If you'd like me to submit a PR for the partial I've got, let me know!

@hauxir
Copy link
Owner Author

hauxir commented Oct 29, 2019

Sure, just submit it and i'll have a look :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants