PSeitz / Yamaha Nodejs
Licence: mit
A node module to control your yamaha receiver
Stars: ✭ 103
Programming Languages
javascript
184084 projects - #8 most used programming language
Labels
Projects that are alternatives of or similar to Yamaha Nodejs
Mtproto Core
Telegram API JS (MTProto) client library for browser and nodejs
Stars: ✭ 242 (+134.95%)
Mutual labels: lib, client
Frigate
NVR with realtime local object detection for IP cameras
Stars: ✭ 1,329 (+1190.29%)
Mutual labels: home-automation
Nats.ex
Elixir client for NATS, the cloud native messaging system. https://nats.io
Stars: ✭ 97 (-5.83%)
Mutual labels: client
Swiftagram
A modern Swift wrapper for Instagram Private API.
Stars: ✭ 100 (-2.91%)
Mutual labels: client
Appmetrics.js
A small (< 1kb) library for measuring things in your web app and reporting the results to Google Analytics.
Stars: ✭ 1,383 (+1242.72%)
Mutual labels: lib
Python Binance Chain
Binance Chain Exchange API python implementation for automated trading
Stars: ✭ 96 (-6.8%)
Mutual labels: client
Google Api Nodejs Client
Google's officially supported Node.js client library for accessing Google APIs. Support for authorization and authentication with OAuth 2.0, API Keys and JWT (Service Tokens) is included.
Stars: ✭ 9,722 (+9338.83%)
Mutual labels: client
Homebridge Netatmo
This is a homebridge plugin for several netatmo devices
Stars: ✭ 99 (-3.88%)
Mutual labels: home-automation
Gowebdav
A golang WebDAV client library and command line tool.
Stars: ✭ 97 (-5.83%)
Mutual labels: client
Simpletcp
Simple wrapper for TCP client and server in C# with SSL support
Stars: ✭ 99 (-3.88%)
Mutual labels: client
Cloudflare Warp Wireguard Client
Generate WireGuard profile from Cloudflare Warp account
Stars: ✭ 102 (-0.97%)
Mutual labels: client
Kubernetes Pfsense Controller
Integrate Kubernetes and pfSense
Stars: ✭ 100 (-2.91%)
Mutual labels: client
Stompclientlib
Simple STOMP Client library, Swift 3 and 4, 4.2, 5 compatible
Stars: ✭ 99 (-3.88%)
Mutual labels: client
Tuyaha
Implements the special Tuya Home Assistant API.
Stars: ✭ 99 (-3.88%)
Mutual labels: home-automation
Home Assistant Config
My Home Assistant configuration & documentation.
Stars: ✭ 99 (-3.88%)
Mutual labels: home-automation
Yamaha-nodejs
A node module to control your yamaha receiver. Tested with RX-V775, should work with all yamaha receivers with a network interface.
Install
npm install yamaha-nodejs
Example
var YamahaAPI = require("yamaha-nodejs");
var yamaha = new YamahaAPI("192.168.0.100");
yamaha.powerOn().then(function(){
console.log("powerOn");
yamaha.setMainInputTo("NET RADIO").then( function(){
console.log("Switched to Net Radio");
yamaha.selectWebRadioListItem(1).then(function(){
console.log("Selected Favorites");
yamaha.selectWebRadioListItem(1).then(function(){});
});
});
});
Prerequisites
- To power on the yamaha, network standby has to be enabled
- The Yamaha reveiver is stateful. Some commands only work work if the receiver is in the right state. E.g. to get web radio channels, the "NET RADIO" input has to be selected.
Methods
var yamaha = new Yamaha("192.168.0.100")
var yamaha = new Yamaha() // Auto-Discovery
yamaha.powerOff(zone) // or "System" for sytem power
yamaha.powerOn(zone) // or "System" for sytem power
yamaha.isOn(zone)
yamaha.isOff(zone)
//Volume
yamaha.setVolumeTo(-500, zone) // Value must be divisble by 5 or value will be rejected
yamaha.volumeUp(50, zone)
yamaha.volumeDown(50, zone)
yamaha.muteOn(zone)
yamaha.muteOff(zone)
//Extended Volume Settings
yamaha.setBassTo(60) //-60 to 60 (may depend on model)
yamaha.setTrebleTo(60) //-60 to 60 (may depend on model)
yamaha.setSubwooferTrimTo(60) //-60 to 60 (may depend on model)
yamaha.setDialogLiftTo(5) //0 to 5 (may depend on model)
yamaha.setDialogLevelTo(3) //0 to 3 (may depend on model)
yamaha.YPAOVolumeOn()
yamaha.YPAOVolumeOff()
yamaha.extraBassOn()
yamaha.extraBassOff()
yamaha.adaptiveDRCOn()
yamaha.adaptiveDRCOff()
//Playback
yamaha.stop(zone)
yamaha.pause(zone)
yamaha.play(zone)
yamaha.skip(zone)
yamaha.rewind(zone)
//Remote (Case Sensitive Values)
yamaha.remoteCursor(command) // 'Up', 'Down', 'Left', 'Right', 'Return', 'Sel'
yamaha.remoteMenu(command) // 'Option', 'Display'
//Switch Input
yamaha.setInputTo("USB", 2)
yamaha.setMainInputTo("NET RADIO")
//Party Mode
yamaha.partyModeOn()
yamaha.partyModeOff()
yamaha.partyModeUp()
yamaha.partyModeDown()
//Basic
yamaha.SendXMLToReceiver()
//Get Info
yamaha.getBasicInfo(zone).done(function(basicInfo){
basicInfo.getVolume();
basicInfo.isMuted();
basicInfo.isOn();
basicInfo.isOff();
basicInfo.getCurrentInput();
basicInfo.isPartyModeEnabled();
basicInfo.isPureDirectEnabled();
basicInfo.getBass();
basicInfo.getTreble();
basicInfo.getSubwooferTrim();
basicInfo.getDialogueLift();
basicInfo.getDialogueLevel();
basicInfo.getZone();
basicInfo.isYPAOVolumeEnabled();
basicInfo.isExtraBassEnabled();
basicInfo.isAdaptiveDRCEnabled();
})
yamaha.isHeadphoneConnected()
yamaha.getSystemConfig()
yamaha.getAvailableInputs()
yamaha.isMenuReady("NET_RADIO")
// FM Tuner
yamaha.getTunerInfo()
yamaha.getTunerPresetList()
yamaha.selectTunerPreset(1)
yamaha.selectTunerFrequency(band, frequency)
//Select Menu Items
yamaha.selectUSBListItem(1)
yamaha.selectWebRadioListItem(1)
// Single Commands, receiver has to be in the right state
yamaha.getWebRadioList()
yamaha.selectWebRadioListItem(1)
// Chained Commands, they ensure the receiver is in the right state
yamaha.switchToFavoriteNumber()
yamaha.gotoFolder('/NET_RADIO/Radio/Favorites', 'NET_RADIO')
// Find the index of a list item to select using the name of the item,
// returns -1 if not found. Will move the list page down so index will always
// between 1 and 8.
yamaha.getIndexOfMenuItem(
await yamaha.getWebRadioList(),
'BBC Radio 1',
'NET_RADIO'
)
// Zone Commands
yamaha.getAvailableZones()
yamaha.getZoneConfig(zone)
Zones
The zone parameter is optional, you can pass a number or a string
Promises
All these methods return a promise:
yamaha.isOn().then(function(result){
console.log("Receiver is:"+result);
})
Execute Tests
mocha mochatest.js --ip 192.168.0.25
or with autodiscovery
mocha mochatest.js
Discovery
If the IP is omitted in the constructor, the module will try to discover the yamaha ip via a SSDP call. Thanks @soef @mwittig
Changelog
0.8:
- FIX Remove get request delays
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].