Comments (11)
Just an FYI Im gonna implement PTZ support shortly
from axis.
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
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()
from axis.
from axis.
Hey!
Updated the main function so you can get quite far with that now 👍
https://github.com/Kane610/axis/blob/master/axis/__main__.py
from axis.
Thank you!
from axis.
Hi, I am getting an error -- Bad Request any idea what I am doing wrong?
Received data ['RTSP/1.0 400 Bad Request', 'CSeq: 1', 'Server: GStreamer RTSP server', 'Date: Tue, 04 Jun 2019 12:09:48 GMT', ''] from 192.168.1.102 192.168.1.102 RTSP 400 Bad RTSP session (192.168.1.102) state starting DESCRIBE rtsp://192.168.1.102/axis-media/media.amp?video=0&audio=0&event=off RTSP/1.0 CSeq: 1 User-Agent: HASS Axis Accept: application/sdp
from axis.
Hmm. Could be that you do a rtsp request that doesn't want any content
from axis.
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())
from axis.
Sorry, I had removed one line for some reason... It is fixed now
from axis.
Do you have any examples of moving (panning or tilting) the camera?
from axis.
No. There is no ptz support in this library yet
from axis.
Related Issues (20)
- rtsp streaming player window HOT 3
- Support for speakers as media_player entity in HA HOT 10
- Server disconnected without sending a response HOT 13
- HTTPS support HOT 6
- Axis problem with post command HOT 1
- Websocket support HOT 1
- Enable/disable automations
- sending command to enable/disable an action rule
- Axis cameras (Companion line) - solved by kimjohnson
- Add PTZ, zoom and preset positions to Axis camera integration
- Pytest picked
- Companion line support
- Axis M1031-W keeps trying to connect to the default IP and spamming the logs
- Cannot view RTSP stream Axis M3106-LVE
- Axis integration, motion sensors randomly stops reporting
- New device class doorbell needed to resolve homekit issue
- Debouncing HA state updates
- Axis camera motion sensor becomes unavailable
- Feature request of PTZ commands and preset positions in Axis cameras HOT 1
- Specify resolution in home assistant
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from axis.