Catalog npm
Back to packageRELEASE DETAILS

1.0.0

npm

433mhz

A module for sending data on a 433MHz transmitter / receiver on a Raspberry Pi.

Published25 Dec 2016
Direct dependencies0
Transitive dependenciesNot calculated

README

Current package documentation

433MHz

A Node package to transmit data on a Raspberry Pi using a 433MHz sender.

Note: I made this for my cheap remote outlets, I don't know if this is actually useful with other devices lol.

Be aware of command injection: the binary code you pass to transmitCode is passed directly into exec (no sanitization)!

Installation

npm install 433MHz

Usage

const { transmitCode } = require('433MHz');

// Input the code that you want to be transmitted
transmitCode('1111111111111111111010111');

// You have multiple options to customize the transmission
transmitCode('1111111111111111111010111', {
  transmitPin: 18,
  shortDelay: 0.001,
  longDelay: 0.005,
  packetDelay: 0.05,
});

Options

transmitPin

This is the pin, the data pin of the transmitter is connected to on the GPIO. Default: 18

shortDelay

The short delay between pin output state changes. Default: 0.00037

longDelay

The longer delay between pin output state changes. Default: 0.00101

packetDelay

The delay between attempts (packets) of code data transmitted. Default: 0.01102

Changelog

Version 2.0.0

  • transmitCode now returns a Promise and the callback option has been removed
  • transmitCode is no longer the exported default, use const { transmitCode } = require('... instead

Version 1.1.0

  • Legacy version

Made by Lukas von Mateffy (@Capevace)

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 0

Native requirements
0 direct targetsNot calculated transitive count
No declared dependencies in this collected response

Declarations describe requirements; they are not a resolved dependency graph.

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "af5741294cbe513e8693d6978cc0403c959ec017",
  "tarball": "https://registry.npmjs.org/433mhz/-/433mhz-1.0.0.tgz",
  "integrity": "sha512-8E8m3bbrNv2jU7iDCJIwuABwfZvrYIBgl29YeEvRlscoj2FvyGgZepa11lxNBvz5cjFRxTWBMFtXuHq6QlPLGQ==",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEYCIQDEtv3bZJSj1Sb8zEHhvLVNRPAndeNhUil9n0+8TMfzyQIhAOxy41gEgAzgC2AjJ7x+hKHbbucBCGGSL82j8+bmzdjK"
    }
  ]
}

Repository

PENDING
capevace/433mhz

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 20:01 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:bd6760ab049ffb92ccde2a25455968663faf70c56785df375549aade7e895fc6

Other collected versions

2.0.025 Nov1.1.03 JanView all collected versions →