Giter Site home page Giter Site logo

appletv-indigoplugin's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

appletv-indigoplugin's Issues

Scan first with IP unicast, if fails move onto Multicast

To help fix scanning issues:

Scan first with IP unicast (presume fixed IP address) if this fails move onto Multicast

Update connect system to attempt connection with IP address via unicast, if/when this fails then use multicast and wait for appropriate device response (current system)
Will need to save IP address in device.props - probably editable.
& factor in the restart across the async functions, perhaps with a counter

assigned

Error playing diff to HomePod

Here is the debugging info from the plugin...

`5 Feb 2023 at 11:27:57
appleTV Plugin Debug (plugin.py:closedPrefsConfigUi:764): logLevel = 5
appleTV Plugin Debug (plugin.py:closedPrefsConfigUi:765): User prefs saved.
appleTV Plugin Debug (plugin.py:closedPrefsConfigUi:766): Debugging on (Level: 5)
Action Group AppleTV Nescafe
appleTV Plugin Debug (plugin.py:sendRemoteCommand:1282): sendRemoteCommand Called configured : True
delayAmount : 900
description : send command to apple tv
deviceId : 0
pluginId : com.GlennNZ.indigoplugin.appleTV
pluginTypeId : sendCommand
props : com.GlennNZ.indigoplugin.appleTV : (dict)
appleTV : 1330741460 (string)
args : /Users/rdp/Music/nescafe.aiff (string)
command : stream_file (string)
replaceExisting : True
textToSpeak : & None
appleTV Plugin Debug (plugin.py:sendRemoteCommand:1284): Props equal: com.GlennNZ.indigoplugin.appleTV : (dict)
appleTV : 1330741460 (string)
args : /Users/rdp/Music/nescafe.aiff (string)
command : stream_file (string)
appleTV Plugin Sending Command stream_file=/Users/rdp/Music/nescafe.aiff to appleTV Device ID 1330741460
appleTV Plugin Debug (plugin.py:sendRemoteCommand:1303): Found correct AppleTV listener/manager. <main.appleTVListener object at 0x1030f8b20> and id 1330741460
appleTV Plugin Debug (plugin.py:send_command:506): Within send_command and command & args - stream_file=/Users/rdp/Music/nescafe.aiff and args /Users/rdp/Music/nescafe.aiff
appleTV Plugin Debug (plugin.py:_handle_device_command:403): _handle_device_command called - Args: /Users/rdp/Music/nescafe.aiff Cmd:stream_file=/Users/rdp/Music/nescafe.aiff
appleTV Plugin Debug (plugin.py:_handle_device_command:419): cmd and cmd_args extracted and Cmd stream_file and cmd_args ['/Users/rdp/Music/nescafe.aiff']
appleTV Plugin Debug (plugin.py: Function: _exec_command line: 489): Exception : Message : General Exception Caught:
appleTV Plugin Debug Traceback:
File "plugin.py", line 468, in _exec_command
value = await tmp(*args)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyatv/core/facade.py", line 392, in stream_file
await self.relay("stream_file")(file, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyatv/protocols/raop/init.py", line 371, in stream_file
audio_file = await open_source(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyatv/protocols/raop/audio_source.py", line 484, in open_source
return await FileSource.open(source, sample_rate, channels, sample_size)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyatv/protocols/raop/audio_source.py", line 428, in open
src = await loop.run_in_executor(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/miniaudio.py", line 949, in decode_file
raise DecodeError("failed to decode file", result)

appleTV Plugin Debug Error in plugin execution:

Traceback (most recent call last):
File "plugin.py", line 468, in _exec_command
value = await tmp(*args)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyatv/core/facade.py", line 392, in stream_file
await self.relay("stream_file")(file, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyatv/protocols/raop/init.py", line 371, in stream_file
audio_file = await open_source(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyatv/protocols/raop/audio_source.py", line 484, in open_source
return await FileSource.open(source, sample_rate, channels, sample_size)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyatv/protocols/raop/audio_source.py", line 428, in open
src = await loop.run_in_executor(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/miniaudio.py", line 949, in decode_file
raise DecodeError("failed to decode file", result)
miniaudio.DecodeError: ('failed to decode file', -1)

appleTV Plugin Debug
Exc_info: (<class 'miniaudio.DecodeError'>, DecodeError('failed to decode file', -1), <traceback object at 0x108ef7740>)
Exc_Text: Traceback (most recent call last):
File "plugin.py", line 468, in _exec_command
value = await tmp(*args)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyatv/core/facade.py", line 392, in stream_file
await self.relay("stream_file")(file, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyatv/protocols/raop/init.py", line 371, in stream_file
audio_file = await open_source(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyatv/protocols/raop/audio_source.py", line 484, in open_source
return await FileSource.open(source, sample_rate, channels, sample_size)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyatv/protocols/raop/audio_source.py", line 428, in open
src = await loop.run_in_executor(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/miniaudio.py", line 949, in decode_file
raise DecodeError("failed to decode file", result)
miniaudio.DecodeError: ('failed to decode file', -1)
Stack_info: None
appleTV Plugin Could not run this command at this time.`

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.