Hello Volumio Community,
I’m using an http endpoint ( filebeat ) in ordet to get status changes of my volumio player ( v 3.378 / x86_amd64 ).
As per NGINX logs the api is sending the status change event multiple times:
192.168.1.151 - - [06/Dec/2022:23:48:51 +0100] "POST / HTTP/1.1" 405 157 "-" "-"
192.168.1.151 - - [06/Dec/2022:23:48:51 +0100] "POST / HTTP/1.1" 405 157 "-" "-"
192.168.1.151 - - [06/Dec/2022:23:48:51 +0100] "POST / HTTP/1.1" 405 157 "-" "-"
192.168.1.151 - - [06/Dec/2022:23:48:51 +0100] "POST / HTTP/1.1" 405 157 "-" "-"
192.168.1.151 - - [06/Dec/2022:23:48:51 +0100] "POST / HTTP/1.1" 405 157 "-" "-"
192.168.1.151 - - [06/Dec/2022:23:48:51 +0100] "POST / HTTP/1.1" 405 157 "-" "-"
192.168.1.151 - - [06/Dec/2022:23:52:37 +0100] "POST / HTTP/1.1" 405 157 "-" "-"
192.168.1.151 - - [06/Dec/2022:23:52:37 +0100] "POST / HTTP/1.1" 405 157 "-" "-"
192.168.1.151 - - [06/Dec/2022:23:52:37 +0100] "POST / HTTP/1.1" 405 157 "-" "-"
192.168.1.151 - - [06/Dec/2022:23:56:55 +0100] "POST / HTTP/1.1" 405 157 "-" "-"
192.168.1.151 - - [06/Dec/2022:23:56:55 +0100] "POST / HTTP/1.1" 405 157 "-" "-"
192.168.1.151 - - [06/Dec/2022:23:56:56 +0100] "POST / HTTP/1.1" 405 157 "-" "-"
I got at least 3 post request for each status change and in the timeframe shown in the logs i was just normally playing a playlist ( no pause / play / skip actions ).
Is there any way to fix this behaviour?
I’m sending the filebeat stream to elasticsearch to create stats simliar to “spotify wrapper” ones but working with duplicates records makes it more difficult.
Edit:
- Further reference: Websocket sends too many pushState during song change · Issue #1824 · volumio/Volumio2 · GitHub
Thanks all,
Luca