Java 11 or later, e.g.:
sdk install java 22-tem
where sdk is sdkman.
curl https://raw.githubusercontent.com/ivarref/tray-server/main/TrayServer -O && chmod +x ./TrayServer
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"