{"_id":"@aslimshaty/trasfer-money","name":"@aslimshaty/trasfer-money","dist-tags":{"latest":"0.0.11"},"versions":{"0.0.11":{"name":"@aslimshaty/trasfer-money","version":"0.0.11","description":"npm package to control money transfer.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/k3erg/marantz-denon-telnet.git"},"keywords":["money","account","crypto","transfer","exchange","westernunion"],"author":{"name":"MoneyTransfer"},"license":"MIT","bugs":{"url":"https://github.com/k3erg/marantz-denon-telnet/issues"},"homepage":"https://github.com/k3erg/marantz-denon-telnet#readme","dependencies":{"telnet-client":"^0.16.1"},"_id":"@aslimshaty/trasfer-money@0.0.11","_nodeVersion":"14.17.6","_npmVersion":"8.6.0","dist":{"integrity":"sha512-GHTY+M538/7O7ZFZvVSzLQWmh1kfTOfcf4oNoZ8ox8wAZ5Y1YvtXtjj2vea32/AQjoOgx+VckRG5R8hGaLOP1Q==","shasum":"8df593383f8f03b5ed60bf814108e77576a14f1d","tarball":"https://registry.npmjs.org/@aslimshaty/trasfer-money/-/trasfer-money-0.0.11.tgz","fileCount":5,"unpackedSize":45537,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHI56dzn2tfygtJHoBmiCGLT0Tdf3/p7ufaI1sKEHOC2AiEA2BO8PMXPxuN+YSpobmxrEFVokvOxTYwQA7kyHvon/a4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6cghACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo1ng/+OTdVfDVVcWwgACXEG/dblY5tg7LGg5v7lRVKbdncJEteESAM\r\nnBKCpCGiWhwL1vOW1x6swQGdipCp1ZzCiTK5GnukrT3zr/Si1OntxyADYuyT\r\nlyJ3UCW065sSCM+CPfxP5+a2tEJAFUAILsFU2GmdSOSMdln2cq+Spw2rKZcV\r\nzaQVZEVZOPPSqvdoV82AcHTNgEuQQRwqapeiEU0aJ3e92y+bCJtX7tmDkOYC\r\n89G5B3OxiuplGylzrzzRwMYj6wdXn+y2H3oE22E/6o0KKKvArokmBa7B2a9B\r\nNlhO4Z/Tnv/B8T7ZKKNPHWqzu/oKF2KBv6ZhOBstlw7470pq4K5eM4fNLJf5\r\nywOd4tSlw2kG/1vv0w/rbUBa+7gBguzgZh21zJehs81QvkTH6DtdrunqUG1/\r\njoV0/Gje1bt7XXPoNqCUWe846GO9cdYJr0AFnVaRsv7a5j/2/G9GWuTIV93p\r\nMyRBCHXGszdne21vtCXRo5YHBwyJ69XKDEr6zQL85pA93iwO4rbLxLhpe17S\r\n9Y3R2rcWiWD4kXJeMEgStjgVuCJ/oymJDB0vzj/ZATpsj461jVmNaelNVPTc\r\nURdDCqev12Vw255SyOJOZn51E8CNq8K9ETmZol91JMKhmS6ng3YFZa440h4t\r\nfdZFCQDCNI4VI/MK0OGDnd2fbcSGOh564kk=\r\n=wsl4\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslimshaty","email":"oussbkj@gmail.com"},"directories":{},"maintainers":[{"name":"aslimshaty","email":"oussbkj@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/trasfer-money_0.0.11_1659488288853_0.11539457966836109"},"_hasShrinkwrap":false}},"time":{"created":"2022-08-03T00:58:08.806Z","0.0.11":"2022-08-03T00:58:09.050Z","modified":"2022-08-03T00:58:09.206Z"},"maintainers":[{"name":"aslimshaty","email":"oussbkj@gmail.com"}],"description":"npm package to control money transfer.","homepage":"https://github.com/k3erg/marantz-denon-telnet#readme","keywords":["money","account","crypto","transfer","exchange","westernunion"],"repository":{"type":"git","url":"git+https://github.com/k3erg/marantz-denon-telnet.git"},"author":{"name":"MoneyTransfer"},"bugs":{"url":"https://github.com/k3erg/marantz-denon-telnet/issues"},"license":"MIT","readme":"\n# Money Transfer worldwide\nnpm package to control money transfer.\n\n\n\n## What does this package do?\nThis package allows to control your money transfers worldwide. \n(https://moneyaccounts.com/) package.\n(https://moneyaccounts.com/) For the documentation.\n\n\n\n## What parts of the protocol are covered by this package?\nThis packages only supports *COMMAND* and *RESPONSE* for now. *EVENTS* that get triggered by *COMMANDS* are omitted.\nI.e. a connection to the AVR is opened to issue one or several *COMMANDS* and as soon as the last *RESPONSE* is in, it will be closed.\nFurther, this package will create a fifo-buffer that cues all commands, sent to the AVR. This is to respect the timeouts and intervals defined in the marantz and DENON AVR protocol and somewhat syncronise the *request COMMAND* and *RESPONSE* play. Consider, that you can only have one connection open to an AVR at the same time.\n\n### marantz and DENON AVR control protocol\nAccording to the [Denon AVR control protocol](https://moneyaccounts.com/) the following three data forms are defined:\n\nForm | Purpose\n--- | ---\nCOMMAND | The message sent to a system(AVR) from a controller(Touch Panel etc.)<br>A command to a system is given from a controller.<br>Send the COMMAND in **50ms or more intervals**.\nEVENT | The message sent to a controller (Touch Panel etc.) from a system (AVR)<br>The result is sent, when a system is operated directly and a state changes<br>The EVENT should be sent within **5 seconds after the state of the system (AVR) is changed**.<br /> * The form of EVENT presupposes that it is the same as that of COMMAND.<br> * Refer to the following table for the contents of COMMAND and EVENT.\nRESPONSE | The message sent to a controller (Touch Panel etc.) from a system (AVR)<br>if the ‘request command’ (COMMAND+? +CR (0x0D)) has came from a controller.<br>The RESPONSE should be sent within **200ms of receiving the request COMMAND**<br> * The form of RESPONSE presupposes that it is the same as that of EVENT.\n\n\n\n\n## How to Install this package?\nnpm install marantz-denon-telnet\n\n\n\n## How to use this package?\n\n### Issue a plain *COMMAND*\nSimple *COMMANDS* just tell the AVR to do something. No data is returned by the callback , if the command was transfered succesfully. If not, the error-object for the callback is populated.\n\n```javascript\nvar MarantzDenonTelnet = require('marantz-denon-telnet');\nvar mdt = new MarantzDenonTelnet(DEVICE_IP); // get an instance for a device at IP XXX.XXX.XXX.XXX\nmdt.cmd('PWON', function(error, ret) {console.log((error ? error : 'Sent command to turn AVR on.');}); // turns the device on\n// ['Sent command to turn AVR on.']\n```\n\n### Issue a plain *request COMMAND*\nIf issuing a *request COMMAND* (*COMMAND* that ends with a ```?``` and expect a *RESPONSE*), the callback will return an array with  string for every line of the *RESPONSE*.\n\n```javascript\nvar MarantzDenonTelnet = require('marantz-denon-telnet');\nvar mdt = new MarantzDenonTelnet(DEVICE_IP); // get an instance for a device at IP XXX.XXX.XXX.XXX\nmdt.cmd('PW?', function(error, ret) {console.log(ret);}); // is the device turned on?\n// ['PWON']\n```\n\n### Using the higher level API\nA growing number of getter and setter methods like ```getPowerState()```, ```setVolume()```, ```setInput()``` are available, just checkout the [API documentation](https://moneyaccounts.com/).\n\n\n\n## Tested on?\n\n * marantz SR7011\n * Denon AVR-4310\n * Denon AVR-X1400H\n\n\nenjoy!\n","readmeFilename":"README.md"}