-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
any docs, quick getting started #13
Comments
Sorry, no documentation. Closest is to look at the tests or the home assistant implementation right now. Everything that is needed is referenced here https://github.com/home-assistant/home-assistant/blob/eb912be47a2c9d032dbf9a84751c77d4896fa8b3/homeassistant/components/axis/device.py#L68 Abbreviated you can do it with
and
|
Thank you. Will give that a shot.
… On May 20, 2019, at 4:41 PM, Robert Svensson ***@***.***> wrote:
Sorry, no documentation. Closest is to look at the tests or the home assistant implementation right now.
Everything that is needed is referenced here https://github.com/home-assistant/home-assistant/blob/eb912be47a2c9d032dbf9a84751c77d4896fa8b3/homeassistant/components/axis/device.py#L68 <https://github.com/home-assistant/home-assistant/blob/eb912be47a2c9d032dbf9a84751c77d4896fa8b3/homeassistant/components/axis/device.py#L68>
Abbreviated you can do it with
device = axis.AxisDevice(
loop=hass.loop, host=config[CONF_HOST],
username=config[CONF_USERNAME],
password=config[CONF_PASSWORD],
port=config[CONF_PORT], web_proto='http')
and
device.start()
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#13?email_source=notifications&email_token=AAAD3M7EFQB3S5OIIIJYVR3PWMEF5A5CNFSM4HOFFR52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODV2ALOI#issuecomment-494142905>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAAD3M2RMYG6KZBB5UYHITDPWMEF5ANCNFSM4HOFFR5Q>.
|
Hey! Updated the main function so you can get quite far with that now 👍 https://github.com/Kane610/axis/blob/master/axis/__main__.py |
Thank you! |
Hi, I am getting an error -- Bad Request any idea what I am doing wrong?
|
Hmm. Could be that you do a rtsp request that doesn't want any content |
this is my code. I am not a Python dev so I might have an error? import asyncio
import axis
import logging
from axis import AxisDevice
async def main():
loop = asyncio.get_event_loop()
device = AxisDevice(
loop=loop, host="192.168.1.102", username="user",
password="pass", port=80)
device.start()
try:
while True:
await asyncio.sleep(1)
except KeyboardInterrupt:
pass
finally:
device.stop()
logging.basicConfig(format='%(message)s', level=logging.DEBUG)
asyncio.run(main()) |
Sorry, I had removed one line for some reason... It is fixed now |
Do you have any examples of moving (panning or tilting) the camera? |
No. There is no ptz support in this library yet |
Just an FYI Im gonna implement PTZ support shortly |
Is there any documentation or a quick example of how to subscribe to an event stream?
The text was updated successfully, but these errors were encountered: