Hi there,
Just some words to show some new features I’m developing for the library :
As you can see, a toolbar has appeared at the top, with several features:
- Search feature (full-text search, with any terms or exact terms, + some advanced search patterns. I’ve written some in-app help dialog since it’s not obvious)
- A “force reload” button that will be necessary since the library is now loaded from cache, to speed up the loading
- Play all / add all button are now in this toolbar
- Some “smart playlist” management that allows you to save and restore your custom filters. For instance, you can save a playlist that is dynamically defined by a pattern “all rock songs rated more than 4”.
- Each song can be individually rated 1-5 stars
I hope you’ll like it… Of course every comment is welcomed, better now than after release!
********** BETA TESTING *************
For Beta-testers who would like to install it:
Installation steps:
- I recommend you make a backup of your current image. At minima, backup folder /var/www
- Remove everything in /var/www
- Clone my git repo (it’s a fork from official Volumio):
git clone git@github.com:jotak/Volumio-WebUI.git /var/www
(if that doesn’ work, try git clone github.com/jotak/Volumio-WebUI /var/www)
- From /var/www, checkout branch 1.6
git checkout -b 1.6 origin/1.6
- Copy your backuped db back
cp <where you put backup>/db/player.db /var/www/db/player.db
- Install nodejs
sudo apt-get install nodejs
- Since debian has a package conflict with “node”, you’ll have to symlink it
sudo ln -s /usr/bin/nodejs /usr/bin/node
- Install npm
sudo apt-get install npm
This one installs tons of stuff. NPM is node’s package manager, so it should not be required for the end users when released, but for now it’s necessary. If you’re done with beta-testing and want to revert that, just type ‘sudo apt-get remove npm’
- Navigate in /var/www/node and run command:
npm install
- Copy nginx config file
sudo cp /var/www/_OS_SETTINGS/etc/nginx/nginx.conf /etc/nginx
- Reboot
- Run node (since this step must be done after each reboot, you may want to put it as @reboot in crontab)
node /var/www/node/server.js
- Open webui and clear browser’s cache
The first run will be quite slow, but subsequent runs will be faster
I’ve run it from a Volumio 1.4 install, but it should also work from 1.5… and actually, it should work better because nginx in 1.5 supports websockets, not in 1.4. Anyway, please report me any problem you would have. It would also be nice if you can open a javascript console and tell me if everything is ok.
What I’m especially interested to know is:
- If it works, obviously
- If it’s faster than before
- If 10K limit is bad dream
- If it runs well with websocket in 1.5
- Also, it would be nice to check memory consumption. A cache is used to increase speed, but it implies more memory used.
If you want to quickly jump back to Volumio main branch, just go in /var/www and type
git checkout master
sudo /etc/init.d/php-fmp5 restart
(clear browser cache)
Back again to lib beta-test:
git checkout act_nodelib
sudo /etc/init.d/php-fmp5 restart
(clear browser cache)