karlg100 / frigidaire Goto Github PK
View Code? Open in Web Editor NEWFrigidaire Cloud API
Frigidaire Cloud API
Hey, I just got a brand new cool connect window AC and this plugin doesn't appear to work, and I'm thinking it has to do with Frigidaire having a new app (https://apps.apple.com/us/app/frigidaire-2-0/id1500302958).
Am I right in my assumption that this is not the api/app you reverse engineered?
If so, I started playing around with Charles to see if maybe I could inspect what requests were being made and I'm pretty sure this app is actually doing certificate pinning which means I got nothing. Did you have to go through a similar process or have any advice beyond some of the instructions I found of jailbreaking my device to install a modified ipa file?
Any chance of adding support for dehumidifiers?
Hi Good Sir,
Great work so far. It seems I'm connecting with the API but My AC doesn't work anymore.
Either it's so cold that my AC doesn't work or something happened when I started using this library. I'll update you in a bit. In the mean time what data can I provide you that will allow you to assist me.
I know nothing about writing my own nodes for nodered. it would be awesome if this were packaged up into one.
Just throwing the idea out into the aether.
I'm trying to install the module for homebridge and it's has this uncaught exception.
TypeError: Cannot read property 'attributes' of undefined
at /homebridge/node_modules/homebridge-frigidaire/node_modules/frigidaire/lib/frigidaire.js:439:58
at Request._callback (/homebridge/node_modules/homebridge-frigidaire/node_modules/frigidaire/lib/frigidaire.js:285:14)
at Request.self.callback (/homebridge/node_modules/homebridge-frigidaire/node_modules/request/request.js:185:22)
at Request.emit (events.js:315:20)
at Request.<anonymous> (/homebridge/node_modules/homebridge-frigidaire/node_modules/request/request.js:1154:10)
at Request.emit (events.js:315:20)
at IncomingMessage.<anonymous> (/homebridge/node_modules/homebridge-frigidaire/node_modules/request/request.js:1076:12)
at Object.onceWrapper (events.js:421:28)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1220:12)
[6/5/2021, 3:03:47 PM] SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse (<anonymous>)
at Request._callback (/usr/local/lib/node_modules/homebridge-frigidaire/node_modules/frigidaire/lib/frigidaire.js:236:42)
at self.callback (/usr/local/lib/node_modules/homebridge-frigidaire/node_modules/request/request.js:185:22)
at Request.emit (events.js:315:20)
at Request.onRequestError (/usr/local/lib/node_modules/homebridge-frigidaire/node_modules/request/request.js:877:8)
at ClientRequest.emit (events.js:315:20)
at TLSSocket.socketErrorListener (_http_client.js:469:9)
at TLSSocket.emit (events.js:315:20)
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
[6/5/2021, 3:03:47 PM] Got SIGTERM, shutting down Homebridge...
Something happens over time when the deviceList gets unpopulated, and all the other calls stack up. This causes the framework (eg. homebridge) to become completely non-responsive.
This is probably because of a crash somewhere else in the plugin that also needs to be fixed. But a crash should never cause a runway situation. The plugin functions should self destruct after so many attempts.
Because the init() is only called now when auth fails, the deviceList never gets repopulated and the whole plugin causes a compounding avalanche of calls to build up.
[6/5/2021, 4:19:44 PM] [Frigidaire] Initializing Frigidaire platform...
Sat, 05 Jun 2021 20:19:44 GMT frigidaire getTelem()
Sat, 05 Jun 2021 20:19:44 GMT frigidaire get()
Sat, 05 Jun 2021 20:19:44 GMT frigidaire no sessionId, starting auth sequence
Sat, 05 Jun 2021 20:19:44 GMT frigidaire authStage1()
Sat, 05 Jun 2021 20:19:44 GMT frigidaire attempts: 0
Sat, 05 Jun 2021 20:19:49 GMT frigidaire auth error
Sat, 05 Jun 2021 20:19:49 GMT frigidaire resetAll()
Error: getaddrinfo EAI_AGAIN api.latam.ecp.electrolux.com
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26) {
errno: -3001,
code: 'EAI_AGAIN',
syscall: 'getaddrinfo',
hostname: 'api.latam.ecp.electrolux.com'
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.