Skip to content

Commit 4fb5d7d

Browse files
committed
v.0.0.5
1 parent 3df1352 commit 4fb5d7d

File tree

2 files changed

+29
-17
lines changed

2 files changed

+29
-17
lines changed

README.md

+27-15
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,24 @@
11
# pySDCP-extended
22

3-
[![PyPi](https://img.shields.io/pypi/v/pysdcp-extended.svg)](https://pypi.org/project/pysdcp-extended)
3+
<!---[![PyPi](https://img.shields.io/pypi/v/pysdcp-extended.svg)](https://pypi.org/project/pysdcp-extended)--->
44

5-
Sony SDCP / PJ Talk projector control.
5+
Extended Sony SDCP / PJ Talk projector control.
66

77
Python **3** library to query and control Sony Projectors using SDCP (PJ Talk) protocol over IP.
88

99
## Features
1010

1111
* Auto discover projector using SDAP (Simple Display Advertisement Protocol)
12-
* Query model name and serial number
13-
* Query and change power, input and picture muting status
14-
* Query lamp hours
15-
* Change input to HDMI 1 and HDMI 2
12+
* Query and change power & input (HDMI 1 + 2)
1613
* Set aspect ratio/zoom and calibration presets
17-
* Show response error message from the projector
1814

19-
### More features
15+
### Extended Features
2016

21-
The SDCP protocol allow to control practically everything in projector, i.e. resolution, brightness, 3d format...
22-
If you need to use more commands, just add to _protocol.py_, and send with _my_projector._send_command__
23-
24-
Please note that commands in `COMMANDS_IR` work as fire and forget and you only get a response if there is a timeout.
17+
* Support for more commands (added to protocol.py)
18+
* Query and set picture muting
19+
* Query lamp hours
20+
* Query model name and serial number
21+
* Show response error message from the projector
2522

2623
## Protocol Documentation
2724

@@ -48,16 +45,18 @@ Supported Sony projectors should include:
4845

4946
## Installation
5047

51-
```pip install pysdcp-extended```
48+
_Currently only available on Test PyPi_
49+
50+
```pip install --index-url https://test.pypi.org/simple/ pysdcp-extended```
5251

5352
## Examples
5453

5554
Sending any command will initiate auto discovery of the projector if none is known and will carry on the command. So just go for it and maybe you get lucky
5655

5756
```python
58-
import pysdcp_extended as pysdcp
57+
import pysdcp_extended
5958

60-
my_projector = pysdcp.Projector()
59+
my_projector = pysdcp_extended.Projector()
6160

6261
my_projector.get_power()
6362
my_projector.set_power(True)
@@ -70,6 +69,19 @@ my_known_projector = pysdcp.Projector('10.1.2.3')
7069
my_known_projector.set_HDMI_input(2)
7170
```
7271

72+
### Commands from protocol.py
73+
74+
While you can use the build in functions like get_power() or set_HDMI_input() you can also directly send any command from protocol.py like this
75+
If you need to use more commands, just add to _protocol.py_, and send it like this:
76+
77+
```python
78+
from pysdcp_extended.protocol.py import *
79+
80+
my_projector._send_command(action=ACTIONS["SET"], command=COMMANDS_IR["CURSOR_UP])
81+
```
82+
83+
Please note that commands in `COMMANDS_IR` work as fire and forget and you only get a response if there is a timeout.
84+
7385
## Credits
7486

7587
This plugin is an extended fork of [pySDCP](https://github.com/Galala7/pySDCP) by [Galala7](https://github.com/Galala7) which is based on [sony-sdcp-com](https://github.com/vokkim/sony-sdcp-com) NodeJS library by [vokkim](https://github.com/vokkim).

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tool.poetry]
22
name = "pysdcp-extended"
3-
version = "0.0.4"
4-
description = "SDCP / PJ Talk library to control Sony projectors"
3+
version = "0.0.5"
4+
description = "Extended SDCP / PJ Talk library to control Sony projectors"
55
authors = ["kennymc.c"]
66
license = "MIT"
77
readme = "README.md"

0 commit comments

Comments
 (0)