Thread: AmpachPre
View Single Post
Homebrew Developer: fain
at: 10:45 PM 08/22/2009
AmpachPre

Do you have a lot of music and just not enough space on your WebOS device? Have you ever been somewhere and had a tune in your head that you just had to hear but it was on your home pc?

AmpachPre is the worlds first front end for webOS to the great Web-based Audio file manager / web Media Server Ampache.

Just setup a web server, install Ampache, enter your account info into AmpachPre and login.
Search for artists, albums or songs.

With AmpachPre you have your entire music library at your fingertips.

some features include:
  • last fm scrobbling Now native to AmpachPre!
  • Create custom play lists
  • Download any mp3 from your collection
  • Download any mp3 from web
  • Save custom playlists for later
  • Search your entire music library
  • Bookmark your favorite artists or albums for fast on the go listening
  • Bluetooth control support
  • Headphone control support
  • Auto transcode flac, ogg and many other to mp3 on the fly via ampache
  • Albums of the Moment







INSTALLATION:
1. Install a LAMP, WAMP or MAMP server.
  • I made a How-to for vista32bit users. It is not pretty but its located here.
  • Ubuntu/Debian visit here
  • mac users check here
Basically you need the apache web server with php and mySQL.
for simplicity install it to C:/xampp

2. Grab a copy of Ampache 3.5.4.
(This app will only work with 3.5.2 and greater. It will NOT work with previous versions.)
You can find Installation instructions for Ampache here.
Open your web browser and type
http://localhost/ampache
This will start the configuration of ampache.
3. Enable the API by adding a access list via the instructions here. or
a. Extract the ampache archive to C:/xampp/htdocs/ampache
b. Start the web server if not already started.
c. Start your internet browser and type this into the address bar.
http://localhost/ampache
You should now be presented with ampache's configuration screen.
d. Create a database with the root username and password you created in xampp's installation.
e. Create a username and password for ampache.
f. When prompted to download ampache.php.cfg, save it in to C://xampp/htdocs/ampache/config
g. Now you can log in to ampache as the username you created in ampaches setup. Not the database user. the administrator user.
h. goto the little icon that looks like a pc in the left corner, click on add acl Name it what ever you want.
NAME : AmpachPre
LEVEL: all
USER: all
TYPE: RPC
REMOTE KEY: leave blank
START: 0.0.0.0
END: 255.255.255.255
4. Enter a account you made in the accounts section on AmpachPre, then click save.


How-to back up your AmpachPre database:

You can use save/restore to back up the database now. You can find it in Preware.

1. Before deleting AmpachPre, plug in your phone to a pc usb port and hit "Usb Drive". Or you can use sftp/ssh what ever you please.
2. Navigate to ".app-storage/file_.var.usr.palm.applications.net.nucleardecay.ampachpre_0"
3. There should be a file in there named "00000000000000xx.db" where xx can be any two hexidecimal digits.
4. Copy this file to a safe place say your Desktop.
5. Now you can eject/unmount your phone and delete AmpachPre by Orange+Tap.
6. Reinstall Ampachpre and wait for the account screen to come up.
7. Put your phone back into usb mode and navigate to ".app-storage/file_.var.usr.palm.applications.net.nucleardecay.ampachpre_0" again.
8. Note the name of the new "00000000000000xx.db" file in that directory, xx should be increased by 1.
9. Rename the file on your desktop to that of the new file then copy the old one into ".app-storage/file_.var.usr.palm.applications.net.nucleardecay.ampachpre_0"
over writing the new smaller file.
10. restart AmpachPre and your data base should be there.

OTHER STUFF:
TODO: Playlists, this is a much needed feature. done 1.5
Support for multiple accounts. done in v1.0.1
TODO: SSL support.
TODO: add a save custom play list feature/*done in 1.8.0
TODO: Video support. /*mp4 videos will not show up in ampaches api search.*/
TODO: complete the streaming scene.
TODO: clean up he interface Done in AmpachPre2

Known Issues:
When a artist comes up with a album name that has more than one artist with the same album name. All songs from all the artists are listed instead of just the songs by the artist searched. fixed in 1.6.1
Audio stops when leaving the streaming scene. By design for now, I plan on changing this. Done in 1.9.8 finally
There is no notification on the song streaming. You just have to trust its downloading. You should get a error if there is a error though.//added a progress bar till I get the progress slider working.
When downloading from ampache on SSL the download manager hangs when trying to download the album art. For now I just made a account specifically for downloading without ssl.
few problems with the now playing playlist editor caching the wrong song if you drag the now playing song to a different spot.


ChangeLog
1.0.1
1.0.2
1.5.0
1.5.1
1.5.5
1.5.6
1.5.7
1.5.8

Playlist editor Changes:
1.6
1.6.1
1.7.0

1.7.1
1.7.6
1.7.7 Thursday, November 05 2009
1.7.8 Wednesday, November 18 2009
1.7.9 Wednesday, December 02 2009
1.8.0 Wednesday, December 16 2009

IMPORTANT!
before upgrading to 1.8... If you have any downloads you would like to keep listed in ampachpre,
back up your database. (how to above) Then delete ampachpre and install 1.8.
If you are not worried about keeping the downloads listed in ampachpre just go ahead and delete ampachpre.
All downloaded files will be left on your usb partition.

1.8.1 Friday, December 18 2009
1.8.2 Sunday, December 20 2009

1.8.3 Sunday, December 27 2009
1.8.6 Friday, January 22 2010
1.8.7 Saturday, January 23 2010
1.8.8 Sunday, January 24 2010
1.9.0 Wednesday, February 24 2010

1.9.3 Saturday, March 06 2010


1.9.8 Wednesday, March 16 2010


AmpachPre2 Sunday, March 21 2010
2.0.1 Sunday, March 21 2010
2.1.1 Wednesday, April 07 2010
2.1.2 Friday, April 09 2010

2.1.3 Wednesday, May 12 2010

2.1.4 Tuesday, June 01 2010
If you are not on WebOS 1.4 or are having problems with the new 1.4 API in AmpachPre v1.9.2 You can still use v1.9.1.

AmpachPre v1.9.1


License Info:
AmpachPre version 1.9.8 is under the Creative Commons-No Derivative license.
Future versions are yet undetermined.


Reply