UNPKG

yamaha-yxc-nodejs

Version:

NodeJS API to control your YAMAHA Musiccast devices

457 lines (456 loc) 14.9 kB
{ "WX-10": { "system": { "getDeviceInfo": { "response_code": 0, "model_name": "WX-010", "destination": "BG", "device_id": "00A0DEF66273", "system_id": "037C5323", "system_version": 2.16, "api_version": 2.08, "netmodule_generation": 1, "netmodule_version": "1925 ", "netmodule_checksum": "F73506B6", "operation_mode": "normal", "update_error_code": "00000000" }, "getNetworkStatus": { "response_code": 0, "network_name": "Fitnessraum", "connection": "wireless_lan", "dhcp": false, "ip_address": "192.168.243.206", "subnet_mask": "255.255.255.0", "default_gateway": "192.168.243.1", "dns_server_1": "192.168.243.1", "dns_server_2": "0.0.0.0", "wireless_lan": { "ssid": "Mueller", "type": "wpa2-psk(aes)", "key": "", "ch": 1, "strength": 80 }, "wireless_direct": { "ssid": "WX-010 F66273", "type": "none", "key": "" }, "musiccast_network": { "ready": true, "device_type": "standard", "child_num": 0, "ch": 0, "initial_join_running": false }, "mac_address": { "wired_lan": "00A0DEF66273", "wireless_lan": "884AEA454776", "wireless_direct": "884AEA454777" }, "airplay_pin": "" }, "getFuncStatus": { "response_code": 0, "auto_power_standby": true }, "getLocationInfo": { "response_code": 0, "id": "d109f76962134c09bd7957dc8f07e1ea", "name": "MusicCast", "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": "qobuz", "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", "qobuz", "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 } } }, "dist": { "getFeatures": { "response_code": 0, "group_id": "00000000000000000000000000000000", "group_name": "(Linked) Fitnessraum", "role": "none", "server_zone": "main", "client_list": [] } }, "netusb": { "getPlayInfo": { "response_code": 0, "input": "net_radio", "play_queue_type": "system", "playback": "stop", "repeat": "off", "shuffle": "off", "play_time": 0, "total_time": 0, "artist": "100% Helene von Schlagerplanet Radio (Berlin/German)", "album": "", "track": "Helene Fischer - Luftballon", "albumart_url": "", "albumart_id": 4773, "usb_devicetype": "unknown", "auto_stopped": false, "attribute": 16785411, "repeat_available": [], "shuffle_available": [] }, "getPresetInfo": { "response_code": 0, "preset_info": [ { "input": "net_radio", "text": "007 - laut.fm (Germany/German)", "attribute": 0 }, { "input": "net_radio", "text": "100% Helene - von SchlagerPlanet (Munich/German)", "attribute": 0 }, { "input": "net_radio", "text": "100% Schlager - von SchlagerPlanet (Munich/German)", "attribute": 0 }, { "input": "net_radio", "text": "1A 80er Hits (Magdeburg/German)", "attribute": 0 }, { "input": "net_radio", "text": "- 1 A - NDW (Neue Deutsche Welle) von 1A Radio (Hof/German)", "attribute": 0 }, { "input": "net_radio", "text": "ANTENNE BAYERN Chillout (Ismaning/German)", "attribute": 0 }, { "input": "net_radio", "text": "ANTENNE BAYERN Oldies but Goldies (Ismaning/German)", "attribute": 0 }, { "input": "net_radio", "text": "ANTENNE THÜRINGEN (Weimar/German)", "attribute": 0 }, { "input": "net_radio", "text": "Bayern 1 - Mainfranken (Würzburg/German)", "attribute": 0 }, { "input": "net_radio", "text": "BAYERN 3 (Munich/German)", "attribute": 0 }, { "input": "net_radio", "text": "BR-KLASSIK (Munich/German)", "attribute": 0 }, { "input": "net_radio", "text": "HIT RADIO FFH (Bad Vilbel/German)", "attribute": 0 }, { "input": "net_radio", "text": "hr-iNFO (Frankfurt am Main/German)", "attribute": 0 }, { "input": "net_radio", "text": "hr1 (Frankfurt am Main/German)", "attribute": 0 }, { "input": "net_radio", "text": "hr3 (Frankfurt am Main/German)", "attribute": 0 }, { "input": "net_radio", "text": "hr4 (Kassel/German)", "attribute": 0 }, { "input": "net_radio", "text": "radio B2 Helene Fischer (Berlin/German)", "attribute": 0 }, { "input": "net_radio", "text": "RADIO PSR 80er (Leipzig/German)", "attribute": 0 }, { "input": "net_radio", "text": "ROCK ANTENNE (Ismaning/German)", "attribute": 0 }, { "input": "net_radio", "text": "RPR1. Neue Deutsche Welle (Ludwigshafen am Rhein/German)", "attribute": 0 }, { "input": "net_radio", "text": "SWR1 Baden-Württemberg (Stuttgart/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": "" } ], "func_list": [ "clear", "move" ] }, "getSettings": { "response_code": 0, "qobuz": { "quality": { "value": "hr_192_24", "value_list": [ { "value": "mp3_320", "attribute": 1 }, { "value": "cd_44_16", "attribute": 1 }, { "value": "hr_96_24", "attribute": 0 }, { "value": "hr_192_24", "attribute": 0 } ] } } }, "getRecentInfo": { "response_code": 0, "recent_info": [ { "input": "net_radio", "text": "100% Helene von Schlagerplanet Radio (Munich/German)", "albumart_url": "http://static.airable.io:80/84/15/267092.png", "play_count": 3, "attribute": 0 }, { "input": "net_radio", "text": "1A 80er Hits (Magdeburg/German)", "albumart_url": "http://static.airable.io:80/63/43/221760.png", "play_count": 1, "attribute": 0 }, { "input": "net_radio", "text": "007 - laut.fm (Germany/German)", "albumart_url": "http://static.airable.io:80/72/64/108511.png", "play_count": 1, "attribute": 0 }, { "input": "net_radio", "text": "- 1 A - NDW (Neue Deutsche Welle) von 1A Radio (Hof/German)", "albumart_url": "http://static.airable.io:80/57/48/784218.png", "play_count": 2, "attribute": 0 }, { "input": "net_radio", "text": "RPR1. Neue Deutsche Welle (Ludwigshafen am Rhein/German)", "albumart_url": "http://static.airable.io:80/57/01/898267.png", "play_count": 1, "attribute": 0 }, { "input": "server", "text": "Unbekannter Titel", "albumart_url": "", "play_count": 1, "attribute": 30 }, { "input": "server", "text": "Unbekannter Titel", "albumart_url": "", "play_count": 1, "attribute": 30 }, { "input": "server", "text": "Unbekannter Titel", "albumart_url": "", "play_count": 1, "attribute": 30 }, { "input": "server", "text": "Unbekannter Titel", "albumart_url": "", "play_count": 1, "attribute": 30 }, { "input": "server", "text": "Unbekannter Titel", "albumart_url": "", "play_count": 1, "attribute": 30 }, { "input": "server", "text": "Unbekannter Titel", "albumart_url": "", "play_count": 1, "attribute": 30 }, { "input": "server", "text": "Unbekannter Titel", "albumart_url": "", "play_count": 1, "attribute": 30 }, { "input": "net_radio", "text": "100% Schlager - von SchlagerPlanet (Munich/German)", "albumart_url": "http://static.airable.io:80/41/09/937983.png", "play_count": 1, "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 }, { "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 }, { "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": "standby", "sleep": 0, "volume": 27, "mute": false, "max_volume": 60, "input": "net_radio", "distribution_enable": true, "equalizer": { "mode": "manual", "low": 0, "mid": 0, "high": 0 }, "link_control": "standard", "link_audio_quality": "compressed", "disable_flags": 0 }, "getSoundProgramList": { "response_code": 0, "sound_program_list": [] }, "getSignalInfo": { "response_code": 0, "audio": { "error": 0, "format": "", "fs": "" } } } } }