Comments (15)
mb @postlund help, this problem in pyatv
from node-red-contrib-apple-tv-x.
Seems to be a problem when running atvscript, can't troubleshoot without any output from the script though.
from node-red-contrib-apple-tv-x.
Thanks for your fast reply.
What do you need exactly and how do i manage to get the required output @postlund ?
from node-red-contrib-apple-tv-x.
This library calls atvscript so it either has to be modified to print or log the output, assuming it can't already do that. I'm not familiar with nodejs so I can't help with that, but I can support with pyatv related problems later (if you manage to get sim output/logs).
from node-red-contrib-apple-tv-x.
Try to call from the terminal (cmd) /usr/local/bin/python/atvscript scan
and show output
from node-red-contrib-apple-tv-x.
If I paste your cmd to the terminal I got an error -> No such file or directory
May be related to my python path - which python3 gives me back -> /Library/Frameworks/Python.framework/Versions/3.11/bin/python3
and which python -> /usr/bin/python
if I only put atvremote scan in the line I get the following output
Scan Results
`Name: Beam
Model/SW: Beam, Unknown OS
Address: 192.168.178.126
MAC: my:mac:adress:of:device
Deep Sleep: False
Identifiers:
-my:mac:adress:of:device
-my:mac:adress:of:device
Services:
Protocol: AirPlay, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
Protocol: RAOP, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
Name: Studio35
Model/SW: Apple TV 4, tvOS 16.1
Address: 192.168.178.105
MAC: my:mac:adress:of:device
Deep Sleep: False
Identifiers:
my:mac:adress:of:device
my:mac:adress:of:device
Services:
Protocol: Companion, Port: 49153, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory
Protocol: AirPlay, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory
Protocol: RAOP, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory
Name: Wohnzimmer
Model/SW: Apple TV 4, tvOS 16.1
Address: 192.168.178.76
MAC: my:mac:adress:of:device
Deep Sleep: False
Identifiers:
my:mac:adress:of:device
my:mac:adress:of:device
Services:
Protocol: Companion, Port: 49153, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory
Protocol: AirPlay, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory
Protocol: RAOP, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory
Name: Schlafzimmer
Model/SW: Apple TV 4, tvOS 16.1
Address: 192.168.178.88
MAC: my:mac:adress:of:device
Deep Sleep: False
Identifiers:
my:mac:adress:of:device
my:mac:adress:of:device
Services:
Protocol: Companion, Port: 49153, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory
Protocol: AirPlay, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory
Protocol: RAOP, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory
Name: Move Outdoor
Model/SW: Move, Unknown OS
Address: 192.168.178.62
MAC: my:mac:adress:of:device
Deep Sleep: False
Identifiers:
my:mac:adress:of:device
my:mac:adress:of:device
Services:
Protocol: AirPlay, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
Protocol: RAOP, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
Name: Bad
Model/SW: One, Unknown OS
Address: 192.168.178.128
MAC: my:mac:adress:of:device
Deep Sleep: False
Identifiers:
my:mac:adress:of:device
my:mac:adress:of:device
Services:
Protocol: AirPlay, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
Protocol: RAOP, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
Name: Küche
Model/SW: One, Unknown OS
Address: 192.168.178.73
MAC: my:mac:adress:of:device
Deep Sleep: False
Identifiers:
my:mac:adress:of:device
my:mac:adress:of:device
Services:
Protocol: AirPlay, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
Protocol: RAOP, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
Name: Esszimmer
Model/SW: One, Unknown OS
Address: 192.168.178.127
MAC: my:mac:adress:of:device
Deep Sleep: False
Identifiers:
my:mac:adress:of:device
my:mac:adress:of:device
Services:
Protocol: AirPlay, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
Protocol: RAOP, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
Name: Büro
Model/SW: One, Unknown OS
Address: 192.168.178.84
MAC: my:mac:adress:of:device
Deep Sleep: False
Identifiers:
my:mac:adress:of:device
my:mac:adress:of:device
Services:
Protocol: AirPlay, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
Protocol: RAOP, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
Name: Kinderzimmer
Model/SW: Bookshelf, Unknown OS
Address: 192.168.178.100
MAC: my:mac:adress:of:device
Deep Sleep: False
Identifiers:
my:mac:adress:of:device
my:mac:adress:of:device
Services:
Protocol: AirPlay, Port: 7000, Credentials: None, Requires Password: True, Password: None, Pairing: NotNeeded
Protocol: RAOP, Port: 7000, Credentials: None, Requires Password: True, Password: None, Pairing: NotNeeded
Name: Move
Model/SW: Move, Unknown OS
Address: 192.168.178.125
MAC: my:mac:adress:of:device
Deep Sleep: False
Identifiers:
my:mac:adress:of:device
my:mac:adress:of:device
Services:
Protocol: AirPlay, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
Protocol: RAOP, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
Name: Roam
Model/SW: Roam, Unknown OS
Address: 192.168.178.146
MAC: my:mac:adress:of:device
Deep Sleep: False
Identifiers:
my:mac:adress:of:device
-my:mac:adress:of:device
Services:
Protocol: AirPlay, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
Protocol: RAOP, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
Name: CG MacBookPro
Model/SW: MacBookPro18,1, Unknown OS
Address: 192.168.178.21
MAC:my:mac:adress:of:device
Deep Sleep: False
Identifiers:
my:mac:adress:of:device
my:mac:adress:of:device
Services:
Protocol: AirPlay, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory
Protocol: Companion, Port: 59616, Credentials: None, Requires Password: False, Password: None, Pairing: Unsupported
Protocol: RAOP, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory
Name: Studio35
Model/SW: Apple TV 4, tvOS 16.1
Address: 192.168.178.83
MAC: my:mac:adress:of:device
Deep Sleep: False
Identifiers:
my:mac:adress:of:device
my:mac:adress:of:device
Services:
Protocol: Companion, Port: 49153, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory
Protocol: AirPlay, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory
Protocol: RAOP, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory`
from node-red-contrib-apple-tv-x.
in terminal whereis atvscript
and whereis atvremote
plz for code use ```
from node-red-contrib-apple-tv-x.
plz for code use ```
sorry was a formatting error when pasting the output in the previous post.
if I put whereis ... in the terminal I'm getting no output
when I'm use which atvscript -> /Library/Frameworks/Python.framework/Versions/3.11/bin/atvscript
and for which atvremote -> /Library/Frameworks/Python.framework/Versions/3.11/bin/atvremote
from node-red-contrib-apple-tv-x.
in node config atv
set path /Library/Frameworks/Python.framework/Versions/3.11/bin
then deplay and re-scan
from node-red-contrib-apple-tv-x.
Paired new companion and airplay with my ATV and set path to /Library/Frameworks/Python.framework/Versions/3.11/bin
Log shows following errors
19 Dec 11:47:28 - [error] [atvx-config:Wohnzimmer] Error: Got stderr output from pyatv: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pyatv/scripts/atvscript.py:310: RuntimeWarning: coroutine 'Semaphore.acquire' was never awaited print(args.output(output(False, exception=ex)), flush=True) RuntimeWarning: Enable tracemalloc to get the object allocation traceback /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pyatv/scripts/atvscript.py:310: RuntimeWarning: coroutine 'StreamReader.readline' was never awaited print(args.output(output(False, exception=ex)), flush=True) RuntimeWarning: Enable tracemalloc to get the object allocation traceback at Socket.onStdErr (/usr/local/iobroker/iobroker-data/node-red/node_modules/@sebbo2002/node-pyatv/dist/lib/device-events.js:113:27) at Socket.emit (node:events:525:35) at Socket.emit (node:domain:489:12) at addChunk (node:internal/streams/readable:315:12) at readableAddChunk (node:internal/streams/readable:289:9) at Socket.Readable.push (node:internal/streams/readable:228:10) at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
19 Dec 11:47:28 - [error] [atvx-config:Wohnzimmer] Error: Got pyatv Error: Passing coroutines is forbidden, use tasks explicitly. pyatv Stacktrace: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pyatv/scripts/atvscript.py", line 308, in appstart print(args.output(await _handle_command(args, abort_sem, loop)), flush=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pyatv/scripts/atvscript.py", line 204, in _handle_command return await _run_command(atv, args, abort_sem, loop) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pyatv/scripts/atvscript.py", line 228, in _run_command await wait_for_input(loop, abort_sem) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pyatv/scripts/atvscript.py", line 102, in wait_for_input await asyncio.wait( File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/tasks.py", line 415, in wait raise TypeError("Passing coroutines is forbidden, use tasks explicitly.") TypeError: Passing coroutines is forbidden, use tasks explicitly. at parseState (/usr/local/iobroker/iobroker-data/node-red/node_modules/@sebbo2002/node-pyatv/dist/lib/tools.js:219:15) at NodePyATVDeviceEvents.applyPushUpdate (/usr/local/iobroker/iobroker-data/node-red/node_modules/@sebbo2002/node-pyatv/dist/lib/device-events.js:72:53) at NodePyATVDeviceEvents.parsePushUpdate (/usr/local/iobroker/iobroker-data/node-red/node_modules/@sebbo2002/node-pyatv/dist/lib/device-events.js:64:14) at /usr/local/iobroker/iobroker-data/node-red/node_modules/@sebbo2002/node-pyatv/dist/lib/device-events.js:123:36 at Array.forEach (<anonymous>) at Socket.onStdOut (/usr/local/iobroker/iobroker-data/node-red/node_modules/@sebbo2002/node-pyatv/dist/lib/device-events.js:123:18) at Socket.emit (node:events:525:35) at Socket.emit (node:domain:489:12) at addChunk (node:internal/streams/readable:315:12) at readableAddChunk (node:internal/streams/readable:289:9) at Socket.Readable.push (node:internal/streams/readable:228:10) at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
from node-red-contrib-apple-tv-x.
show
/Library/Frameworks/Python.framework/Versions/3.11/bin/atvscript scan
and
/Library/Frameworks/Python.framework/Versions/3.11/bin/atvremote scan
how you install pyatv
on mac?
from node-red-contrib-apple-tv-x.
/Library/Frameworks/Python.framework/Versions/3.11/bin/atvscript scan gives back ->
{"result": "success", "datetime": "2022-12-20T12:24:45.919910+01:00", "devices": [{"name": "Beam", "address": "192.168.178.126", "identifier": "my:mac:adress:of:device", "device_info": {"model": "Unknown", "model_str": "Beam", "operating_system": "Unknown", "version": null}, "services": [{"protocol": "airplay", "port": 7000}, {"protocol": "raop", "port": 7000}]}, {"name": "Studio35", "address": "192.168.178.105", "identifier": "my:mac:adress:of:device", "device_info": {"model": "Gen4", "model_str": "Apple TV 4", "operating_system": "TvOS", "version": "16.1"}, "services": [{"protocol": "companion", "port": 49153}, {"protocol": "airplay", "port": 7000}, {"protocol": "raop", "port": 7000}]}, {"name": "Wohnzimmer", "address": "192.168.178.76", "identifier": "my:mac:adress:of:device", "device_info": {"model": "Gen4", "model_str": "Apple TV 4", "operating_system": "TvOS", "version": "16.1"}, "services": [{"protocol": "companion", "port": 49153}, {"protocol": "airplay", "port": 7000}, {"protocol": "raop", "port": 7000}]}, {"name": "K\u00fcche", "address": "192.168.178.73", "identifier": "my:mac:adress:of:device", "device_info": {"model": "Unknown", "model_str": "One", "operating_system": "Unknown", "version": null}, "services": [{"protocol": "airplay", "port": 7000}, {"protocol": "raop", "port": 7000}]}, {"name": "CG MacBookPro", "address": "192.168.178.47", "identifier": "my:mac:adress:of:device", "device_info": {"model": "Unknown", "model_str": "MacBookPro18,1", "operating_system": "Unknown", "version": null}, "services": [{"protocol": "companion", "port": 54370}, {"protocol": "airplay", "port": 7000}, {"protocol": "raop", "port": 7000}]}, {"name": "Bad", "address": "192.168.178.128", "identifier": "my:mac:adress:of:device", "device_info": {"model": "Unknown", "model_str": "One", "operating_system": "Unknown", "version": null}, "services": [{"protocol": "airplay", "port": 7000}, {"protocol": "raop", "port": 7000}]}, {"name": "B\u00fcro", "address": "192.168.178.84", "identifier": "my:mac:adress:of:device", "device_info": {"model": "Unknown", "model_str": "One", "operating_system": "Unknown", "version": null}, "services": [{"protocol": "airplay", "port": 7000}, {"protocol": "raop", "port": 7000}]}, {"name": "Esszimmer", "address": "192.168.178.127", "identifier": "my:mac:adress:of:device", "device_info": {"model": "Unknown", "model_str": "One", "operating_system": "Unknown", "version": null}, "services": [{"protocol": "airplay", "port": 7000}, {"protocol": "raop", "port": 7000}]}, {"name": "Kinderzimmer", "address": "192.168.178.100", "identifier": "my:mac:adress:of:device", "device_info": {"model": "Unknown", "model_str": "Bookshelf", "operating_system": "Unknown", "version": null}, "services": [{"protocol": "airplay", "port": 7000}, {"protocol": "raop", "port": 7000}]}, {"name": "Schlafzimmer", "address": "192.168.178.88", "identifier": "my:mac:adress:of:device", "device_info": {"model": "Gen4", "model_str": "Apple TV 4", "operating_system": "TvOS", "version": "16.1"}, "services": [{"protocol": "companion", "port": 49153}, {"protocol": "airplay", "port": 7000}, {"protocol": "raop", "port": 7000}]}, {"name": "Move Outdoor", "address": "192.168.178.62", "identifier": "my:mac:adress:of:device", "device_info": {"model": "Unknown", "model_str": "Move", "operating_system": "Unknown", "version": null}, "services": [{"protocol": "airplay", "port": 7000}, {"protocol": "raop", "port": 7000}]}, {"name": "Roam", "address": "192.168.178.146", "identifier": "my:mac:adress:of:device", "device_info": {"model": "Unknown", "model_str": "Roam", "operating_system": "Unknown", "version": null}, "services": [{"protocol": "raop", "port": 7000}, {"protocol": "airplay", "port": 7000}]}, {"name": "Move", "address": "192.168.178.125", "identifier": "my:mac:adress:of:device", "device_info": {"model": "Unknown", "model_str": "Move", "operating_system": "Unknown", "version": null}, "services": [{"protocol": "airplay", "port": 7000}, {"protocol": "raop", "port": 7000}]}, {"name": "Studio35", "address": "192.168.178.83", "identifier": "my:mac:adress:of:device", "device_info": {"model": "Gen4", "model_str": "Apple TV 4", "operating_system": "TvOS", "version": "16.1"}, "services": [{"protocol": "companion", "port": 49153}, {"protocol": "airplay", "port": 7000}, {"protocol": "raop", "port": 7000}]}, {"name": "CG MacBookPro", "address": "192.168.178.21", "identifier": "my:mac:adress:of:device", "device_info": {"model": "Unknown", "model_str": "MacBookPro18,1", "operating_system": "Unknown", "version": null}, "services": [{"protocol": "companion", "port": 54370}, {"protocol": "airplay", "port": 7000}, {"protocol": "raop", "port": 7000}]}]}
/Library/Frameworks/Python.framework/Versions/3.11/bin/atvremote scan gives back ->
(Code Tags not working for the output of atvremote scan...)
` Name: Beam
Model/SW: Beam, Unknown OS
Address: 192.168.178.126
MAC: my:mac:adress:of:device
Deep Sleep: False
Identifiers:
-
my:mac:adress:of:device
-
my:mac:adress:of:device
Services: -
Protocol: AirPlay, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
-
Protocol: RAOP, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
Name: Wohnzimmer
Model/SW: Apple TV 4, tvOS 16.1
Address: 192.168.178.76
MAC: my:mac:adress:of:device
Deep Sleep: False
Identifiers: -
my:mac:adress:of:device
-
my:mac:adress:of:device
Services: -
Protocol: Companion, Port: 49153, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory
-
Protocol: AirPlay, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory
-
Protocol: RAOP, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory
Name: Studio35
Model/SW: Apple TV 4, tvOS 16.1
Address: 192.168.178.105
MAC: my:mac:adress:of:device
Deep Sleep: False
Identifiers: -
my:mac:adress:of:device
-
my:mac:adress:of:device
Services: -
Protocol: Companion, Port: 49153, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory
-
Protocol: AirPlay, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory
-
Protocol: RAOP, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory
Name: Küche
Model/SW: One, Unknown OS
Address: 192.168.178.73
MAC: my:mac:adress:of:device
Deep Sleep: False
Identifiers: -
my:mac:adress:of:device
-
my:mac:adress:of:device
Services: -
Protocol: AirPlay, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
-
Protocol: RAOP, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
Name: Bad
Model/SW: One, Unknown OS
Address: 192.168.178.128
MAC: my:mac:adress:of:device
Deep Sleep: False
Identifiers: -
my:mac:adress:of:device
-
my:mac:adress:of:device
Services: -
Protocol: AirPlay, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
-
Protocol: RAOP, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
Name: Büro
Model/SW: One, Unknown OS
Address: 192.168.178.84
MAC: my:mac:adress:of:device
Deep Sleep: False
Identifiers: -
my:mac:adress:of:device
-
my:mac:adress:of:device
Services: -
Protocol: AirPlay, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
-
Protocol: RAOP, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
Name: Move Outdoor
Model/SW: Move, Unknown OS
Address: 192.168.178.62
MAC: my:mac:adress:of:device
Deep Sleep: False
Identifiers: -
my:mac:adress:of:device
-
my:mac:adress:of:device
Services: -
Protocol: AirPlay, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
-
Protocol: RAOP, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
Name: Kinderzimmer
Model/SW: Bookshelf, Unknown OS
Address: 192.168.178.100
MAC: my:mac:adress:of:device
Deep Sleep: False
Identifiers: -
my:mac:adress:of:device
-
my:mac:adress:of:device
Services: -
Protocol: AirPlay, Port: 7000, Credentials: None, Requires Password: True, Password: None, Pairing: NotNeeded
-
Protocol: RAOP, Port: 7000, Credentials: None, Requires Password: True, Password: None, Pairing: NotNeeded
Name: Esszimmer
Model/SW: One, Unknown OS
Address: 192.168.178.127
MAC: my:mac:adress:of:device
Deep Sleep: False
Identifiers: -
my:mac:adress:of:device
-
my:mac:adress:of:device
Services: -
Protocol: AirPlay, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
-
Protocol: RAOP, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
Name: Roam
Model/SW: Roam, Unknown OS
Address: 192.168.178.146
MAC: my:mac:adress:of:device
Deep Sleep: False
Identifiers: -
my:mac:adress:of:device
-
my:mac:adress:of:device
Services: -
Protocol: AirPlay, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
-
Protocol: RAOP, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
Name: CG MacBookPro
Model/SW: MacBookPro18,1, Unknown OS
Address: 192.168.178.47
MAC: my:mac:adress:of:device
Deep Sleep: False
Identifiers: -
my:mac:adress:of:device
-
my:mac:adress:of:device
Services: -
Protocol: Companion, Port: 54370, Credentials: None, Requires Password: False, Password: None, Pairing: Unsupported
-
Protocol: AirPlay, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory
-
Protocol: RAOP, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory
Name: Move
Model/SW: Move, Unknown OS
Address: 192.168.178.125
MAC: my:mac:adress:of:device
Deep Sleep: False
Identifiers: -
my:mac:adress:of:device
-
my:mac:adress:of:device
Services: -
Protocol: RAOP, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
-
Protocol: AirPlay, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
Name: Studio35
Model/SW: Apple TV 4, tvOS 16.1
Address: 192.168.178.83
MAC: my:mac:adress:of:device
Deep Sleep: False
Identifiers: -
my:mac:adress:of:device
-
my:mac:adress:of:device
Services: -
Protocol: Companion, Port: 49153, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory
-
Protocol: AirPlay, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory
-
Protocol: RAOP, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory
Name: CG MacBookPro
Model/SW: MacBookPro18,1, Unknown OS
Address: 192.168.178.21
MAC: my:mac:adress:of:device
Deep Sleep: False
Identifiers: -
my:mac:adress:of:device
-
my:mac:adress:of:device
Services: -
Protocol: Companion, Port: 54370, Credentials: None, Requires Password: False, Password: None, Pairing: Unsupported
-
Protocol: AirPlay, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory
-
Protocol: RAOP, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory
Name: Schlafzimmer
Model/SW: Apple TV 4, tvOS 16.1
Address: 192.168.178.88
MAC: my:mac:adress:of:device
Deep Sleep: False
Identifiers: -
my:mac:adress:of:device
-
my:mac:adress:of:device
Services: -
Protocol: Companion, Port: 49153, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory
-
Protocol: AirPlay, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory
-
Protocol: RAOP, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory`
installed pyatv with pip install pyatv
or pip3 install pyatv
from node-red-contrib-apple-tv-x.
test for macos 13.1 , install Xcode Command Line Tools
free@air node-red % pwd
/Users/free/Downloads/node-red
free@air node-red % ll
total 416
drwxr-xr-x 6 free staff 192B Dec 27 23:02 ./
-rw-r--r-- 1 free staff 202K Dec 27 22:57 package-lock.json
drwxr-xr-x 250 free staff 7.8K Dec 27 22:56 node_modules/
-rw-r--r-- 1 free staff 53B Dec 27 22:56 package.json
drwx------+ 17 free staff 544B Dec 27 22:55 ../
free@air node-red % whereis python3
python3: /usr/bin/python3
free@air node-red % python3 -m venv simple_env
free@air node-red % ll
total 416
drwxr-xr-x 7 free staff 224B Dec 27 23:05 simple_env/
drwxr-xr-x 6 free staff 192B Dec 27 23:02 ./
-rw-r--r-- 1 free staff 202K Dec 27 22:57 package-lock.json
drwxr-xr-x 250 free staff 7.8K Dec 27 22:56 node_modules/
-rw-r--r-- 1 free staff 53B Dec 27 22:56 package.json
drwx------+ 17 free staff 544B Dec 27 22:55 ../
free@air node-red % source ./simple_env/bin/activate
(simple_env) free@air node-red % pip3 install --upgrade pyatv
Collecting pyatv
Downloading pyatv-0.10.3-py3-none-any.whl (402 kB)
|████████████████████████████████| 402 kB 429 kB/s
Collecting mediafile>=0.8.1
Downloading mediafile-0.11.0-py3-none-any.whl (21 kB)
Collecting miniaudio>=1.45
Downloading miniaudio-1.55.tar.gz (685 kB)
|████████████████████████████████| 685 kB 2.1 MB/s
Collecting cryptography>=36.0.2
Downloading cryptography-38.0.4-cp36-abi3-macosx_10_10_universal2.whl (5.4 MB)
|████████████████████████████████| 5.4 MB 4.2 MB/s
Collecting aiohttp<5,>=3.8.1
Downloading aiohttp-3.8.3-cp39-cp39-macosx_11_0_arm64.whl (337 kB)
|████████████████████████████████| 337 kB 5.9 MB/s
Collecting protobuf>=3.19.3
Downloading protobuf-4.21.12-cp37-abi3-macosx_10_9_universal2.whl (486 kB)
|████████████████████████████████| 486 kB 5.8 MB/s
Collecting ifaddr>=0.1.7
Downloading ifaddr-0.2.0-py3-none-any.whl (12 kB)
Collecting requests>=2.23.0
Downloading requests-2.28.1-py3-none-any.whl (62 kB)
|████████████████████████████████| 62 kB 3.3 MB/s
Collecting chacha20poly1305-reuseable>=0.0.3
Downloading chacha20poly1305_reuseable-0.0.4-py3-none-any.whl (10 kB)
Collecting async-timeout>=4.0.2
Downloading async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting zeroconf>=0.38.1
Downloading zeroconf-0.47.1.tar.gz (60 kB)
|████████████████████████████████| 60 kB 5.3 MB/s
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Collecting bitarray>=2.1.2
Downloading bitarray-2.6.1-cp39-cp39-macosx_11_0_arm64.whl (104 kB)
|████████████████████████████████| 104 kB 7.1 MB/s
Collecting srptools>=0.2.0
Downloading srptools-1.0.1-py2.py3-none-any.whl (13 kB)
Collecting charset-normalizer<3.0,>=2.0
Downloading charset_normalizer-2.1.1-py3-none-any.whl (39 kB)
Collecting multidict<7.0,>=4.5
Downloading multidict-6.0.4-cp39-cp39-macosx_11_0_arm64.whl (29 kB)
Collecting frozenlist>=1.1.1
Downloading frozenlist-1.3.3-cp39-cp39-macosx_11_0_arm64.whl (35 kB)
Collecting yarl<2.0,>=1.0
Downloading yarl-1.8.2-cp39-cp39-macosx_11_0_arm64.whl (57 kB)
|████████████████████████████████| 57 kB 6.8 MB/s
Collecting aiosignal>=1.1.2
Downloading aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Collecting attrs>=17.3.0
Downloading attrs-22.2.0-py3-none-any.whl (60 kB)
|████████████████████████████████| 60 kB 6.0 MB/s
Collecting cffi>=1.12
Using cached cffi-1.15.1-cp39-cp39-macosx_11_0_arm64.whl (174 kB)
Collecting pycparser
Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Collecting six>=1.9
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting mutagen>=1.46
Downloading mutagen-1.46.0-py3-none-any.whl (193 kB)
|████████████████████████████████| 193 kB 7.4 MB/s
Collecting wheel
Using cached wheel-0.38.4-py3-none-any.whl (36 kB)
Collecting certifi>=2017.4.17
Downloading certifi-2022.12.7-py3-none-any.whl (155 kB)
|████████████████████████████████| 155 kB 7.6 MB/s
Collecting urllib3<1.27,>=1.21.1
Downloading urllib3-1.26.13-py2.py3-none-any.whl (140 kB)
|████████████████████████████████| 140 kB 7.0 MB/s
Collecting idna<4,>=2.5
Downloading idna-3.4-py3-none-any.whl (61 kB)
|████████████████████████████████| 61 kB 229 kB/s
Using legacy 'setup.py install' for miniaudio, since package 'wheel' is not installed.
Building wheels for collected packages: zeroconf
Building wheel for zeroconf (PEP 517) ... done
Created wheel for zeroconf: filename=zeroconf-0.47.1-cp39-cp39-macosx_13_0_arm64.whl size=1165230 sha256=5a0b6bacaad727fee92d896d416ba86c56047cb404297c659d585bd29c4bf94a
Stored in directory: /Users/free/Library/Caches/pip/wheels/32/5a/78/9279cb6e752e9597b2e1537bc9e321da90005f829f7bcd8434
Successfully built zeroconf
Installing collected packages: pycparser, multidict, idna, frozenlist, cffi, yarl, wheel, urllib3, six, mutagen, ifaddr, cryptography, charset-normalizer, certifi, attrs, async-timeout, aiosignal, zeroconf, srptools, requests, protobuf, miniaudio, mediafile, chacha20poly1305-reuseable, bitarray, aiohttp, pyatv
Running setup.py install for miniaudio ... done
Successfully installed aiohttp-3.8.3 aiosignal-1.3.1 async-timeout-4.0.2 attrs-22.2.0 bitarray-2.6.1 certifi-2022.12.7 cffi-1.15.1 chacha20poly1305-reuseable-0.0.4 charset-normalizer-2.1.1 cryptography-38.0.4 frozenlist-1.3.3 idna-3.4 ifaddr-0.2.0 mediafile-0.11.0 miniaudio-1.55 multidict-6.0.4 mutagen-1.46.0 protobuf-4.21.12 pyatv-0.10.3 pycparser-2.21 requests-2.28.1 six-1.16.0 srptools-1.0.1 urllib3-1.26.13 wheel-0.38.4 yarl-1.8.2 zeroconf-0.47.1
WARNING: You are using pip version 21.2.4; however, version 22.3.1 is available.
You should consider upgrading via the '/Users/free/Downloads/node-red/simple_env/bin/python3 -m pip install --upgrade pip' command.
(simple_env) free@air node-red % deactivate
free@air node-red %
free@air node-red % ll /Users/free/Downloads/node-red/simple_env/bin
total 176
-rwxr-xr-x 1 free staff 259B Dec 27 23:05 atvscript*
drwxr-xr-x 25 free staff 800B Dec 27 23:05 ./
-rwxr-xr-x 1 free staff 259B Dec 27 23:05 atvremote*
-rwxr-xr-x 1 free staff 258B Dec 27 23:05 atvproxy*
-rwxr-xr-x 1 free staff 256B Dec 27 23:05 atvlog*
-rwxr-xr-x 1 free staff 248B Dec 27 23:05 srptools*
-rwxr-xr-x 1 free staff 281B Dec 27 23:05 normalizer*
-rwxr-xr-x 1 free staff 277B Dec 27 23:05 mutagen-pony*
-rwxr-xr-x 1 free staff 280B Dec 27 23:05 mutagen-inspect*
-rwxr-xr-x 1 free staff 274B Dec 27 23:05 moggsplit*
-rwxr-xr-x 1 free staff 271B Dec 27 23:05 mid3v2*
-rwxr-xr-x 1 free staff 274B Dec 27 23:05 mid3iconv*
-rwxr-xr-x 1 free staff 271B Dec 27 23:05 mid3cp*
drwxr-xr-x 7 free staff 224B Dec 27 23:05 ../
-rwxr-xr-x 1 free staff 245B Dec 27 23:05 wheel*
-rw-r--r-- 1 free staff 1.9K Dec 27 23:02 activate
-rw-r--r-- 1 free staff 8.6K Dec 27 23:02 Activate.ps1
-rw-r--r-- 1 free staff 871B Dec 27 23:02 activate.csh
-rw-r--r-- 1 free staff 2.0K Dec 27 23:02 activate.fish
-rwxr-xr-x 1 free staff 258B Dec 27 23:02 pip3.9*
-rwxr-xr-x 1 free staff 258B Dec 27 23:02 pip3*
-rwxr-xr-x 1 free staff 258B Dec 27 23:02 pip*
lrwxr-xr-x 1 free staff 7B Dec 27 23:02 python3.9@ -> python3
lrwxr-xr-x 1 free staff 7B Dec 27 23:02 python@ -> python3
lrwxr-xr-x 1 free staff 58B Dec 27 23:02 python3@ -> /Applications/Xcode.app/Contents/Developer/usr/bin/python3
free@air node-red % node node_modules/.bin/node-red
27 Dec 23:07:39 - [info]
Welcome to Node-RED
===================
27 Dec 23:07:39 - [info] Node-RED version: v3.0.2
27 Dec 23:07:39 - [info] Node.js version: v18.12.1
27 Dec 23:07:39 - [info] Darwin 22.2.0 arm64 LE
27 Dec 23:07:39 - [info] Loading palette nodes
27 Dec 23:07:40 - [info] Settings file : /Users/free/.node-red/settings.js
27 Dec 23:07:40 - [info] Context store : 'default' [module=memory]
27 Dec 23:07:40 - [info] User directory : /Users/free/.node-red
27 Dec 23:07:40 - [warn] Projects disabled : editorTheme.projects.enabled=false
27 Dec 23:07:40 - [info] Flows file : /Users/free/.node-red/flows.json
27 Dec 23:07:40 - [info] Creating new flow file
27 Dec 23:07:40 - [warn]
---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.
If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.
You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------
27 Dec 23:07:40 - [warn] Encrypted credentials not found
27 Dec 23:07:40 - [info] Starting flows
27 Dec 23:07:40 - [info] Started flows
27 Dec 23:07:40 - [info] Server now running at http://127.0.0.1:1880/
27 Dec 23:08:27 - [info] Installing module: node-red-contrib-apple-tv-x, version: 1.0.3
27 Dec 23:08:34 - [info] Installed module: node-red-contrib-apple-tv-x
27 Dec 23:08:34 - [info] Added node types:
27 Dec 23:08:34 - [info] - node-red-contrib-apple-tv-x:atvx-config
27 Dec 23:08:34 - [info] - node-red-contrib-apple-tv-x:atvx-in
27 Dec 23:08:34 - [info] - node-red-contrib-apple-tv-x:atvx-out
^C27 Dec 23:09:43 - [info] Stopping flows
27 Dec 23:09:43 - [info] Stopped flows
free@air node-red %
enter path and click "search"
all work
from node-red-contrib-apple-tv-x.
Thanks for your reply and sorry for the dumb question - but what I have exactly to do?
With only the commands I can't comprehend for what the particular commands are intended.
node-red % pwd
is giving me -bash: node-red: command not found
also node-red % whereis python3
Xcode was already installed.
from node-red-contrib-apple-tv-x.
i can't help with macos, can you put through brew.sh
from node-red-contrib-apple-tv-x.
Related Issues (20)
- launch_app not working in 0.5.1 HOT 2
- Could not install HOT 2
- can't pair airplay HOT 7
- rustup.rs 404 ('armv7-unknown-linux-musleabihf' not found) HOT 2
- No matching distribution found for audio-metadata>=0.11.1 HOT 4
- "Error: power_state is not supported" HOT 1
- Node Red fails after installing node HOT 3
- Add feature: cover url and set position
- Feature request: playing/idle/pause status HOT 3
- Node Red on Windows
- Feature request: Show on/off Standby Status HOT 1
- Can the reboot command be added please? HOT 3
- What to write in field path of OUT node?
- Volume Error
- Pairing problem HOT 5
- Pairing code / PIN doesn't appear HOT 3
- Appltv 4k not recognised in docker HOT 3
- "Error: Unsupported key value skip_forward!" HOT 2
- Possible to manually add ATV ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-red-contrib-apple-tv-x.