Code Monkey home page Code Monkey logo

Comments (9)

smaggard avatar smaggard commented on September 28, 2024

I have a branch created with full addition of the HS200 switch if you could a add me as a contributor.

from pyhs100.

smaggard avatar smaggard commented on September 28, 2024

Code changes I am proposing can be found in https://github.com/smaggard/pyHS100/blob/master/pyHS100.py

from pyhs100.

GadgetReactor avatar GadgetReactor commented on September 28, 2024

That's great.

Please start a new branch, raise a pull request and we will be able to
check and merge it in.

On Oct 26, 2016 1:26 AM, "smaggard" [email protected] wrote:

I have a branch created with full addition of the HS200 switch if you
could a add me as a contributor.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#4 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AI62U75uvOe9wZZbE1uXnK6T6tPnlsI_ks5q3jvUgaJpZM4KgNT4
.

from pyhs100.

smaggard avatar smaggard commented on September 28, 2024

I have a new branch but I can't publish it

On Oct 25, 2016, at 4:54 PM, GadgetReactor [email protected] wrote:

That's great.

Please start a new branch, raise a pull request and we will be able to
check and merge it in.

On Oct 26, 2016 1:26 AM, "smaggard" [email protected] wrote:

I have a branch created with full addition of the HS200 switch if you
could a add me as a contributor.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#4 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AI62U75uvOe9wZZbE1uXnK6T6tPnlsI_ks5q3jvUgaJpZM4KgNT4
.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

from pyhs100.

smaggard avatar smaggard commented on September 28, 2024

I am getting the following error trying to create a branch, I think I need some permissions set.

You may not have permission to access pyHS100. Check Preferences to make sure you’re still logged in.

On Oct 25, 2016, at 4:54 PM, GadgetReactor [email protected] wrote:

That's great.

Please start a new branch, raise a pull request and we will be able to
check and merge it in.

On Oct 26, 2016 1:26 AM, "smaggard" [email protected] wrote:

I have a branch created with full addition of the HS200 switch if you
could a add me as a contributor.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#4 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AI62U75uvOe9wZZbE1uXnK6T6tPnlsI_ks5q3jvUgaJpZM4KgNT4
.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub #4 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AV_aD6uz3TmVxr1zXIxbaodCwEC6AMcAks5q3nqLgaJpZM4KgNT4.

from pyhs100.

smaggard avatar smaggard commented on September 28, 2024

I tried doing a pull request and got a permission denied that route too, let me know when you get the permissions setup.

from pyhs100.

GadgetReactor avatar GadgetReactor commented on September 28, 2024

Hi, there isn't any permissions. You won't be able to publish directly. Please see how to below, it's the same guidelines as used by Home-Assistant.

How to contribute

If doing this for the first time

Fork this repo using the Fork button.
Clone your fork on your computer.

git clone https://github.com/YOUR_GITHUB_USERNAME/pyHS100.git
Add the main repo as upstream.

cd pyHS100
git remote add upstream https://github.com/gadgetreactor/pyHS100.git

Every time

Be sure to always work with the current upstream master.

Run this from your feature branch

git fetch upstream master # to pull the latest changes into a local branch
git rebase upstream/master # to put those changes into your feature branch before your changes
Create a feature branch for your changes. This is important - don't push to master!

git checkout -b new-feature
Also, do a special branch based on your master for each feature you want to implement - don't put multiple features into one branch - this is also very important!

Do your work here and commit it. If there is an issue in the tracker that regards your commits, always reference it in the commit message. For example git commit -m "docs: add referencing issues (#2)".

Push this new branch into your fork.

git push origin new-feature
Open a pull request using GitHub.

from pyhs100.

GadgetReactor avatar GadgetReactor commented on September 28, 2024

Just some quick thoughts:

The identify_model was added in the last pull request. I think it should be more generic. This will allow other TP-Link devices to work if they follow a similar format. This is the main reason why the HS200 was no longer working after the latest update.

    def _identify_model(self):
        """Query sysinfo and determine model"""
        sys_info = self.get_info()
        model = sys_info["system"]["get_sysinfo"]["model"][:5]

        return model

For the lines with the following:

        if self.model == 100 or self.model == 200:
            return False

I would suggest to change it to:

    if self.model != "HS110":
       return False

from pyhs100.

smaggard avatar smaggard commented on September 28, 2024

Done, thanks for giving me the steps.

On Oct 26, 2016, at 2:19 AM, GadgetReactor [email protected] wrote:

git push origin new-feature

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.