Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
smartfritz-promise
Advanced tools
SmartHome for Fritz!Box and Dect!200 Node to communicate with AVM FritzBox over the aha-http-interface
Node module to communicate with a AVM FritzBox and FRITZ!DECT 200 (smart home hardware) providing the following functions:
correction of package.json with main for "out of the box" function.
For AVM FRITZ!DECT 200 control you need to know your Actuator identification number (AIN)
npm install smartfritz
node fritz02_devicelistinfos.js
Output similar to:
Fritz!Session ID: 171775fcb855bc17
Switches AIDs: 087610087001,087510717012,087610101971
Get the session ID default: as URL "fritz.box" is used as default paramter
var fritz = require('smartfritz');
fritz.getSessionID("user", "password", function(sid){
console.log(sid);
});
Get the session ID with own URL: use your Fritz!Box IP when "fritz.box" is not working.
var fritz = require('smartfritz');
var moreParam = { url:"192.168.178.1" };
fritz.getSessionID("user", "password", function(sid){
console.log(sid);
}, moreParam);
Get the Switch AID List:
var fritz = require('smartfritz');
fritz.getSessionID("user", "password", function(sid){
console.log("Fritz!Session ID: "+sid);
fritz.getSwitchList(sid,function(listinfos){
console.log("Switches AIDs: "+listinfos);
});
});
Get the switch Power (FRITZ!DECT 200):
var fritz = require('smartfritz');
fritz.getSwitchPower(sid, aid, function(sid){
console.log(sid);
});
Get the switch Energy (FRITZ!DECT 200):
var fritz = require('smartfritz');
fritz.getSwitchEnergy(sid, aid, function(sid){
console.log(sid);
});
Get the switch State (DECT200):
var fritz = require('smartfritz');
fritz.getSwitchState(sid, aid, function(sid){
console.log(sid);
});
Set the switch State ON (DECT200):
var fritz = require('smartfritz');
fritz.setSwitchOn(sid, aid, function(sid){
console.log(sid);
});
Set the switch State OFF (DECT200):
var fritz = require('smartfritz');
fritz.setSwitchOff(sid, aid, function(sid){
console.log(sid);
});
Get the phone list:
var fritz = require('smartfritz');
fritz.getPhoneList(sid,function(calls){
console.log(calls);
});
Enable or disable guest wlan:
var fritz = require('smartfritz');
fritz.setGuestWLan(sid, true, function(enabled){
console.log("Guest WLan Enabled: "+enabled);
});
Get guest wlan settings:
var fritz = require('smartfritz');
fritz.getGuestWLan(sid, function(settings){
console.log(settings);
});
AHA - Avm Home Interface
https://fritz.box/webservices/homeautoswitch.lua?ain=&switchcmd=&sid=
AHA-HTTP-Interface document http://avm.de/fileadmin/user_upload/Global/Service/Schnittstellen/AHA-HTTP-Interface.pdf
FAQs
SmartHome for Fritz!Box and Dect!200 Node to communicate with AVM FritzBox over the aha-http-interface
The npm package smartfritz-promise receives a total of 7 weekly downloads. As such, smartfritz-promise popularity was classified as not popular.
We found that smartfritz-promise 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.