aschaeffer / sony-av-indicator Goto Github PK
View Code? Open in Web Editor NEWI own a SONY STR DN 860 and want to control volume and input source from my computer!
License: GNU General Public License v3.0
I own a SONY STR DN 860 and want to control volume and input source from my computer!
License: GNU General Public License v3.0
Trying to run this on Fedora 26 and I get:
ModuleNotFoundError: No module named 'indicator'
So I tried:
export PYTHONPATH='/usr/lib/python3.6/site-packages/sonyavindicator/'
sonyavindicator
Then I get:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/sonyavindicator/__main__.py", line 8, in <module>
from indicator import SonyAvIndicator
File "/usr/lib/python3.6/site-packages/sonyavindicator/indicator.py", line 24, in <module>
gi.require_version("AppIndicator3", "0.1")
File "/usr/lib64/python3.6/site-packages/gi/__init__.py", line 118, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace AppIndicator3 not available
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/bin/sonyavindicator", line 11, in <module>
load_entry_point('sonyavindicator==0.9.0', 'console_scripts', 'sonyavindicator')()
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 563, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2651, in load_entry_point
return ep.load()
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2305, in load
return self.resolve()
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2311, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/python3.6/site-packages/sonyavindicator/__main__.py", line 10, in <module>
from sonyavindicator.indicator import SonyAvIndicator
File "/usr/lib/python3.6/site-packages/sonyavindicator/indicator.py", line 24, in <module>
gi.require_version("AppIndicator3", "0.1")
File "/usr/lib64/python3.6/site-packages/gi/__init__.py", line 118, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace AppIndicator3 not available
Any ideas?
When the app first starts it always shows the sound field as "2 channels" rather than the actual sound field the receiver is set to. Looking at the debug in the console it seems the app is not requesting/being sent information about the should field until it is actually toggled.
I also seem to have triggered a strange bug where if I cycle through the sound fields from the receiver remote it will eventually confuse the app and all of the select box lists will stop updating. They will become ticked if you click them and still send the change to the receiver, but they are never updated or unticked when selecting something else until the app is re-launched.
Notifications do still come through in the system tray.
I'm not sure if this an issue caused by running the app on Fedora 26 or a general issue, so I raised it separate from my Fedora thread in case its a general issue.
Hi. Very good and usefull program.
Have you any idea, how it can will be ported to windows?
Hey, I have a STR-DN1060 and I'm really keen to get this working. Tried installing on Mac and then on my Raspberry Pi (Raspbian) and both times I get the error: SyntaxError: Missing parentheses in call to 'print'
I'm not familiar with Python but I understand this is some sort of issue between Python 2 and 3 which apparently are hugely different. I imagine this particular issue is easily fixed by adding the "required parenthesis" but I didn't want to go down the road of hacking away at your code until I got your opinion!
Do you know if this is something that wouldn't be too hard to make work? I'm more than happy to thoroughly test everything with my 1060 and help with compatibility.
Thanks!
edit: full debug
Traceback (most recent call last):
File "/usr/local/bin/sonyavindicator", line 9, in <module>
load_entry_point('sonyavindicator==0.9.0', 'console_scripts', 'sonyavindicator')()
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 356, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2476, in load_entry_point
return ep.load()
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2190, in load
['__name__'])
File "/usr/local/lib/python3.4/dist-packages/sonyavindicator/__main__.py", line 10, in <module>
from sonyavindicator.indicator import SonyAvIndicator
File "/usr/local/lib/python3.4/dist-packages/sonyavindicator/indicator.py", line 12, in <module>
import gi
File "/usr/local/lib/python3.4/dist-packages/gi/__init__.py", line 39
print url
^
SyntaxError: Missing parentheses in call to 'print'
edit: format fix :-)
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.