-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrading to latest icomfort-js (#30)
* Fixing readme, upgrading icomfort module
- Loading branch information
Showing
22 changed files
with
2,551 additions
and
645 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
config | ||
*.env | ||
.gitignore | ||
|
||
# Logs | ||
logs | ||
*.log | ||
|
||
# Dependency directories | ||
/node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
var iComfort = require("../src/iComfort"); | ||
var iComfortSerial = ""; // YOUR APPLIANCE SERIAL HERE! Run Test 1 alone and assign resulting Gateway_SN value | ||
|
||
var changeTemperatureTestVars = { | ||
Away_Mode: 0, | ||
Central_Zoned_Away: 2, | ||
ConnectionStatus: 'GOOD', | ||
Cool_Set_Point: 72, | ||
DateTime_Mark: '/Date(1483815385897+0000)/', | ||
Fan_Mode: 0, | ||
GMT_To_Local: -28800, | ||
GatewaySN: iComfortSerial, | ||
Golden_Table_Updated: true, | ||
Heat_Set_Point: 70, | ||
Indoor_Humidity: 31, | ||
Indoor_Temp: 70, | ||
Operation_Mode: 3, | ||
Pref_Temp_Units: '0', | ||
Program_Schedule_Mode: '1', | ||
Program_Schedule_Selection: 4, | ||
System_Status: 0, | ||
Zone_Enabled: 1, | ||
Zone_Name: 'Zone 1', | ||
Zone_Number: 0, | ||
Zones_Installed: 1 | ||
}; | ||
|
||
/* auth defined globally in icomfort */ | ||
var getSystemsInfoParams = {UserId: auth.username}; | ||
var getInfoParams = {GatewaySN: iComfortSerial, TempUnit: 0}; | ||
|
||
/* Data 1 = Retrieves appliance ID for later lookups and system name for Alexa device naming */ | ||
iComfort.getSystemsInfo(getSystemsInfoParams, auth) | ||
.then(console.log) | ||
.catch(console.error); | ||
|
||
/* Data 2 = Contains current temperature parameters to overwrite when changing temperature */ | ||
// iComfort.getThermostatInfoList(getInfoParams, auth) | ||
// .then(console.log) | ||
// .catch(console.error); | ||
|
||
/* Data 3 = Returns data on min and max temperatures of your unit, not used in Alexa Skill */ | ||
// iComfort.getGatewayInfo(getInfoParams, auth) | ||
// .then(console.log) | ||
// .catch(console.error); | ||
|
||
/* Data 4 = Careful! This test will change your actual temperature, uncomment to run */ | ||
// iComfort.setThermostatInfo(getInfoParams, changeTemperatureTestVars, auth) | ||
// .then(console.log) | ||
// .catch(console.error); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,20 +4,21 @@ | |
"description": "An Alexa Smart Home Skill for interacting with the Lennox iComfort WiFi", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "jest" | ||
"test-icomfort": "npm explore icomfort -- npm run test", | ||
"getData": "node data/index.js" | ||
}, | ||
"author": "Kate Hall <[email protected]> and Daniel McQuiston <[email protected]>", | ||
"license": "MIT", | ||
"dependencies": { | ||
"icomfort": "^1.1.1", | ||
"request": "^2.79.0", | ||
"request-promise-native": "^1.0.3" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/kate-hall/alexa-icomfort.git" | ||
}, | ||
"dependencies": { | ||
"icomfort": "^1.3.0", | ||
"request": "^2.79.0", | ||
"request-promise-native": "^1.0.3" | ||
}, | ||
"devDependencies": { | ||
"jest": "~22.1.4" | ||
"mocha": "^5.0.4" | ||
} | ||
} |
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.