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

node-red-contrib-rf-command

v1.0.0

Published

Offers possibility to send a binary code via radio waves. I'm personally using this for controlling different IOT devices by radio.

Downloads

36

Readme

Offers possibility to send a binary code via radio waves. I'm personally using this for controlling different IOT devices by radio.

npm version npm npm downloads GitHub repo size in bytes GitHub last commit GitHub stars GitHub watchers GitHub license

rf-command

Offers possibility to send a binary code via radio waves. I'm personally using this for controlling different IOT devices by radio.

Code is tested with this device on Node red installed on a PaspberryPi II.

The node contains a python script for sending the payload; Python is mandatory;

How RF comminication works

On RF, the bits are identify by how much time the signal is high and how much time nothing is emitted on that frequency.

For example: if in 1024 µs we have 66% of time signal emitted and 33% of time silance, then is one. If we have 33% of time signal and then 66% of time silance then is zero.

Settings

  • GPIO Type: sets the type of pin specification; Can be BCM or BOARD more details here;
  • GPIO: pin number to which the RF emitter is connected;
  • Repeat: Indicates how many times the payload will be sent. Sometime is not enough to send the command just one time and the commands need to be send multiple times. For example can be an interference on the same frequency in exactly the same moment. For avoiding this scenario you cand set it to send same command multiple times just to be sure;
  • Pause (µs): if repeat is set more than one then we need to have a pause between each command;
  • Init sequence: Many devices have an init sequence that needs to be sent before sending the binary command. This allows you to configure an initialization signal.
    • Length: If you have multiple commands to be send you can concatenate all of them in a string and set here how long is a command. The node will split the command and inject initialisation code before each command. This shuld be the number of bits
    • Time high (µs): How long the signal will be high for initialization; in microseconds;
    • Time low (µs): How long the signal will be low for initialization; in microseconds;
  • Bit timing: configures how the time is split for a single bit;
    • Long time (µs): How much time is consider a long part of a bit for example can be 66% from 1024 (or how much a bit takes for your device)
    • Short time (µs): How much time is consider a short part of a bit for example can be 33% from 1024

Changelog

v0.1.0 (December 6, 2017)

  • Stable release;

v0.0.11 (December 6, 2017)

  • Allows sending multiple commands in same string as binary;