You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FHEM hangs after Not a HASH reference at ./FHEM/96_Snapcast.pm line 247.
when an API response with multiple clients is received
Reproduce
snapdroid lets you set the volume of groups with >1 clients with a single slider. It concats the client update requests into one string. The API call looks like [{"id":8,"jsonrpc":"2.0","method":"Client.SetVolume","params":{"id":"b8:27:eb:ab:24:32","volume":{"muted":false,"percent":50}}},{"id":8,"jsonrpc":"2.0","method":"Client.SetVolume","params":{"id":"08:60:6e:80:80:4c","volume":{"muted":false,"percent":50}}}]
The response from the server looks like this [{"jsonrpc":"2.0","method":"Client.OnVolumeChanged","params":{"id":"08:60:6e:80:80:4c","volume":{"muted":false,"percent":88}}},{"jsonrpc":"2.0","method":"Client.OnVolumeChanged","params":{"id":"b8:27:eb:ab:24:32","volume":{"muted":false,"percent":81}}}]
This is where i get the error above.
The text was updated successfully, but these errors were encountered:
Ok, I see what you mean now.
To be honest I am rarely using the android app so I have never tested this. I guess for this the json parsing part in the module would have do be adjusted.
I currently don't have the time to dive into that.
Error
FHEM hangs after
Not a HASH reference at ./FHEM/96_Snapcast.pm line 247.
when an API response with multiple clients is received
Reproduce
snapdroid lets you set the volume of groups with >1 clients with a single slider. It concats the client update requests into one string. The API call looks like
[{"id":8,"jsonrpc":"2.0","method":"Client.SetVolume","params":{"id":"b8:27:eb:ab:24:32","volume":{"muted":false,"percent":50}}},{"id":8,"jsonrpc":"2.0","method":"Client.SetVolume","params":{"id":"08:60:6e:80:80:4c","volume":{"muted":false,"percent":50}}}]
The response from the server looks like this
[{"jsonrpc":"2.0","method":"Client.OnVolumeChanged","params":{"id":"08:60:6e:80:80:4c","volume":{"muted":false,"percent":88}}},{"jsonrpc":"2.0","method":"Client.OnVolumeChanged","params":{"id":"b8:27:eb:ab:24:32","volume":{"muted":false,"percent":81}}}]
This is where i get the error above.
The text was updated successfully, but these errors were encountered: