npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@aslimshaty/trasfer-money

v0.0.11

Published

npm package to control money transfer.

Downloads

5

Readme

Money Transfer worldwide

npm package to control money transfer.

What does this package do?

This package allows to control your money transfers worldwide. (https://moneyaccounts.com/) package. (https://moneyaccounts.com/) For the documentation.

What parts of the protocol are covered by this package?

This packages only supports COMMAND and RESPONSE for now. EVENTS that get triggered by COMMANDS are omitted. I.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. Further, 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.

marantz and DENON AVR control protocol

According to the Denon AVR control protocol the following three data forms are defined:

Form | Purpose --- | --- COMMAND | The message sent to a system(AVR) from a controller(Touch Panel etc.)A command to a system is given from a controller.Send the COMMAND in 50ms or more intervals. EVENT | The message sent to a controller (Touch Panel etc.) from a system (AVR)The result is sent, when a system is operated directly and a state changesThe EVENT should be sent within 5 seconds after the state of the system (AVR) is changed. * The form of EVENT presupposes that it is the same as that of COMMAND. * Refer to the following table for the contents of COMMAND and EVENT. RESPONSE | The message sent to a controller (Touch Panel etc.) from a system (AVR)if the ‘request command’ (COMMAND+? +CR (0x0D)) has came from a controller.The RESPONSE should be sent within 200ms of receiving the request COMMAND * The form of RESPONSE presupposes that it is the same as that of EVENT.

How to Install this package?

npm install marantz-denon-telnet

How to use this package?

Issue a plain COMMAND

Simple 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.

var MarantzDenonTelnet = require('marantz-denon-telnet');
var mdt = new MarantzDenonTelnet(DEVICE_IP); // get an instance for a device at IP XXX.XXX.XXX.XXX
mdt.cmd('PWON', function(error, ret) {console.log((error ? error : 'Sent command to turn AVR on.');}); // turns the device on
// ['Sent command to turn AVR on.']

Issue a plain request COMMAND

If 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.

var MarantzDenonTelnet = require('marantz-denon-telnet');
var mdt = new MarantzDenonTelnet(DEVICE_IP); // get an instance for a device at IP XXX.XXX.XXX.XXX
mdt.cmd('PW?', function(error, ret) {console.log(ret);}); // is the device turned on?
// ['PWON']

Using the higher level API

A growing number of getter and setter methods like getPowerState(), setVolume(), setInput() are available, just checkout the API documentation.

Tested on?

  • marantz SR7011
  • Denon AVR-4310
  • Denon AVR-X1400H

enjoy!