Catalog npm
Back to packageRELEASE DETAILS

2.0.0

npm

433mhz

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

Published25 Nov 2021
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
{
  "integrity": "sha512-jV3m7C2X+1/NJwFYbXzswavZvXOygCyuSw+J57ANMyiVWMO8ZWExZoI/WoFR0sEWBO1nQRsSporhyimpmlYWDA==",
  "shasum": "bf6ab2690e439300c9ab94011d81f4fe9f162a91",
  "tarball": "https://registry.npmjs.org/433mhz/-/433mhz-2.0.0.tgz",
  "fileCount": 6,
  "unpackedSize": 5250,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhn5QCCRA9TVsSAnZWagAAwpMP/22UMozJ49TCpMgCXOtM\nYZh7ZPs8xal6D5lPWYQv1GLvuX4NW12AbTHJtv7bnnsjSjjC5hzrGUfusUia\nHxBPHEUegCgX+LxMKByg8YFd2zRudt6G3+a/5sJCbQbvcNDjdZSJgjC5vty9\n8cGN1zOladTCtIJ1KdernPy57IxV4EYvnHMsbdpS8N6JiwizaW+5XR2l95OL\nLYUF/TMr1q8yHWAYDifMFl6laQnhf5KF5nd4huY7Z+Kd+eyUshJCw/IZDZfl\nXwAE55YHzDtIG3kbLAiogYBoQ2EKK+v2L36Lww2U38nInrWGmQCwtGWKRrM7\nDSVBkCrAMSWQDP3JjOge6AmE6mHpy+0r43xM3bHIN11RHlPLTJUbNVjGRgw8\nD2uJhu7iUUzxEYxrhakMTfTMrLP6Bwsgj5sP1dgeOWB4RE5mOlCdamNyPcK2\nXrw/2A1eT2CNLyg8yuj1iDG7iFwLuqSCW3rb3QTFcGpEgHv4W2VkwrF5Zy+u\naJWGNMSXOPYKuVxqf15Vgd6C7/wtGRYmfs+19EWL3/X0Qa/MeFmClrKvafxQ\nSLDK54h7MAQGix5amT3KvbSwGj2dqr09fEDPTqXaZFtzuMkqMbs+wViCZT4G\nXAiBS3RFweGmnoRUuRslpiqnzfmssfKoe54OWkMY/TB3awLQ9gHQDu42EWKO\nWZfh\r\n=7xbM\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCICWINbx1bnpRKlaldtV18OnNtxbaCVreQZ1+Yx5w7xSDAiBcFidqXdMwcvyklr+x307BwiHh9V7zDvuFITWS35dIiQ=="
    }
  ]
}

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:f346e66437e7a7f3f7c668bae0625418aa23f3840244ad4cfd4baf1bdcdceb75

Other collected versions

1.1.03 Jan1.0.025 DecView all collected versions →