An open API service indexing awesome lists of open source software.

https://github.com/ivarref/tray-server


https://github.com/ivarref/tray-server

Last synced: 26 days ago
JSON representation

Awesome Lists containing this project

README

          

# tray-server

## Requirements

Java 11 or later, e.g.:

```
sdk install java 22-tem
```

where sdk is [sdkman](https://sdkman.io/).

## Installation

```
curl https://raw.githubusercontent.com/ivarref/tray-server/main/TrayServer -O && chmod +x ./TrayServer
```

## Usage

Start the server:
```
$ ./TrayServer
WebServer running at http://localhost:17999
```

Set a different image:

```
$ curl localhost:17999/api?img=green
$ curl localhost:17999/api?img=orange
$ curl localhost:17999/api?img=red
```

Set a different image and link:

```
$ curl "http://localhost:17999/api?img=red&link=http://example.com/something-failed"
```