sinricpro / python-sdk

python3 sdk for sinric pro.
https://sinric.pro
23 stars 9 forks source link

Porting to Micropython #62

Closed cojmeister closed 10 months ago

cojmeister commented 11 months ago

Hi, can this library be imported in micropython code? It would be amazing to run sonríe in python in the esp32. If not, how can I help towards the process?

kakopappa commented 11 months ago

Hi,

This library does not support micropython. @thegoliathgeek was working on a micro python sdk. Did it go anywhere?

@cojmeister if you have the capacity to write the SDK?

cojmeister commented 11 months ago

I can try, I'd definitely need a roadmap or somewhere to begin in.

kakopappa commented 11 months ago

Great, thank you

Please drop an email to @.*** with your telegram/whatsapp info. Will setup a group chat to discuss the details

On Mon, 18 Dec 2023 at 1:09 PM cojmeister @.***> wrote:

I can try, I'd definitely need a roadmap or somewhere to begin in.

— Reply to this email directly, view it on GitHub https://github.com/sinricpro/python-sdk/issues/62#issuecomment-1859614610, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZAZZSZTSOZL2CX4OLHL3TYJ7MYFAVCNFSM6AAAAABAXRNYM2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJZGYYTINRRGA . You are receiving this because you commented.Message ID: @.***>

thegoliathgeek commented 11 months ago

@cojmeister I tried to re-write the sdk using micropython. I couldn't find a well-defined WebSockets library. If you can figure this out it would be helpful. Let me know you need any support on this.

cojmeister commented 11 months ago

@kakopappa Your mail got censored @thegoliathgeek I'll take a look and see what I can find.

kakopappa commented 11 months ago

Hi @thegoliathgeek @cojmeister

tried AsyncWebsocketClient from https://github.com/Vovaman/micropython_async_websocket_client/tree/dev and it seems to work. so I created a new project here https://github.com/sinricpro/micropython-sinricpro-sdk/tree/main so we all can collaborate going forward.

The current code in the repo can connect to the production web socket server and receive a command.

@cojmeister Please drop an email to support at sinric dot com with your telegram/whatsapp

kakopappa commented 11 months ago

switch with on/off + event is working now.

https://github.com/sinricpro/micropython-sinricpro-sdk

cojmeister commented 11 months ago

Done, sorry I went awol, things got a bit crazy! But ready to help!

kakopappa commented 11 months ago

I have completed the implementation in MicroPyhon.

please give it a try when you get a chance

https://github.com/sinricpro/micropython-sinricpro-sdk