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

sensi

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sensi - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

18

example.js

@@ -8,10 +8,14 @@ var baseUrl = 'https://bus-serv.sensicomfort.com';

// sensi.start().then(function() {
// sensi.setHeat({
// icd: '36-6f-92-ff-fe-01-8c-d7',
// temperature: 68,
// temperatureScale: 'F'
// });
// }).catch(function(err) {
// console.log(err);
// });
sensi.start().then(function() {
sensi.setHeat({
icd: '36-6f-92-ff-fe-01-8c-d7',
temperature: 68,
temperatureScale: 'F'
});
}).catch(function(err) {
console.log(err);
sensi.
});

@@ -18,0 +22,0 @@

@@ -8,3 +8,3 @@ var Promise = require('bluebird');

this.password = options.password;
this.baseUrl = 'https://bus-serv.sensicomfort.com';
this.baseUrl = options.baseUrl || 'https://bus-serv.sensicomfort.com';
this.defaultHeaders = {

@@ -11,0 +11,0 @@ 'X-Requested-With': 'XMLHttpRequest', // needed to get cookies instead of token

@@ -0,1 +1,16 @@

# Architecture
There are two different methods of interacting with the Sensi API.
1. Standard HTTP+JSON (http)
2. SignalR pub/sub longPolling (longPolling)
In order to initiate a longPolling connection you first have to authenticate with the HTTP+JSON API.
Authorizing over the HTTP+JSON API will setup the correct cookies for future requests.
## Questions
1. How do I configure the
// long poll connect (

@@ -2,0 +17,0 @@ // curl 'https://bus-serv.sensicomfort.com/realtime/connect?transport=longPolling&connectionToken=ZkP4Xa9LLko396XsjfoVnFJV2bOi-mhHrcTvvfz-38jLYam3IQgk2JkpCMqAT1emV_rt3E-Arubk4EayeFS1v8-nUmE-R8yuSGAIez5lpncf8k1yfD9X5xhzF2JfYVT9_gQqq1PAM1Wf4cQ65Q7dUA2&connectionData=%5B%7B%22name%22%3A%22thermostat-v1%22%7D%5D&tid=8&_=1426727150154' -H 'Origin: https://mythermostat.sensicomfort.com' -H 'Accept-Encoding: gzip, deflate, sdch' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.89 Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'Accept: application/json; version=1, */*; q=0.01' -H 'Referer: https://mythermostat.sensicomfort.com/' -H 'Cookie: .ASPXAUTH=36648BE3DA1EBBDFDFEE352F0BD3872620B6F8FE933AD1D065B8D00A9538A7AB0B94D947FA77E4C30B2DC8668A3F1408E3A151A3D90DCA36C286A56D4238DF95AD6930AB49C9E2500EEED45EE2F2CFB3EA209CFBC3FE69260AB983406048266622246D78E6E6703DF58649876FBA1487214E79C9405A5EED7F0C078570F8B4F4E5EF3F570905EBB43B8C1A423D6B9F832AA5CDBFEEBCF7718D5699A463E7D60B715780CEF4536625432EE18E1E49ECA39456ADD5E3465FA3339E639239447E20A4A91AD8F6ABDDB7C3F3BE7844B59E4D7412204372C57A8586FBC5632E6FA23F1C7BD11A1EBD16478BE7A265E11AA610635FC794DFFAEFD4D42E3709A91B87E9FB49E3F8046FABA1FD30806998A4CFE3C7791B6DFFB300E2A0DA3FA53C97D42B744EC1F73F47B3B5FDA6236386BC4B4D4FF9169033E112D2C608FBE68E0FE5A9' -H 'Connection: keep-alive' --compressed

{
"name": "sensi",
"version": "0.0.1",
"version": "0.0.2",
"description": "API wrapper for Sensi thermostats",

@@ -5,0 +5,0 @@ "main": "index.js",

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