cyoung / stratux

Aviation weather and traffic receiver based on RTL-SDR.
BSD 3-Clause "New" or "Revised" License
1.06k stars 362 forks source link

192.168.10.1/logs/startux sorting #232

Closed peepsnet closed 8 years ago

peepsnet commented 8 years ago

Can we sort this page alphabetically?? Its a PITA to find anything.

And some file details like size

kjablonski commented 8 years ago

+1 or sort by type (UAT, 1090, GPS)

https://www.github.com/alfajango/jquery-dynatable could be used. it looks light-weight enough and has sorting and searching capabilities

bkwny commented 8 years ago

+1. +100 if I could. I just now pulled logs for @cyoung. What a pain it was.

peepsnet commented 8 years ago

The only way I can see to get this going is json. Can we get a json array of files in the log folder. we can parse with angularUI and list, sort and filter. then we can build a link around each file for download.

I don't know how to do that in any timely manor but I know we could take that approach

Thoughts???

cyoung commented 8 years ago

Don't bother too much with it, in the next release we'll be using a webserver (not Go webserver) to serve the webui files + logs. What you are requesting is a fairly standard feature of most webservers.

peepsnet commented 8 years ago

Great.

cyoung commented 8 years ago

stratux_logs

Any better?

bkwny commented 8 years ago

Much!

cyoung commented 8 years ago

Accessible at http://192.168.10.1/view_logs. Linked also in the "Logs" tab of the main interface.

bkwny commented 8 years ago

I have 796d0a2 but my /logs/ tab does not link to /view_logs. And in /logs/ when I click on "SDR, AHRS, and GPS logs" I see the old-style listing of log files. When I try to force it by putting /view_logs into the browser location bar, my browser gets directed to the "Status" tab.

Edit: Chrome on Win 7 gives correct result. Firefox on Ubuntu gives wrong result.

cyoung commented 8 years ago

The first part is not intended behavior, the second part sounds like your browser may have cached the files.

Did you try going directly to the link? http://192.168.10.1/view_logs/

bkwny commented 8 years ago

Yes, when I tried to go directly to the link, the next thing I saw in the browser window was the Web UI's "Status" tab.