https://github.com/alexistm/rakvideo-sdk-python
Python API for the RAK Video modules, tested on RAK566
https://github.com/alexistm/rakvideo-sdk-python
Last synced: 25 days ago
JSON representation
Python API for the RAK Video modules, tested on RAK566
- Host: GitHub
- URL: https://github.com/alexistm/rakvideo-sdk-python
- Owner: AlexisTM
- License: mit
- Created: 2019-02-01T08:29:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-18T08:39:04.000Z (over 3 years ago)
- Last Synced: 2025-02-13T11:49:14.918Z (over 1 year ago)
- Language: Python
- Size: 6.84 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RakVideo-SDK-Python
> Due to the lack of available hardware available to me, this goes unmaintained.
Python API for the RAK Video modules, tested on RAK566
## Installation
Until Pypi publishing:
```bash
sudo pip install rak
```
## Usage
```python
from rak import RakDevice
# If you connect to the RAK567, the ip of the RAK566 (or other transmitters) is 192.168.100.100
# If you connect to the RAK566 (or other transmitters) directly, the ip will be 192.168.100.1
# RakDevice(self, ip, pipe, username="admin", password="admin"):
pipe0 = RakDevice("192.168.100.100", pipe=0, username='admin', password='admin')
pipe1 = RakDevice("192.168.100.100", pipe=1, username='admin', password='admin')
# Refresh force to read all the properties
pipe0.refresh()
# Show the pipe properties (refreshes only the data that is not yet read)
print(str(pipe0))
# Set the highest resolution (FHD) and quality for the pipe0
pipe0.resolution(3).quality(136).fps(30).gop(30)
# Disable pipe1 as nothing is connected by default on the RAK566
pipe1.resolution(0).quality(5).fps(1).gop(1)
```
## Credits
- [@AlexisTM](http://github.com/AlexisTM): Alexis Paques