smartfritz-promise
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -14,4 +14,4 @@ /** | ||
var username = DEFINE HERE; | ||
var password = DEFINE HERE; | ||
var username = "andi"; | ||
var password = "Nothing!28"; | ||
@@ -37,3 +37,3 @@ | ||
fritz.getSwitchTemperature(sid, switches[0]).then(function(temp) { | ||
fritz.getTemperature(sid, switches[0]).then(function(temp) { | ||
console.log("Switch temperature [" + switches[0] + "]: " + temp + "°C"); | ||
@@ -40,0 +40,0 @@ }); |
{ | ||
"name": "smartfritz-promise", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "SmartHome for Fritz!Box and Dect!200 Node to communicate with AVM FritzBox over the aha-http-interface", | ||
@@ -43,4 +43,5 @@ "author": { | ||
"Dect 200", | ||
"Comet DECT", | ||
"SmartFritz" | ||
] | ||
} |
@@ -8,3 +8,3 @@ # smartfritz | ||
- Get the session ID (`getSessionID`) | ||
- Get device list as XML (`getDeviceListInfos`) >FritzOS 6.10 | ||
- Get device list as XML (`getDeviceListInfo`) >FritzOS 6.10 | ||
- Get temperature (`getTemperature`) | ||
@@ -40,4 +40,4 @@ | ||
- Set the guest wlan (setGuestWLan) | ||
- Get the guest wlan settings (getGuestWLan) | ||
- Set the guest wlan (`setGuestWlan`) | ||
- Get the guest wlan settings (`getGuestWlan`) | ||
@@ -44,0 +44,0 @@ All functions have been tested on FritzOS 6.20/6.36 / FritzBox 7390. The WLAN functions may be less stable. |
@@ -206,3 +206,3 @@ /** | ||
{ | ||
return executeCommand(sid, 'getswitchtemperature', ain, options).then(function(body) { | ||
return executeCommand(sid, 'gettemperature', ain, options).then(function(body) { | ||
return Promise.resolve(parseFloat(body) / 10); // °C | ||
@@ -209,0 +209,0 @@ }); |
19972