Harmony Hub mit pyharmony
Verfasst: Sonntag 17. Mai 2015, 15:36
Hallo
Ich habe ein Harmony Hub um meine Geräte mit der App zu steuern.
http://www.logitech.com/de-de/product/h ... ub?crid=60
Ich möchte nun auch einen Raspberry Pi mit dem Hub steuern.
Dazu habe ich das Programm pyharmony https://github.com/rkitover/pyharmony auf meinen Pi
unter /var/myharmony auf meinen Raspberry Pi übertragen.
Das Script starte ich erstmals mit "root@raspberrypi:/var/myharmony# PYTHONPATH="." python harmony -h"
als Ausgabe bekomme ich
Also soweit alles o.k.
Rufe ich das Script so auf :
"root@raspberrypi:/var/myharmony# PYTHONPATH="." python harmony --email xxxxxx@gmx.de --password xxxxxxxxxxx --harmony_ip 192.168.2.61 show_config"
bekomme ich folgende Ausgabe als Fehlermeldung, die ich als Python Anfänger (mit Erfahrung in Perl und PHP) nicht deuten kann.
Was kann ich machen um die Fehler abzustellen?
Gruß NetFritz
Ich habe ein Harmony Hub um meine Geräte mit der App zu steuern.
http://www.logitech.com/de-de/product/h ... ub?crid=60
Ich möchte nun auch einen Raspberry Pi mit dem Hub steuern.
Dazu habe ich das Programm pyharmony https://github.com/rkitover/pyharmony auf meinen Pi
unter /var/myharmony auf meinen Raspberry Pi übertragen.
Das Script starte ich erstmals mit "root@raspberrypi:/var/myharmony# PYTHONPATH="." python harmony -h"
als Ausgabe bekomme ich
Code: Alles auswählen
usage: harmony [-h] --email EMAIL --password PASSWORD --harmony_ip HARMONY_IP
[--harmony_port HARMONY_PORT]
[--loglevel {DEBUG,INFO,WARNING,CRITICAL,ERROR}]
{show_config,show_current_activity,start_activity,sync,turn_off,send_command}
...
pyharmony utility script
positional arguments:
{show_config,show_current_activity,start_activity,sync,turn_off,send_command}
show_config Print the Harmony device configuration.
show_current_activity
Print the current activity config.
start_activity Switch to a different activity.
sync Sync the harmony.
turn_off Send a turn off command to the harmony.
send_command Send a simple command.
optional arguments:
-h, --help show this help message and exit
--harmony_port HARMONY_PORT
Network port that the Harmony is listening on.
(default: 5222)
--loglevel {DEBUG,INFO,WARNING,CRITICAL,ERROR}
Logging level to print to the console. (default: INFO)
required arguments:
--email EMAIL Logitech username in the form of an email address.
(default: None)
--password PASSWORD Logitech password. (default: None)
--harmony_ip HARMONY_IP
IP Address of the Harmony device. (default: None)
Rufe ich das Script so auf :
"root@raspberrypi:/var/myharmony# PYTHONPATH="." python harmony --email xxxxxx@gmx.de --password xxxxxxxxxxx --harmony_ip 192.168.2.61 show_config"
bekomme ich folgende Ausgabe als Fehlermeldung, die ich als Python Anfänger (mit Erfahrung in Perl und PHP) nicht deuten kann.
Code: Alles auswählen
INFO: requests.packages.urllib3.connectionpool Starting new HTTPS connection (1): svcs.myharmony.com
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/var/myharmony/harmony/__main__.py", line 230, in <module>
main()
File "/var/myharmony/harmony/__main__.py", line 227, in main
sys.exit(args.func(args))
File "/var/myharmony/harmony/__main__.py", line 48, in show_config
client = get_client(args)
File "/var/myharmony/harmony/__main__.py", line 41, in get_client
token = login_to_logitech(args)
File "/var/myharmony/harmony/__main__.py", line 24, in login_to_logitech
token = auth.login(args.email, args.password)
File "/var/myharmony/harmony/auth.py", line 41, in login
result = resp.json().get('GetUserAuthTokenResult', None)
TypeError: 'dict' object is not callable
Gruß NetFritz