2019-02-07 14:08:42 +00:00
|
|
|
# tsviewer **[ALPHA 1.0.0]**
|
2019-01-15 00:46:39 +00:00
|
|
|
|
2019-01-17 00:44:08 +00:00
|
|
|
A TS3 Viewer with REST API.
|
2019-02-07 14:08:42 +00:00
|
|
|
|
|
|
|
WARNING°! BACKEND CANNTO BE ACCESED PROPERLY THROUGH JAVASCRIPT APPLETS WHEN RUNNING IN DOCKER @NULL CONIG
|
2019-01-15 00:46:39 +00:00
|
|
|
|
2019-01-31 22:28:58 +00:00
|
|
|
## DOCKER-Config
|
|
|
|
|
|
|
|
```bash
|
|
|
|
docker build -t name/cont:ver .
|
|
|
|
|
2019-02-07 13:58:44 +00:00
|
|
|
docker run -e TS3_IP="<SERVER-IP>" -e TS3_PW="<SERVER-ADMIN_PW>" -e WEB_PORT="8080" -d -p 8080:8080 name/cont:ver
|
2019-01-31 22:36:07 +00:00
|
|
|
```
|
|
|
|
ENV:
|
|
|
|
```Docker
|
|
|
|
|
2019-02-04 00:01:58 +00:00
|
|
|
ENV TS3_IP=127.0.0.1
|
2019-02-03 18:58:33 +00:00
|
|
|
ENV TS3_NAME=serveradmin
|
2019-02-04 00:01:58 +00:00
|
|
|
ENV TS3_PW=<changeMe>
|
2019-02-03 18:58:33 +00:00
|
|
|
ENV TS3_PORT=9987
|
|
|
|
ENV TS3_QUERY=10011
|
|
|
|
ENV WEB_PORT=8080
|
2019-02-04 00:01:58 +00:00
|
|
|
ENV BLACKLIST_USER=USER
|
|
|
|
|
2019-01-31 22:36:07 +00:00
|
|
|
|
2019-01-31 22:28:58 +00:00
|
|
|
```
|
|
|
|
|
2019-01-15 00:46:39 +00:00
|
|
|
# Features
|
2019-01-17 08:25:04 +00:00
|
|
|
|
2019-01-15 00:46:39 +00:00
|
|
|
## Config
|
2019-01-17 08:25:04 +00:00
|
|
|
|
2019-01-15 00:46:39 +00:00
|
|
|
The config file is generated automatically on first startup.
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"user": {
|
2019-02-03 18:58:33 +00:00
|
|
|
"nickname": "serveradmin",
|
2019-01-17 00:37:54 +00:00
|
|
|
"name": "serveradmin",
|
|
|
|
"password": ""
|
2019-01-15 00:46:39 +00:00
|
|
|
},
|
2019-01-17 00:37:54 +00:00
|
|
|
"serverTS": {
|
|
|
|
"ip": "127.0.0.1",
|
|
|
|
"portServer": 9987,
|
|
|
|
"portQuery": 10011
|
|
|
|
},
|
|
|
|
"serverWeb": {
|
|
|
|
"port": 80
|
2019-01-15 00:46:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
2019-01-17 08:25:04 +00:00
|
|
|
|
2019-01-15 00:46:39 +00:00
|
|
|
## URL-Parameter
|
2019-01-17 08:25:04 +00:00
|
|
|
|
2019-02-07 13:50:36 +00:00
|
|
|
| Name | Type | Description |
|
|
|
|
| ---------- | ------ | ------------------------ |
|
|
|
|
| `pretty` | `bool` | pretty-prints JSON |
|
|
|
|
| `envelope` | `bool` | wraps JSON in data array |
|
2019-01-17 08:25:04 +00:00
|
|
|
|
2019-01-15 00:46:39 +00:00
|
|
|
## Channels
|
2019-01-17 08:25:04 +00:00
|
|
|
|
2019-01-15 00:46:39 +00:00
|
|
|
- **`GET`** `/v1/channels/:id`
|
|
|
|
- **`GET`** `/v1/channels`
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"databaseId": 1,
|
2019-01-16 22:07:38 +00:00
|
|
|
"channelId": 1,
|
2019-01-15 00:46:39 +00:00
|
|
|
"nickname": "serveradmin from 127.0.0.1:58359",
|
|
|
|
"type": 1,
|
|
|
|
"away": false,
|
|
|
|
"awayMessage": ""
|
|
|
|
}
|
|
|
|
```
|
2019-01-17 08:25:04 +00:00
|
|
|
|
2019-01-15 00:46:39 +00:00
|
|
|
## Clients
|
2019-01-17 08:25:04 +00:00
|
|
|
|
2019-01-15 00:46:39 +00:00
|
|
|
- **`GET`** `/v1/clients/:id`
|
|
|
|
- **`GET`** `/v1/clients/`
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"id": 1,
|
|
|
|
"subchannels": [
|
|
|
|
... (contains all subchannel)
|
|
|
|
],
|
|
|
|
"name": "main1",
|
|
|
|
"totalClients": 0,
|
|
|
|
"neededSubscribePower": 0
|
2019-01-16 21:01:48 +00:00
|
|
|
}
|
2019-01-15 00:46:39 +00:00
|
|
|
```
|
2019-01-17 08:25:04 +00:00
|
|
|
|
2019-01-16 22:07:38 +00:00
|
|
|
## Server
|
2019-01-17 08:25:04 +00:00
|
|
|
|
2019-01-16 22:07:38 +00:00
|
|
|
- **`GET`** `/v1/server/info`
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"name": "TeamSpeak ]I[ Server",
|
|
|
|
"status": "online",
|
|
|
|
"version": "3.5.1 [Build: 1545076855]",
|
|
|
|
"welcomeMessage": "Welcome to TeamSpeak, check [URL]www.teamspeak.com[/URL] for latest information",
|
|
|
|
"maxClients": 32,
|
|
|
|
"clientsOnline": 2,
|
|
|
|
"reservedSlots": 0,
|
|
|
|
"uptime": 5976,
|
|
|
|
"totalPing": 0,
|
|
|
|
"minAndroidVersion": 1502275280,
|
|
|
|
"minClientVersion": 1513163251,
|
|
|
|
"miniOSVersion": 1502275280
|
|
|
|
}
|
|
|
|
```
|