https://github.com/ivarref/tray-server
https://github.com/ivarref/tray-server
Last synced: 26 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ivarref/tray-server
- Owner: ivarref
- Created: 2024-04-08T19:58:02.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-02T08:37:19.000Z (over 1 year ago)
- Last Synced: 2024-05-02T21:57:16.135Z (over 1 year ago)
- Language: Java
- Size: 91.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"
```