Skip to content

Fixing foscam library dependency/requirements#9387

Merged
balloob merged 19 commits into
home-assistant:devfrom
viswa-swami:fixing-foscam-library
Sep 12, 2017
Merged

Fixing foscam library dependency/requirements#9387
balloob merged 19 commits into
home-assistant:devfrom
viswa-swami:fixing-foscam-library

Conversation

@viswa-swami
Copy link
Copy Markdown
Contributor

Description:

Created a python foscam library and pushed to pypi. Updated the requirements dependency in foscam.py and ran the script to update the requirements_all.txt

Related issue (if applicable): fixes #8940

Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#<home-assistant.github.io PR number goes here>

Example entry for configuration.yaml (if applicable):

Checklist:

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
  • New dependencies have been added to the REQUIREMENTS variable (example).
  • New dependencies are only imported inside functions that use them (example).
  • New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
  • New files were added to .coveragerc.

If the code does not interact with devices:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
  • Tests have been added to verify that the new code works.

viswa-swami and others added 18 commits July 13, 2017 12:03
…This support was added in 0.48.1 as a generic service for cameras. Motion detection can be enabled/disabled for foscam cameras with this code-set.
…lk to foscam, used a 3rd party foscam library to communicate with it. This library already has support to enable/disable motion detection and also APIs to change the motion detection schedule etc. Need to add more support in the pyfoscam 3rd party library for checking if motion was detected or even if sound was detected. Once that is done, we can add that into HASS as well.
…t that i have. Generated using the gen_requirements_all.py script
… by gen_requirements_all.py after latest pull from origin/dev
@mention-bot
Copy link
Copy Markdown

@viswa-swami, thanks for your PR! By analyzing the history of the files in this pull request, we identified @jeroenterheerdt, @heathbar and @fabaff to be potential reviewers.

@balloob
Copy link
Copy Markdown
Member

balloob commented Sep 12, 2017

Thanks!

Next time, please create branches off the dev branch instead of all these old commits.

@balloob balloob added this to the 0.53.1 milestone Sep 12, 2017
@balloob balloob merged commit 659dc2e into home-assistant:dev Sep 12, 2017
balloob pushed a commit that referenced this pull request Sep 12, 2017
* Added support to enable/disable motion detection for foscam cameras. This support was added in 0.48.1 as a generic service for cameras. Motion detection can be enabled/disabled for foscam cameras with this code-set.

* Fixed the violation identified by hound-bot

* Fixed the comment posted by HoundCI-Bot regarding using imperative mood statement for pydocstyle

* Fixed the error that travis-ci bot found.

* As per comment from @balloob, Instead of directly using the URL to talk to foscam, used a 3rd party foscam library to communicate with it. This library already has support to enable/disable motion detection and also APIs to change the motion detection schedule etc. Need to add more support in the pyfoscam 3rd party library for checking if motion was detected or even if sound was detected. Once that is done, we can add that into HASS as well.

* Lint

* Removed the requests library import which is not used anymore

* Updating requirements_all.txt based on the code-base of home assistant that i have. Generated using the gen_requirements_all.py script

* Updating requirements_all.txt and requirements_test_all.txt generated by gen_requirements_all.py after latest pull from origin/dev

* Updated requirements_all.txt with script

* Updated the foscam camera code to fix lint errors

* Fixed houndci violation

* Updating the foscam library dependency/requirements.

* Fixing the requirements_all file. Somehow when i generated, it generated duplicate entry for the same dependency
@balloob balloob mentioned this pull request Sep 12, 2017
@bachp
Copy link
Copy Markdown
Contributor

bachp commented Sep 13, 2017

@balloob @viswa-swami Why is there a fork of pyfoscam required? Could this changes not be done in the existing library: https://pypi.python.org/pypi/pyfoscam/1.2 ?

@bachp
Copy link
Copy Markdown
Contributor

bachp commented Sep 13, 2017

Ok I think I found it 😉 quatanium/foscam-python-lib#19

@balloob
Copy link
Copy Markdown
Member

balloob commented Sep 14, 2017

I'm not a big fan of forks at all but in this case the original author was not responsive. If we can I would love to move back in the future.

@home-assistant home-assistant locked and limited conversation to collaborators Mar 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Foscam component broken in 0.51.x

6 participants