kikeh / pp6remoteapi Goto Github PK
View Code? Open in Web Editor NEWA client for the ProPresenter6 Remote Websocket API
License: MIT License
A client for the ProPresenter6 Remote Websocket API
License: MIT License
Hello there, can you explain how to use the functions within the StageDisplay class? I can't seem to get the send_message
function to work. Below is my terminal output.
Thoughts?
david@david-virtual-machine:~$ python3
Python 3.6.7 (default, Oct 22 2018, 11:32:17)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
from PP6RemoteAPI import PP6RemoteAPIClient as PP6
client == PP6(host='172.16.198.1', port=49911, password='password')
client.authenticate()
{'controller': 1, 'authenticated': 1, 'error': '', 'action': 'authenticate'}
client.StageDisplay
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'PP6RemoteAPIClient' object has no attribute 'StageDisplay'
client.send_message("Test")
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'PP6RemoteAPIClient' object has no attribute 'send_message'
Hi,
I sent you a dm on reddit but I thought I'd also ask here in case anyone else has had any ideas on whats going on here.
I want to use this code to do some basic pro presenter control. I have ran pip install PP6RemoteAPI
and the pip package installed successfully. When I try re-run the install command I get -
Requirement already satisfied: PP6RemoteAPI in c:\users\apesto\appdata\local\programs\python\python37\lib\site-packages (0.1.7) Requirement already satisfied: websockets==7.0 in c:\users\apesto\appdata\local\programs\python\python37\lib\site-packages (from PP6RemoteAPI)
(7.0)`
So I am sure that that isn't the issue
When I try execute the example code -
`from PP6RemoteAPI import PP6RemoteAPIClient as PP6
client = PP6(host='192.168.0.100', port=54321, password='password')
presentation = client.library.presentations[0]
presentation.to_slide(0)
clock = client.clocks[0]
clock.set_time('00:05:00')
clock.start()`
I get the following error -
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\apesto\AppData\Local\Programs\Python\Python37\lib\site-packages\PP6RemoteAPI\client.py", line 190, in library return self.get_library() File "C:\Users\apesto\AppData\Local\Programs\Python\Python37\lib\site-packages\PP6RemoteAPI\client.py", line 144, in get_library response = self.async_send(command) File "C:\Users\apesto\AppData\Local\Programs\Python\Python37\lib\site-packages\PP6RemoteAPI\client.py", line 58, in async_send return self.run(self._send(command, expect_response)) File "C:\Users\apesto\AppData\Local\Programs\Python\Python37\lib\site-packages\PP6RemoteAPI\client.py", line 45, in run asyncio.wait_for(task, timeout=self.DEFAULT_TIMEOUT) File "C:\Users\apesto\AppData\Local\Programs\Python\Python37\lib\asyncio\runners.py", line 43, in run return loop.run_until_complete(main) File "C:\Users\apesto\AppData\Local\Programs\Python\Python37\lib\asyncio\base_events.py", line 584, in run_until_complete return future.result() File "C:\Users\apesto\AppData\Local\Programs\Python\Python37\lib\asyncio\tasks.py", line 423, in wait_for raise futures.TimeoutError() concurrent.futures._base.TimeoutError
I have tried running the example program on python 3.6.0, 3.7.0, 3.7.3 and 3.9.0 but the error message is similar to all of them.
I am very new to python and don't really know what I am doing so some help would be great :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.