UNPKG

yamaha-yxc-nodejs

Version:

NodeJS API to control your YAMAHA Musiccast devices

805 lines (804 loc) 14.8 kB
[ { "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" ], "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 } ] } }, "ymap_list": [ "vtuner" ] }, "zone": [ { "id": "main", "func_list": [ "power", "volume", "mute", "sound_program", "clear_voice", "subwoofer_volume", "signal_info", "prepare_input_change", "link_control", "link_audio_delay" ], "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" ], "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" ], "preset": { "num": 40 }, "recent_info": { "num": 40 }, "play_queue": { "size": 200 }, "mc_playlist": { "size": 200, "num": 5 }, "net_radio_type": "vtuner", "vtuner_fver": "A", "pandora": { "sort_option_list": [ "date", "alphabet" ] } }, "distribution": { "server_zone_list": [ "main" ] } } }, { "request": "/system/getDeviceInfo", "responses": { "response_code": 0, "model_name": "YSP-1600", "destination": "BG", "device_id": "00A0DED15025", "system_id": "0B587073", "system_version": 2.52, "api_version": 1.18, "netmodule_version": "1428 ", "netmodule_checksum": "A693CC12", "operation_mode": "normal", "update_error_code": "00000000" } }, { "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": 9777, "usb_devicetype": "unknown", "auto_stopped": false, "attribute": 83902583 } }, { "request": "/netusb/getRecentInfo", "responses": { "response_code": 0, "recent_info": [ { "input": "net_radio", "text": "rbb radioeins", "albumart_url": "http://item.radio456.com:80/007452/logo/logo-4716.jpg", "play_count": 19, "attribute": 0 }, { "input": "net_radio", "text": "1LIVE", "albumart_url": "http://item.radio456.com:80/007452/logo/logo-531.jpg", "play_count": 15, "attribute": 0 }, { "input": "net_radio", "text": "BBC Radio 2", "albumart_url": "http://item.radio456.com:80/007452/logo/logo-3159.jpg", "play_count": 3, "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": 10, "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 }, { "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 } ] } }, { "request": "/netusb/getPresetInfo", "responses": { "response_code": 0, "preset_info": [ { "input": "net_radio", "text": "Antenne Thüringen 97.9 FM", "attribute": 0 }, { "input": "net_radio", "text": "rbb radioeins", "attribute": 0 }, { "input": "net_radio", "text": "1LIVE", "attribute": 0 }, { "input": "unknown", "text": "" }, { "input": "net_radio", "text": "Deutschlandfunk", "attribute": 0 }, { "input": "net_radio", "text": "BBC Radio 2", "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" ] } }, { "request": "/main/getStatus", "responses": { "response_code": 0, "power": "on", "volume": 67, "mute": false, "max_volume": 100, "input": "hdmi", "distribution_enable": true, "sound_program": "movie", "clear_voice": true, "subwoofer_volume": -10, "link_control": "standard", "link_audio_delay": "audio_sync", "disable_flags": 0 } } ]