
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
broadlink-rm-http
Advanced tools
A Web server to control IR & RF devices using Broadlink RM. Can be used for custom applications or with IFTTT to add Google Home, Alexa & HomeKit support (tutorial below).
A Web server to control IR & RF devices using Broadlink RM. Can be used for custom applications or with IFTTT to add Google Home, Alexa & HomeKit support (tutorial below).
Install this package by running:
npm install broadlink-rm-http
Create a file named index.js and add the following code:
"use stict";
const PORT = process.env.PORT || 1880;
const BroadlinkServer = require('broadlink-rm-http');
const commands = require('./commands');
const key = "YOUR_SECRET";
var rooms = [];
rooms["ROOM_NAME"] = {host:"MAC_OR_IP",groups:["GROUP_A", "GROUP_B"]};
let app = BroadlinkServer(commands, key, rooms);
app.listen(PORT);
console.log('Server running, go to http://localhost:' + PORT);
Create a file named commands.js and add:
module.exports = [
{"command":"COMMAND_A","group":"GROUP_NAME","data":"IR_OR_RF_CODE"},
{"command":"COMMAND_B","group":"GROUP_NAME","data":"IR_OR_RF_CODE"}
];
Alternatively, you can move index.js and commands.js from node_modules/broadlink-rm-http/example to the main directory
node index) and create rooms in the index.js file using these informationsnode index and visit http://localhost:1880/learn/YOUR_SECRET/HOST replacing HOST with the Mac or IP address (not room !) of the device that will be used for learning codescommands.js file and fill the placeholders accordinglycommands.js allows you to add commands to a group while the index.js allows you to bind rooms to one or more groupsTo run commands simply visit http://localhost:1880/execute/YOUR_SECRET/ROOM/COMMAND
npm install -g localtunnel and start it with lt --port 1880 (if your server's port is 1880)https://YOUR_SUBDOMAIN.localtunnel.me/execute/YOUR_SECRET/ROOM/COMMANDlt --port 1880 --subdomain SOMETHING_UNIQUE to make sure it remains the samehttps://YOUR_SUBDOMAIN.localtunnel.me/execute/YOUR_SECRET/ROOM/COMMAND and press Create action (leave everything else as is)FAQs
A Web server to control IR & RF devices using Broadlink RM. Can be used for custom applications or with IFTTT to add Google Home, Alexa & HomeKit support (tutorial below).
The npm package broadlink-rm-http receives a total of 8 weekly downloads. As such, broadlink-rm-http popularity was classified as not popular.
We found that broadlink-rm-http demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.