Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support info (device name and other meta-information) in the status. #202

Merged
merged 7 commits into from
Dec 1, 2024

Conversation

ptabor
Copy link
Contributor

@ptabor ptabor commented Dec 1, 2024

Examplar result:

% curl "http://0.0.0.0:8011/status?uuid=edfaf976-0411-41c4-9e5a-724c8781f0bc" | jq
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   610  100   610    0     0    288      0  0:00:02  0:00:02 --:--:--   288
{
  "info": {
    "name": "Sisters Room speaker",
    "ip_address": "192.168.0.161",
    "locale": "pl",
    "mac_address": "54:60:09:D0:10:A4",
    "ssid": "Szum",
    "timezone": "Europe/Warsaw",
    "uptime": 45394.987882
  },
  "app_id": "",
  "display_name": "",
  "is_idle_screen": false,
  "status_text": "",
  "player_state": "",
  "current_time": 0,
  "idle_reason": "",
  "current_item_id": 0,
  "loading_item_id": 0,
  "content_id": "",
  "content_type": "",
  "stream_type": "",
  "duration": 0,
  "artist": "",
  "title": "",
  "subtitle": "",
  "volume_level": 0.89,
  "volume_muted": false,
  "media_volume_level": 0,
  "media_volume_muted": false,
  "session_id": "",
  "transport_id": "",
  "media_session_id": 0,
  "player_state_id": 0
}

Examplar result:
```
% curl "http://0.0.0.0:8011/status?uuid=edfaf976-0411-41c4-9e5a-724c8781f0bc" | jq
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   610  100   610    0     0    288      0  0:00:02  0:00:02 --:--:--   288
{
  "info": {
    "name": "Sisters Room speaker",
    "ip_address": "192.168.0.161",
    "locale": "pl",
    "mac_address": "54:60:09:D0:10:A4",
    "ssid": "Szum",
    "timezone": "Europe/Warsaw",
    "uptime": 45394.987882
  },
  "app_id": "",
  "display_name": "",
  "is_idle_screen": false,
  "status_text": "",
  "player_state": "",
  "current_time": 0,
  "idle_reason": "",
  "current_item_id": 0,
  "loading_item_id": 0,
  "content_id": "",
  "content_type": "",
  "stream_type": "",
  "duration": 0,
  "artist": "",
  "title": "",
  "subtitle": "",
  "volume_level": 0.89,
  "volume_muted": false,
  "media_volume_level": 0,
  "media_volume_muted": false,
  "session_id": "",
  "transport_id": "",
  "media_session_id": 0,
  "player_state_id": 0
}
```
Copy link
Owner

@vishen vishen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing, thanks!

@vishen vishen merged commit 2ac6d1b into vishen:master Dec 1, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants