UNPKG

yamaha-yxc-nodejs

Version:

NodeJS API to control your YAMAHA Musiccast devices

451 lines (450 loc) 13.9 kB
[ { "device": "YSP-1600_0B587073", "request": "/system/getFeatures", "responses": { "response_code": 0, "system": { "func_list": [ "wired_lan", "wireless_lan", "wireless_direct", "network_standby", "auto_power_standby", "bluetooth_tx_setting", "airplay", "speaker_settings", "disklavier_settings", "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" }, { "id": "hdmi", "distribution_enable": true, "rename_enable": true, "account_enable": false, "play_info_type": "none" }, { "id": "tv", "distribution_enable": true, "rename_enable": true, "account_enable": false, "play_info_type": "none" }, { "id": "analog", "distribution_enable": true, "rename_enable": true, "account_enable": false, "play_info_type": "none" } ], "speaker_settings": { "type": "beam", "common": { "attribute": 2, "range_step": [ { "id": "ysp_pos_width", "min": 300, "max": 900, "step": 1 }, { "id": "ysp_pos_length", "min": 300, "max": 900, "step": 1 }, { "id": "ysp_pos_position", "min": 100, "max": 800, "step": 1 }, { "id": "ysp_pos_distance", "min": 250, "max": 850, "step": 1 } ] }, "front_l": { "attribute": 3, "range_step": [ { "id": "level", "min": -10, "max": 10, "step": 1 } ] }, "front_r": { "attribute": 3, "range_step": [ { "id": "level", "min": -10, "max": 10, "step": 1 } ] }, "center": { "attribute": 3, "range_step": [ { "id": "level", "min": -10, "max": 10, "step": 1 } ] }, "surr_l": { "attribute": 3, "range_step": [ { "id": "level", "min": -10, "max": 10, "step": 1 } ] }, "surr_r": { "attribute": 3, "range_step": [ { "id": "level", "min": -10, "max": 10, "step": 1 } ] }, "swfr": { "attribute": 3, "range_step": [ { "id": "level", "min": -10, "max": 10, "step": 1 } ] } } }, "zone": [ { "id": "main", "func_list": [ "power", "volume", "mute", "sound_program", "clear_voice", "subwoofer_volume", "signal_info", "prepare_input_change", "link_control", "link_audio_delay", "link_audio_quality" ], "input_list": [ "napster", "spotify", "juke", "tidal", "deezer", "airplay", "mc_link", "server", "net_radio", "bluetooth", "hdmi", "tv", "analog" ], "sound_program_list": [ "sports", "game", "music", "tv_program", "movie", "stereo" ], "link_control_list": [ "speed", "standard", "stability" ], "link_audio_delay_list": [ "audio_sync", "lip_sync" ], "link_audio_quality_list": [ "compressed", "uncompressed" ], "range_step": [ { "id": "volume", "min": 0, "max": 100, "step": 1 }, { "id": "subwoofer_volume", "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" ] } }, "distribution": { "version": 2, "compatible_client": [ 2 ], "client_max": 9, "server_zone_list": [ "main" ] }, "ccs": { "supported": true }, "privacy": { "gdpr_supported": true } } }, { "device": "YSP-1600_0B587073", "request": "/system/getDeviceInfo", "responses": { "response_code": 0, "model_name": "YSP-1600", "destination": "BG", "device_id": "00A0DED15025", "system_id": "0B587073", "system_version": 3.1, "api_version": 2.04, "netmodule_generation": 1, "netmodule_version": "1812 ", "netmodule_checksum": "B121D019", "operation_mode": "normal", "update_error_code": "00000000" } }, { "device": "YSP-1600_0B587073", "request": "/netusb/getPlayInfo", "responses": { "response_code": 0, "input": "server", "play_queue_type": "system", "playback": "stop", "repeat": "off", "shuffle": "off", "play_time": 0, "total_time": 0, "artist": "", "album": "", "track": "", "albumart_url": "", "albumart_id": 3691, "usb_devicetype": "unknown", "auto_stopped": false, "attribute": 83886591, "repeat_available": [ "off", "one", "all" ], "shuffle_available": [ "off", "on" ] } }, { "device": "YSP-1600_0B587073", "request": "/netusb/getRecentInfo", "responses": { "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": 4, "attribute": 0 }, { "input": "net_radio", "text": "BBC Radio 2 (London/English)", "albumart_url": "http://static.airable.io:80/73/40/375905.png", "play_count": 2, "attribute": 0 }, { "input": "net_radio", "text": "ANTENNE THÜRINGEN (Weimar/German)", "albumart_url": "http://static.airable.io:80/66/02/552033.png", "play_count": 2, "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": "server", "text": "All Star", "albumart_url": "", "play_count": 1, "attribute": 30 }, { "input": "net_radio", "text": "rbb radioeins", "albumart_url": "http://item.radio456.com:80/007452/logo/logo-4716.jpg", "play_count": 21, "attribute": 0 }, { "input": "net_radio", "text": "1LIVE", "albumart_url": "http://item.radio456.com:80/007452/logo/logo-531.jpg", "play_count": 16, "attribute": 0 }, { "input": "net_radio", "text": "BBC Radio 2", "albumart_url": "http://item.radio456.com:80/007452/logo/logo-3159.jpg", "play_count": 4, "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": "Antenne Thüringen 97.9 FM", "albumart_url": "http://item.radio456.com:80/007452/logo/logo-6813.jpg", "play_count": 11, "attribute": 0 }, { "input": "server", "text": " 5. you and me", "albumart_url": "", "play_count": 2, "attribute": 30 }, { "input": "server", "text": " 7. making a memory", "albumart_url": "", "play_count": 2, "attribute": 30 }, { "input": "server", "text": " 6. friends don't let friends dial drunk", "albumart_url": "", "play_count": 1, "attribute": 30 }, { "input": "server", "text": " 4. hate (i really don't like you)", "albumart_url": "", "play_count": 1, "attribute": 30 }, { "input": "server", "text": " 3. come back to me", "albumart_url": "", "play_count": 2, "attribute": 30 }, { "input": "server", "text": " 2. our time now", "albumart_url": "", "play_count": 2, "attribute": 30 }, { "input": "server", "text": " 1. hey there delilah", "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 }, { "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 } ] } }, { "device": "YSP-1600_0B587073", "request": "/netusb/getPresetInfo", "responses": { "response_code": 0, "preset_info": [ { "input": "net_radio", "text": "ANTENNE THÜRINGEN (Weimar/German)", "attribute": 0 }, { "input": "net_radio", "text": "radioeins (Potsdam/German)", "attribute": 0 }, { "input": "net_radio", "text": "1LIVE (Cologne/German)", "attribute": 0 }, { "input": "unknown", "text": "" }, { "input": "net_radio", "text": "Deutschlandfunk (Cologne/German)", "attribute": 0 }, { "input": "net_radio", "text": "BBC Radio 2 (London/English)", "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": "" }, { "input": "unknown", "text": "" }, { "input": "unknown", "text": "" }, { "input": "unknown", "text": "" }, { "input": "unknown", "text": "" } ], "func_list": [ "clear", "move" ] } }, { "device": "YSP-1600_0B587073", "request": "/main/getStatus", "responses": { "response_code": 0, "power": "standby", "volume": 60, "mute": false, "max_volume": 100, "input": "hdmi", "distribution_enable": true, "sound_program": "stereo", "clear_voice": false, "subwoofer_volume": -10, "link_control": "standard", "link_audio_delay": "audio_sync", "link_audio_quality": "compressed", "disable_flags": 3 } } ]