Giter VIP home page Giter VIP logo

pp6remoteapi's People

Contributors

kikeh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pp6remoteapi's Issues

Stage Display API accessibility

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'

Traceback issue with running code

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 :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.