itead / Sonoff_Devices_DIY_Tools

BSD 3-Clause "New" or "Revised" License
548 stars 168 forks source link

The tool is not supported on Linux #15

Open MaggieWong27 opened 5 years ago

MaggieWong27 commented 5 years ago

I'm trying to write my own python script to interface with my BASICR3, i have managed to connect to the device and get the configurations(apiKey, deviceID, etc.), but when i try semding my POST requests i get no response at all, have you got any tips or recommendations for doing such a thing? PS. I am using Linux and as far as i can see the provided program is not supported on linux

MaggieWong27 commented 5 years ago

From another customer: Why is not possible to connect in diy mode with websocket? why you have excluded all linux / Mac users?

mattsaxon commented 5 years ago

If you are using an APi key, I suspect you are are not in DIY mode, ie you do not have the jumper fitted. In this mode you need to encrypt the request.

mattsaxon commented 5 years ago

Why do you say Linux and Max users are excluded, Python should run on those platforms and I’ve been using the API (though not the tool as yet) from Linux.

biotecov commented 4 years ago

I am trying to use from linux too. No success. The provided python code has inconsistencies (at least, mixed usage of spaces and tabs and some incorrect indentations). Also you have to installa some python packages. Even after that, I still has a message I don't know how to address: 'Could not load the Qt platform plugin "xcb" in "" even though it was found'. I am no proficient on python, so I don't know how to solve this. The least I can say is that this code was not really writtten with portability in mind :(