1.5.0 • Published 1 year ago

webamp v1.5.0

Weekly downloads
400
License
MIT
Repository
github
Last release
1 year ago

Ampache Web Interface

Ampache web interface to make browsing, and playing your music a simple task

NOTE: This is still a work-in-progress!!

Installation

This is meant to be installed as a command-line utility

npm install -g webamp

Usage

Create the necessary config file by running

~$ webamp --init

This will create a json file at ~/.webamp/config.json that will be used to configure the local webserver settings, as well as store the ampache credentials.

~$ webamp
Server running at http://localhost:8076/
Successfully Authenticated!
Populating cache
Artists cache loaded
Albums cache loaded
Songs cache loaded
[Sat Aug 11 2012 00:15:52 GMT-0700 (PDT)] [GET] request received from 127.0.0.1 for /api/artists/7/new

Configuration

After running webamp --init you can view the configuration file at ~/.webamp/config.json

{
  "ampache": {
    "debug": false,
    "ping": 600000,
    "user": "user",
    "pass": "pass",
    "url": "http://example.com:1234/ampache/server/xml.server.php"
  },
  "web": {
    "host": "localhost",
    "port": "8076"
  }
}

Options

Most of the options are self explanatory

  • ampache.debug: (Optional) Enable debug messages for Ampache module
  • ampache.ping: (Optional) The time in milliseconds to between sending ping requests to Ampache (default: 10 minutes)

API

The design goal is that a request to / will return a nice looking web page, with all your music in a nice, easy to navigate format. All interactions on that page will use Ajax to hit the server at /api/... to pull JSON with relevant information.

Routes

/api/artists, /api/albums, /api/songs

Return an array of all of the artists/albums/songs in the cache (which is populated when the program starts)

/api/artists/:id, /api/albums/:id, /api/songs/:id

Return an object for the relevant song/album/artist by id in the cache

/api/artists/:id/new, /api/artists/:id/new, /api/artists/:id/new

Same as above, but force the info to come from Ampache and not the cache

License

MIT License

1.5.0

3 years ago

1.4.3-beta.5

3 years ago

1.4.3-beta.4

3 years ago

1.4.3-beta.3

3 years ago

1.4.3-beta.2

3 years ago

1.4.3-beta.1

3 years ago

1.4.3-beta.0

3 years ago

1.4.2

3 years ago

1.4.1

3 years ago

1.4.1-beta06

3 years ago

1.4.1-beta05

4 years ago

4.4.1-beta04

4 years ago

1.4.1-beta04

4 years ago

1.4.1-beta03

4 years ago

1.4.1-beta01

5 years ago

1.4.0

5 years ago

1.3.2-beta.2

5 years ago

1.3.2-beta.1

5 years ago

1.3.2-beta.0

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.3.0-beta.2

5 years ago

1.3.0-beta.1

5 years ago

1.3.0-beta.0

6 years ago

1.2.0

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago

0.0.25

11 years ago

0.0.24

11 years ago

0.0.23

11 years ago

0.0.22

12 years ago

0.0.21

12 years ago

0.0.20

12 years ago

0.0.19

12 years ago

0.0.18

12 years ago

0.0.17

12 years ago

0.0.16

12 years ago

0.0.15

12 years ago

0.0.14

12 years ago

0.0.13

12 years ago

0.0.12

12 years ago

0.0.11

12 years ago

0.0.10

12 years ago

0.0.9

12 years ago

0.0.8

12 years ago

0.0.7

12 years ago

0.0.6

12 years ago

0.0.5

12 years ago

0.0.4

12 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago

0.0.0

12 years ago