Android IP Cam support#6488
Merged
Merged
Conversation
|
Will it expose all features in standard configuration? |
Member
Author
|
Only active features |
Member
Author
|
Oh I see a bug. I'll fix it |
|
thanks! :)
2017-03-10 9:48 GMT+01:00 Pascal Vizeli <notifications@github.com>:
… Oh I see a bug. I'll fix it
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#6488 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMtAfzcXtwCgcl9bsVQd35DoKDy7f45Rks5rkQ5UgaJpZM4MW8yP>
.
|
|
Would it be too much trouble to also support custom ports? I have 7 old cell phones each on different port, 192.168.1.40:8040, 192.168.1.41:8041, etc. and right now the component throws errors. Thanks! |
Member
Author
|
Can you print error that I can fix it? Do you have try with |
|
<Event service_registered[L]: domain=group, service=reload>
17-03-10 09:03:21 INFO (MainThread) [homeassistant.core] Bus:Handling
<Event component_loaded[L]: component=group>
17-03-10 09:03:21 INFO (MainThread) [homeassistant.setup] Setting up
android_ip_webcam
17-03-10 09:03:21 INFO (MainThread)
[homeassistant.components.device_tracker] Setting up device_tracker.ddwrt
17-03-10 09:03:21 ERROR (MainThread) [homeassistant.core] Error doing job:
Task exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/tasks.py", line 237, in _step
result = next(coro)
File
"/usr/local/lib/python3.4/dist-packages/homeassistant/components/android_ip_webcam.py",
line 196, in async_setup_ipcamera
yield from async_update_data(None)
File
"/usr/local/lib/python3.4/dist-packages/homeassistant/components/android_ip_webcam.py",
line 190, in async_update_data
yield from cam.update()
File "/var/opt/homeassistant/deps/pydroid_ipcam.py", line 91, in update
self.status_data = yield from self._request('/status.json')
File "/var/opt/homeassistant/deps/pydroid_ipcam.py", line 64, in _request
response = yield from self.websession.get(url, auth=self._auth)
File "/var/opt/homeassistant/deps/aiohttp/client.py", line 577, in
__iter__
resp = yield from self._coro
File "/var/opt/homeassistant/deps/aiohttp/client.py", line 202, in
_request
url = URL(url).with_fragment(None)
File "/var/opt/homeassistant/deps/yarl/__init__.py", line 176, in __init__
if val.port:
File "/usr/lib/python3.4/urllib/parse.py", line 156, in port
port = int(port, 10)
ValueError: invalid literal for int() with base 10: '8040:8080'
…On Fri, Mar 10, 2017 at 9:49 AM, Pascal Vizeli ***@***.***> wrote:
Can you print error that I can fix it?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#6488 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ASYqggD0x38vRVY_ZeixzgisumkUPruXks5rkXElgaJpZM4MW8yP>
.
|
Member
Author
|
Please add your config |
|
android_ip_webcam:
- host: 192.168.1.40:8040
auto_discovery: false
scan_interval: 120
username: !secret webcamera_username
password: !secret webcamera_password
…On Fri, Mar 10, 2017 at 12:24 PM, Pascal Vizeli ***@***.***> wrote:
Please add your config
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#6488 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ASYqgo-eeEz58tg1sDeX0bEtaELP_XZSks5rkZVbgaJpZM4MW8yP>
.
|
Member
Author
|
Wrong config. Use port |
Member
Author
|
Works, thanks!
On Mar 10, 2017 11:56 AM, "Pascal Vizeli" <notifications@github.com> wrote:
home-assistant/home-assistant.io#2227
<home-assistant/home-assistant.io#2227>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#6488 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ASYqgpTuSuSUqxRNmpBx5xq_FzbaYgAtks5rkZzMgaJpZM4MW8yP>
.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
Original written by Robbie: #5614
I have port it to async, refactor the whole code and create a external library
pydroid-ipcam.If user exposed functionality or configuration variables are added/changed: