Hi all.
I am trying to integrate songpal and it doesn’t seem to be working.
I think that when integrating it, a new media player object should appear. This did not happen.
I then tried to use songpal from python but I am not doing something right. If someone used it, could you help me?
Thanks you
C:\Users\Milena>songpal discover
Discovering for 5 seconds
INFO:songpal.discovery:Discovering for 5 seconds
Found BDV-N9200W - BDV-2014
* API version: 1.0
* Endpoint: http://192.168.0.12:10000/sony
Services:
- Service: guide
- Service: system
- Service: illumination
- Service: audio
[UPnP]
* URL: http://192.168.0.12:64321/bdv-nv-ms.xml
* UDN: uuid:00000001-0000-1010-8000-045d4b136525
Services:
- Service: urn:schemas-upnp-org:service:ContentDirectory:1
- Service: urn:schemas-upnp-org:service:ConnectionManager:1
- Service: urn:schemas-sony-com:service:ScalarWebAPI:1
C:\Users\Milena>songpal bluetooth off
Endpoint is required except when with 'discover'!
Traceback (most recent call last):
File "c:\users\milena\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\milena\appdata\local\programs\python\python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\Milena\AppData\Local\Programs\Python\Python39\Scripts\songpal.exe\__main__.py", line 7, in <module>
File "c:\users\milena\appdata\local\programs\python\python39\lib\site-packages\click\core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "c:\users\milena\appdata\local\programs\python\python39\lib\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "c:\users\milena\appdata\local\programs\python\python39\lib\site-packages\click\core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\users\milena\appdata\local\programs\python\python39\lib\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\users\milena\appdata\local\programs\python\python39\lib\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "c:\users\milena\appdata\local\programs\python\python39\lib\site-packages\click\decorators.py", line 69, in new_func
raise RuntimeError(
RuntimeError: Managed to invoke callback without a context object of type 'Device' existing
There is another method but it doesn’t work. I just wanted to see if the command worked as it was written
It says that the json is wrong
curl -i -d '{ "method":"setSoundSettings", "id":5, "params":[ { "settings":[ { "value":"clearAudio", "target":"soundField" } ] } ], "version":"1.1" }' http://192.168.0.12:10000/sony/audio
curl: (3) Port number ended with 's'
curl: (3) Port number ended with ','
curl: (3) [globbing] bad range specification in column 9
curl: (3) [globbing] unmatched brace in column 1
curl: (3) [globbing] bad range specification in column 11
curl: (3) [globbing] unmatched brace in column 1
curl: (3) Port number ended with 'c'
curl: (3) Port number ended with 's'
curl: (3) [globbing] unmatched close brace/bracket in column 1
curl: (3) [globbing] unmatched close brace/bracket in column 1
curl: (3) [globbing] unmatched close brace/bracket in column 1
curl: (3) [globbing] unmatched close brace/bracket in column 1
curl: (3) Port number ended with '.'
curl: (3) [globbing] unmatched close brace/bracket in column 1