Observed since 20 Oct, 20:01 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
433mhz
A module for sending data on a 433MHz transmitter / receiver on a Raspberry Pi.
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)!
npm install 433MHz
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,
});
This is the pin, the data pin of the transmitter is connected to on the GPIO. Default: 18
The short delay between pin output state changes. Default: 0.00037
The longer delay between pin output state changes. Default: 0.00101
The delay between attempts (packets) of code data transmitted. Default: 0.01102
transmitCode now returns a Promise and the callback option has been removedtransmitCode is no longer the exported default, use const { transmitCode } = require('... insteadMade by Lukas von Mateffy (@Capevace)
Download counts and popularity will appear here as the collector receives them.
Declarations describe requirements; they are not a resolved dependency graph.
Source distribution
{
"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"
}
]
}Observed since 20 Oct, 20:01 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:bd6760ab049ffb92ccde2a25455968663faf70c56785df375549aade7e895fc6