ewelink-api icon indicating copy to clipboard operation
ewelink-api copied to clipboard

Can we use the eWeLink API without NodeJs ?

Open Orpair69 opened this issue 4 years ago • 7 comments

Hello,

I want to include a call to the EweLink API in an existing project but I don't use NodeJS. There is a way to call eweLink API without Node or not ? I use JS in my project but I dont know if we can include NodeJS project in simple JS code.

Best Regards,

Orpair69 avatar Oct 28 '20 13:10 Orpair69

I don't think we can. My quite the same question is hanging for like 2 months already, no answer. The chinese won't open their DIY API to the DYIers, lol.

AgentFire avatar Feb 23 '21 15:02 AgentFire

any news? I did some tests with RequireJS library, but it looks like it could (probably) work only if we download all "require" dependencies of ewelink... or not? https://sebhastian.com/javascript-require-is-not-defined/

jumpjack avatar Jun 26 '21 15:06 jumpjack

They just don't care.

AgentFire avatar Jun 26 '21 19:06 AgentFire

I found a possible workaround, at least to study the API, then we'll see... There is an "inadvertently open ewelink system" online, accessible from a node.js sandbox here:

https://codesandbox.io/s/pbjzx?file=/src/index.js

I also found Browserify, which should convert from node.js to local javascript, but I have no idea about how to use it.... as you have to install node.js to run it, and I don't know node.js!

jumpjack avatar Jun 28 '21 15:06 jumpjack

Just linking this to my issue #131,

AgentFire avatar Jun 28 '21 17:06 AgentFire

They did it!

https://github.com/itead/Sonoff_Devices_DIY_Tools

Some guy's experience.

You can close the issue now :)

AgentFire avatar Sep 04 '21 19:09 AgentFire

This is for direct access when you can directly access the wifi of the device, we need to access devices when far from home:

"Sonoff Devices DIY Tools is used for SONOFF Devices(Basic R3,RFR3 and Mini) control via LAN."

jumpjack avatar Sep 07 '21 13:09 jumpjack