Code Monkey home page Code Monkey logo

Comments (8)

francisconroy avatar francisconroy commented on July 28, 2024

How are you progressing with the wifi features? I actually need to use them. Has your PR been submitted yet?

from pyhs100.

kirichkov avatar kirichkov commented on July 28, 2024

I believe the PR was closed a few weeks ago due to inactivity.

from pyhs100.

kdschlosser avatar kdschlosser commented on July 28, 2024

sorry i have not gotten to this. I had a lot of thing take place and some of my projects ended up having to be put on the back burner. I will finish it up i just do not know when.

from pyhs100.

francisconroy avatar francisconroy commented on July 28, 2024

Thanks for the update. I've taken some of your changes into my fork to use for now. Thanks for the work

from pyhs100.

kdschlosser avatar kdschlosser commented on July 28, 2024

I have been working on this a bit over the past 2 weeks. I will have to change the code in order to work with your library. I have a project that uses python 2.7 and since this library only supports python 3+ i had to write a python 2 version of it.

I have all of the above features working. The only thing left to do is to port the changes or I can zip up the code and you can add what ever features you want. Up to you how you want to go about it.

from pyhs100.

kirichkov avatar kirichkov commented on July 28, 2024

We'd much rather prefer a pull request so we can review what's changed, etc.

from pyhs100.

kdschlosser avatar kdschlosser commented on July 28, 2024

OK cool. no worries there.

I have added a couple of things like the setting of the date and time as well as changed the discovery process to handle the possibility of a user having 2 network cards and the binding order set so that the network that the TPLink devices are on is not the first one in the list. It enumerates all NIC's and will send out a broadcast on each network that the NIC is associated with. Each NIC the discovery is run in it's own thread. so if the timeout is set to 3 seconds it will still take only 3 seconds to finish up.

There is also an issue with the Kasa App not setting the devices up properly and it has something to do with the setting of the time. So if this problem is encountered during the discovery process it will correct the issue on the device and restart the discovery. If the issue is not corrected the schedules, countdown timer and anti-theft will not work. The problem only occurs during the setup of the device when it is initially configured.

I also mapped out the different encryption options for setting of the access point. and you are able to set the device to a network that does not have any encryption enabled YAY! Not being able to do that was actually coded into the Kasa app and not the device it's self.

I have been working on getting the schedule, countdown, and anti-theft added.

The date and time I created a helper class for and set that helper class into the smartdevice class as an attribute named "device_time". and the class has properties for getting and setting all of the different elements in the time. Month, Year, Day, Hour, Minute, Second. It also has a get and set method that returns/accepts a datetime.datetime instance.

As far as the time goes if you can pass me the returned json data for this query

"time", dict(get_time=None, get_timezone=None)

this will be helpful in me mapping out the time zones. this way I can create a tzinfo subclass that i can attach to the datetime.datetime instance and also use the tzinfo if one is attached in setting the timezone. They have some kind of an index for the time zones that doesn't match to the utc offset

from pyhs100.

rytilahti avatar rytilahti commented on July 28, 2024

We are closing this repository for new changes in favor of a new, asyncio-enabled continuation project: https://github.com/python-kasa/python-kasa

If the issue is still present in the new project, please feel free to open an issue there, thanks!

from pyhs100.

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.