ivarref / tray-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tray-server

Requirements

Java 11 or later, e.g.:

sdk install java 22-tem

where sdk is sdkman.

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"

About


Languages

Language:Java 97.8%Language:Shell 2.2%