Giter Club home page Giter Club logo

Comments (8)

StancuFlorin avatar StancuFlorin commented on July 21, 2024

Sometimes i get 123. I didn't was able to find why. I run the same test again and again.

from samsungctl.

StancuFlorin avatar StancuFlorin commented on July 21, 2024

$ samsungctl --host 192.168.100.4 KEY_1 KEY_2 KEY_3 KEY_ENTER

have the same behavior

Tested on Samsung UE49K5502

from samsungctl.

pedrinho avatar pedrinho commented on July 21, 2024

Try to add a small sleep between sending the keys... 0.1 or 0.2 seconds should be enough

from samsungctl.

Ape avatar Ape commented on July 21, 2024

Samsungctl already waits a bit between the keys, but the current time might not be long enough in some cases. Try to tweak one of these values (depending on if you use legacy or websocket):

https://github.com/Ape/samsungctl/blob/master/samsungctl/remote_legacy.py#L59
https://github.com/Ape/samsungctl/blob/master/samsungctl/remote_websocket.py#L59

We can commit the correct value for everybody if it helped. Or we can make this parameter configurable if there is any need for that.

from samsungctl.

StancuFlorin avatar StancuFlorin commented on July 21, 2024

I have created the pull request: #43

from samsungctl.

Ape avatar Ape commented on July 21, 2024

Are you saying that it actually helps to reduce the value? Does this fix your problem consistently? What is the lowest value that works for you?

from samsungctl.

StancuFlorin avatar StancuFlorin commented on July 21, 2024

Yes. It is weird, but this configuration is working.

from samsungctl.

jfrux avatar jfrux commented on July 21, 2024

Is there not a way to do like an async / await type of logic on the requests?
Is it the TV that is not fulfilling the remote requests?

from samsungctl.

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.