Giter VIP home page Giter VIP logo

Comments (8)

codetheweb avatar codetheweb commented on May 24, 2024

Might be related to the broadcast error. Please update the CLI tool with npm i @tuyapi/[email protected] -g and try again.

If it still doesn't work, please post the output of DEBUG=* sudo tuya-cli link-wizard.

Also, what's the output of node -v?

from tuyapi.

Minichota avatar Minichota commented on May 24, 2024

well, now I'm getting a timeout error, I'm using the same wifi network that I used with my phone and the tuya app, I'm not sure why I'm getting it.

from tuyapi.

codetheweb avatar codetheweb commented on May 24, 2024

@Minichota please see my above comment. I need more details before I can help.

from tuyapi.

Minichota avatar Minichota commented on May 24, 2024

Well, when I used to debugger one, it appeared to work... now my only issue is that I'm using a python version of this api and I'm getting timeout errors when attempting to run it. I think I'm done with this part of the process though

from tuyapi.

codetheweb avatar codetheweb commented on May 24, 2024

Ok. If you're using the Python port, please open future issues at clach04/python-tuya.

I'm closing this for now, feel free to reopen it if you need to.

from tuyapi.

Gunnthorian avatar Gunnthorian commented on May 24, 2024

just found this tuyapi and im trying to get the ids and keys right now but im getting the exact same error as Minichota

? Make the indicator light on your device flash.
                For most devices, this means holding down the main button.
                Press return when it's blinking. Yes
? What's your WiFi called? WIFI
? What's the password for your WiFi? [hidden]
? How many devices do you want to link? 1
? Do you want to save devices that are successfully linked? Yes
⠇ Registering devices(s)...events.js:167
      throw er; // Unhandled 'error' event
      ^

Error [ERR_SOCKET_CANNOT_SEND]: Unable to send data
    at Socket.onListenError (dgram.js:335:22)
    at Object.onceWrapper (events.js:273:13)
    at Socket.emit (events.js:182:13)
    at state.handle.lookup (dgram.js:239:14)
    at process._tickCallback (internal/process/next_tick.js:63:19)
Emitted 'error' event at:
    at Socket.onListenError (dgram.js:335:8)
    at Object.onceWrapper (events.js:273:13)
    [... lines matching original stack trace ...]
    at process._tickCallback (internal/process/next_tick.js:63:19)

on macOS HighSierra version 10.13.6

from tuyapi.

codetheweb avatar codetheweb commented on May 24, 2024

@Gunnthorian what's your NodeJS version? It should be >=8.0.0.

Can you please try running DEBUG=* tuya-cli link-wizard and then post the output?

from tuyapi.

Gunnthorian avatar Gunnthorian commented on May 24, 2024

@codetheweb my node version is 10.8.0

After running it with the debug the outlet worked (no idea why, I just saw a success message) I will be heading home with more to test and I'll let you know.

update:
works fine now, the 2.4ghz networks are just super slow in an apartment complex so setting the devices up is just really hit or miss. As for the error it hasn't shown up again since.

from tuyapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.