codetheweb / tuyapi

🌧 An easy-to-use API for devices that use Tuya's cloud services. Documentation: https://codetheweb.github.io/tuyapi.
MIT License
2.04k stars 332 forks source link

[Question] Do requests manually (http) #601

Closed Aaroneisele55 closed 1 year ago

Aaroneisele55 commented 1 year ago

Hello, I want to integrate my tuya plugs that all work with the tuyapi module into some device that needs urls for http requests. How can i do this (urls should be like "http://IP:Port/?on=true" so the device can activate them using GET requests)

Is there kind of a template that i can modify to suit my Devices?

Thanks Aaron

Apollon77 commented 1 year ago

You need to write a JavaScript program which actually does that ... The library will only help to get status und control the tuya devices. it do not offer an HTTP interface