Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

smartfritz-promise

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smartfritz-promise - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

2

package.json
{
"name": "smartfritz-promise",
"version": "0.4.0",
"version": "0.4.1",
"description": "SmartHome for Fritz!Box and Dect!200 Node to communicate with AVM FritzBox over the aha-http-interface",

@@ -5,0 +5,0 @@ "author": {

@@ -115,3 +115,8 @@ /**

// temperature conversion
/*
* Temperature conversion
*/
const MIN_TEMP = 8;
const MAX_TEMP = 28;
function temp2api(temp)

@@ -126,9 +131,4 @@ {

else {
if (temp < 8)
temp = 8;
else if (temp > 28)
temp = 28;
// 0.5C accuracy
res = Math.round((temp - 8) * 2) + 16;
res = Math.round((Math.min(Math.max(temp, MIN_TEMP), MAX_TEMP) - 8) * 2) + 16;
}

@@ -156,2 +156,5 @@

// supported temperature range
module.exports.MIN_TEMP = MIN_TEMP;
module.exports.MAX_TEMP = MAX_TEMP;

@@ -158,0 +161,0 @@ /*

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc