yamaha-yxc-nodejs
Version:
NodeJS API to control your YAMAHA Musiccast devices
531 lines (530 loc) • 15.9 kB
JSON
{
"WX-030": {
"system": {
"getDeviceInfo": {
"response_code": 0,
"model_name": "WX-030",
"destination": "BG",
"device_id": "00A0DED4F504",
"system_id": "0E897553",
"system_version": 3.17,
"api_version": 2.08,
"netmodule_generation": 1,
"netmodule_version": "1924 ",
"netmodule_checksum": "EAD51507",
"operation_mode": "normal",
"update_error_code": "00000000"
},
"getNetworkStatus": {
"response_code": 0,
"network_name": "Badezimmer",
"connection": "wireless_lan",
"dhcp": true,
"ip_address": "192.168.178.26",
"subnet_mask": "255.255.255.0",
"default_gateway": "192.168.178.1",
"dns_server_1": "192.168.178.2",
"dns_server_2": "0.0.0.0",
"wireless_lan": {
"ssid": "shootingrange 4",
"type": "wpa2-psk(aes)",
"key": "",
"ch": 6,
"strength": 56
},
"wireless_direct": { "ssid": "WX-030 D4F504", "type": "none", "key": "" },
"musiccast_network": {
"ready": true,
"device_type": "standard",
"child_num": 0,
"ch": 0,
"initial_join_running": false
},
"mac_address": {
"wired_lan": "00A0DED4F504",
"wireless_lan": "987BF3C4C670",
"wireless_direct": "987BF3C4C671"
},
"airplay_pin": ""
},
"getFuncStatus": { "response_code": 0, "auto_power_standby": true },
"getNameText": {
"response_code": 0,
"zone_list": [ { "id": "main", "text": "Badezimmer" } ],
"input_list": [
{ "id": "bluetooth", "text": "Bluetooth" },
{ "id": "server", "text": "Server" },
{ "id": "net_radio", "text": "Net Radio" },
{ "id": "napster", "text": "Napster" },
{ "id": "spotify", "text": "Spotify" },
{ "id": "juke", "text": "JUKE" },
{ "id": "airplay", "text": "AirPlay" },
{ "id": "mc_link", "text": "MC Link" },
{ "id": "tidal", "text": "TIDAL" },
{ "id": "deezer", "text": "Deezer" }
],
"sound_program_list": []
},
"getLocationInfo": {
"response_code": 0,
"id": "22ae17939af24b0b9fd95b14ea726ba5",
"name": "Home1",
"stereo_pair_status": "none",
"zone_list": { "main": true }
},
"getFeatures": {
"response_code": 0,
"system": {
"func_list": [
"wired_lan",
"wireless_lan",
"wireless_direct",
"network_standby",
"auto_power_standby",
"bluetooth_tx_setting",
"airplay",
"stereo_pair",
"network_reboot"
],
"zone_num": 1,
"input_list": [
{
"id": "napster",
"distribution_enable": true,
"rename_enable": false,
"account_enable": true,
"play_info_type": "netusb"
},
{
"id": "spotify",
"distribution_enable": true,
"rename_enable": false,
"account_enable": false,
"play_info_type": "netusb"
},
{
"id": "juke",
"distribution_enable": true,
"rename_enable": false,
"account_enable": true,
"play_info_type": "netusb"
},
{
"id": "tidal",
"distribution_enable": true,
"rename_enable": false,
"account_enable": true,
"play_info_type": "netusb"
},
{
"id": "deezer",
"distribution_enable": true,
"rename_enable": false,
"account_enable": true,
"play_info_type": "netusb"
},
{
"id": "airplay",
"distribution_enable": false,
"rename_enable": false,
"account_enable": false,
"play_info_type": "netusb"
},
{
"id": "mc_link",
"distribution_enable": false,
"rename_enable": true,
"account_enable": false,
"play_info_type": "netusb"
},
{
"id": "server",
"distribution_enable": true,
"rename_enable": true,
"account_enable": false,
"play_info_type": "netusb"
},
{
"id": "net_radio",
"distribution_enable": true,
"rename_enable": true,
"account_enable": false,
"play_info_type": "netusb"
},
{
"id": "bluetooth",
"distribution_enable": true,
"rename_enable": false,
"account_enable": false,
"play_info_type": "netusb"
}
]
},
"zone": [
{
"id": "main",
"func_list": [
"power",
"sleep",
"volume",
"mute",
"equalizer",
"signal_info",
"prepare_input_change",
"link_control",
"link_audio_quality"
],
"input_list": [
"napster",
"spotify",
"juke",
"tidal",
"deezer",
"airplay",
"mc_link",
"server",
"net_radio",
"bluetooth"
],
"equalizer_mode_list": [ "manual" ],
"link_control_list": [ "speed", "standard", "stability" ],
"link_audio_quality_list": [ "compressed", "uncompressed" ],
"range_step": [
{ "id": "volume", "min": 0, "max": 60, "step": 1 },
{ "id": "equalizer", "min": -10, "max": 10, "step": 1 }
]
}
],
"netusb": {
"func_list": [ "recent_info", "play_queue", "mc_playlist", "streaming_service_use" ],
"preset": { "num": 40 },
"recent_info": { "num": 40 },
"play_queue": { "size": 200 },
"mc_playlist": { "size": 200, "num": 5 },
"net_radio_type": "airable",
"pandora": { "sort_option_list": [ "date", "alphabet" ] },
"siriusxm": { "api_type": "everest" }
},
"distribution": {
"version": 2,
"compatible_client": [ 2 ],
"client_max": 9,
"server_zone_list": [ "main" ]
},
"ccs": { "supported": true }
}
},
"netusb": {
"getPlayInfo": {
"response_code": 0,
"input": "mc_link",
"play_queue_type": "system",
"playback": "stop",
"repeat": "off",
"shuffle": "off",
"play_time": 0,
"total_time": 0,
"artist": "",
"album": "",
"track": "",
"albumart_url": "",
"albumart_id": 8,
"usb_devicetype": "unknown",
"auto_stopped": false,
"attribute": 0,
"repeat_available": [],
"shuffle_available": []
},
"getPresetInfo": {
"response_code": 0,
"preset_info": [
{ "input": "unknown", "text": "" },
{ "input": "net_radio", "text": "radioeins (Potsdam/German)", "attribute": 0 },
{ "input": "net_radio", "text": "BBC Radio 2 (London/English)", "attribute": 0 },
{ "input": "net_radio", "text": "1LIVE (Cologne/German)", "attribute": 0 },
{ "input": "net_radio", "text": "104.6 RTL - Chill (Berlin/German)", "attribute": 0 },
{ "input": "net_radio", "text": "0-24 Oldies Pop Rock laut.fm (Germany/German)", "attribute": 0 },
{ "input": "net_radio", "text": "54 Funk Soul Dance laut.fm (Germany/English)", "attribute": 0 },
{ "input": "net_radio", "text": "Radio 10 (Hilversum/Dutch)", "attribute": 0 },
{ "input": "net_radio", "text": "Deutschlandfunk (Cologne/German)", "attribute": 0 },
{ "input": "net_radio", "text": "Deutschlandfunk Kultur (Berlin/German)", "attribute": 0 },
{ "input": "unknown", "text": "" },
{ "input": "unknown", "text": "" },
{ "input": "unknown", "text": "" },
{ "input": "unknown", "text": "" },
{ "input": "unknown", "text": "" },
{ "input": "unknown", "text": "" },
{ "input": "unknown", "text": "" },
{ "input": "unknown", "text": "" },
{ "input": "unknown", "text": "" },
{ "input": "unknown", "text": "" },
{ "input": "unknown", "text": "" },
{ "input": "unknown", "text": "" },
{ "input": "unknown", "text": "" },
{ "input": "unknown", "text": "" },
{ "input": "unknown", "text": "" },
{ "input": "unknown", "text": "" },
{ "input": "unknown", "text": "" },
{ "input": "unknown", "text": "" },
{ "input": "unknown", "text": "" },
{ "input": "unknown", "text": "" },
{ "input": "unknown", "text": "" },
{ "input": "unknown", "text": "" },
{ "input": "unknown", "text": "" },
{ "input": "unknown", "text": "" },
{ "input": "unknown", "text": "" },
{ "input": "unknown", "text": "" },
{ "input": "unknown", "text": "" },
{ "input": "unknown", "text": "" },
{ "input": "unknown", "text": "" },
{ "input": "unknown", "text": "" }
],
"func_list": [ "clear", "move" ]
},
"getSettings": { "response_code": 0 },
"getRecentInfo": {
"response_code": 0,
"recent_info": [
{
"input": "net_radio",
"text": "radioeins (Potsdam/German)",
"albumart_url": "http://static.airable.io:80/68/90/672135.png",
"play_count": 2,
"attribute": 0
},
{
"input": "net_radio",
"text": "BBC Radio 2 (London/English)",
"albumart_url": "http://static.airable.io:80/65/65/960794.png",
"play_count": 2,
"attribute": 0
},
{
"input": "net_radio",
"text": "Radio 10 - Top 4000 (Hilversum/Dutch)",
"albumart_url": "http://static.airable.io:80/32/56/469557.png",
"play_count": 1,
"attribute": 0
},
{
"input": "net_radio",
"text": "Radio 105 - Hip Hop & R&B (Milan/Italian)",
"albumart_url": "http://static.airable.io:80/63/75/663105.png",
"play_count": 1,
"attribute": 0
},
{
"input": "net_radio",
"text": "Radio 10 (Bern/French)",
"albumart_url": "http://static.airable.io:80/76/24/736425.png",
"play_count": 2,
"attribute": 0
},
{
"input": "net_radio",
"text": "Radio 10 (Hilversum/Dutch)",
"albumart_url": "http://static.airable.io:80/81/66/768923.png",
"play_count": 1,
"attribute": 0
},
{
"input": "net_radio",
"text": "104.6 RTL - Chill (Berlin/German)",
"albumart_url": "http://static.airable.io:80/00/86/531655.png",
"play_count": 1,
"attribute": 0
},
{
"input": "net_radio",
"text": "104.6 RTL - Elektro (Berlin/German)",
"albumart_url": "http://static.airable.io:80/53/28/796564.png",
"play_count": 1,
"attribute": 0
},
{
"input": "net_radio",
"text": "0-24 Oldies Pop Rock laut.fm (Germany/German)",
"albumart_url": "http://static.airable.io:80/71/89/397794.png",
"play_count": 1,
"attribute": 0
},
{
"input": "net_radio",
"text": "Synthpop laut.fm (Germany/German)",
"albumart_url": "http://static.airable.io:80/10/09/968230.png",
"play_count": 1,
"attribute": 0
},
{
"input": "net_radio",
"text": "Pulp-fm laut.fm (Los Angeles/German)",
"albumart_url": "http://static.airable.io:80/06/83/176466.png",
"play_count": 1,
"attribute": 0
},
{
"input": "net_radio",
"text": "Beatdownx laut.fm (Germany/German)",
"albumart_url": "http://static.airable.io:80/52/58/829299.png",
"play_count": 1,
"attribute": 0
},
{
"input": "net_radio",
"text": "Radio 1920 laut.fm (Germany/German)",
"albumart_url": "http://static.airable.io:80/43/21/272186.png",
"play_count": 1,
"attribute": 0
},
{
"input": "net_radio",
"text": "54 Funk Soul Dance laut.fm (Germany/English)",
"albumart_url": "http://static.airable.io:80/05/32/138633.png",
"play_count": 1,
"attribute": 0
},
{
"input": "net_radio",
"text": "RTL (Paris/French)",
"albumart_url": "http://static.airable.io:80/44/50/711574.png",
"play_count": 1,
"attribute": 0
},
{
"input": "net_radio",
"text": "Deutschlandfunk Kultur (Berlin/German)",
"albumart_url": "http://static.airable.io:80/34/85/214672.png",
"play_count": 1,
"attribute": 0
},
{
"input": "net_radio",
"text": "Deutschlandfunk (Cologne/German)",
"albumart_url": "http://static.airable.io:80/89/44/218771.png",
"play_count": 1,
"attribute": 0
},
{
"input": "net_radio",
"text": "1LIVE (Cologne/German)",
"albumart_url": "http://static.airable.io:80/94/58/127685.png",
"play_count": 1,
"attribute": 0
},
{
"input": "net_radio",
"text": "rbb radioeins",
"albumart_url": "http://item.radio456.com:80/007452/logo/logo-4716.jpg",
"play_count": 10,
"attribute": 0
},
{
"input": "net_radio",
"text": "Deutschlandfunk",
"albumart_url": "http://item.radio456.com:80/007452/logo/logo-987.jpg",
"play_count": 2,
"attribute": 0
},
{
"input": "net_radio",
"text": "BBC Radio 2",
"albumart_url": "http://item.radio456.com:80/007452/logo/logo-3159.jpg",
"play_count": 9,
"attribute": 0
},
{
"input": "net_radio",
"text": "0-24 Oldies Pop Rock laut.fm",
"albumart_url": "http://item.radio456.com:80/007452/logo/logo-81811.jpg",
"play_count": 2,
"attribute": 0
},
{
"input": "net_radio",
"text": "RTL 102.5 FM",
"albumart_url": "http://item.radio456.com:80/007452/logo/logo-1015.jpg",
"play_count": 2,
"attribute": 0
},
{
"input": "net_radio",
"text": "BBC Radio 5 Live",
"albumart_url": "http://item.radio456.com:80/007452/logo/logo-26244.jpg",
"play_count": 1,
"attribute": 0
},
{
"input": "net_radio",
"text": "Deutschlandfunk Kultur",
"albumart_url": "http://item.radio456.com:80/007452/logo/logo-4899.jpg",
"play_count": 1,
"attribute": 0
},
{
"input": "server",
"text": "Fly FRITZ! Fly",
"albumart_url": "",
"play_count": 2,
"attribute": 30
},
{
"input": "net_radio",
"text": "Radio 10",
"albumart_url": "http://item.radio456.com:80/007452/logo/logo-1334.jpg",
"play_count": 1,
"attribute": 0
},
{
"input": "net_radio",
"text": "Solarradio.fm",
"albumart_url": "http://item.radio456.com:80/007452/logo/logo-82139.jpg",
"play_count": 1,
"attribute": 0
},
{
"input": "server",
"text": "Fly FRITZ! Fly",
"albumart_url": "",
"play_count": 1,
"attribute": 30
},
{
"input": "server",
"text": "Fly FRITZ! Fly",
"albumart_url": "",
"play_count": 1,
"attribute": 30
},
{ "input": "unknown", "text": "", "albumart_url": "", "play_count": 0, "attribute": 0 },
{ "input": "unknown", "text": "", "albumart_url": "", "play_count": 0, "attribute": 0 },
{ "input": "unknown", "text": "", "albumart_url": "", "play_count": 0, "attribute": 0 },
{ "input": "unknown", "text": "", "albumart_url": "", "play_count": 0, "attribute": 0 },
{ "input": "unknown", "text": "", "albumart_url": "", "play_count": 0, "attribute": 0 },
{ "input": "unknown", "text": "", "albumart_url": "", "play_count": 0, "attribute": 0 },
{ "input": "unknown", "text": "", "albumart_url": "", "play_count": 0, "attribute": 0 },
{ "input": "unknown", "text": "", "albumart_url": "", "play_count": 0, "attribute": 0 },
{ "input": "unknown", "text": "", "albumart_url": "", "play_count": 0, "attribute": 0 },
{ "input": "unknown", "text": "", "albumart_url": "", "play_count": 0, "attribute": 0 }
]
}
},
"main": {
"getStatus": {
"response_code": 0,
"power": "on",
"sleep": 0,
"volume": 16,
"mute": false,
"max_volume": 60,
"input": "mc_link",
"distribution_enable": false,
"equalizer": { "mode": "manual", "low": 5, "mid": 6, "high": 5 },
"link_control": "standard",
"link_audio_quality": "compressed",
"disable_flags": 0
},
"getSoundProgramList": { "response_code": 0, "sound_program_list": [] },
"getSignalInfo": { "response_code": 0, "sound_program_list": [] }
}
}
}