1
0
mirror of https://github.com/kmein/niveum synced 2026-03-18 11:01:07 +01:00

feat: script for handling lassulus radio

This commit is contained in:
2021-01-26 23:01:31 +01:00
parent ca50ba931a
commit f171284b71
3 changed files with 19 additions and 0 deletions

12
packages/scripts/playlist.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
endpoint=prism.r:8001
case "$1" in
good|like|cool|nice|yes|+)
curl -sS -XPOST "$endpoint/good";;
skip|next|bad|sucks|no|nope|-)
curl -sS -XPOST "$endpoint/skip";;
*)
curl -sS -XGET "$endpoint/current" | jq;;
esac