2021-06-25 16:41:42 +02:00
|
|
|
# wnpClient
|
2021-06-25 16:44:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
Alternative client for the [WebNowPlaying-BrowserExtension](https://github.com/tjhrulz/WebNowPlaying-BrowserExtension).
|
|
|
|
|
|
|
|
Requires [websocketd](https://github.com/joewalnes/websocketd).
|
|
|
|
|
2021-06-27 11:36:46 +02:00
|
|
|
Run it with:
|
|
|
|
`websocketd --port=8974 wnpClient`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The information is stored in a text file: `~/.wnpClient/wnpClient.txt`.
|
|
|
|
|
|
|
|
From there you can read it with whatever application you want to use.
|
|
|
|
For example with [Executor](https://extensions.gnome.org/extension/2932/executor/) for the gnome desktop environment.
|
|
|
|
`head ~/.wnpClient/wnpClient.txt -n 2 | sed ':a;N;$!ba;s/\n/ by /g'`
|
|
|
|
|
|
|
|
The cover of the current song is also downloaded to `~/.wnpClient/cover.jpg`.
|