firstone / restremote Goto Github PK
View Code? Open in Web Editor NEWRESTful API based universal remote control
License: MIT License
RESTful API based universal remote control
License: MIT License
Throwing an error when trying to discover Chromecast devices
Current Version: 0.9.1
2022-06-05 08:59:44,769 Controller polyinterface DEBUG remotecontroller:discover: Running discovery for android
2022-06-05 08:59:44,769 Controller polyinterface DEBUG remotecontroller:discover: Running discovery for web_os
2022-06-05 08:59:44,769 Controller polyinterface DEBUG remotecontroller:discover: Running discovery for tivo_ip
2022-06-05 08:59:44,769 Controller polyinterface DEBUG remotecontroller:discover: Running discovery for denon_avr
2022-06-05 08:59:44,770 Controller polyinterface DEBUG remotecontroller:discover: Running discovery for onkyo_avr
2022-06-05 08:59:44,770 Controller polyinterface DEBUG remotecontroller:discover: Running discovery for esp8266
2022-06-05 08:59:44,770 Controller polyinterface DEBUG remotecontroller:discover: Running discovery for chromecast
2022-06-05 08:59:49,838 Controller polyinterface ERROR polyinterface:_parseInput: _parseInput: failed controller.runCmd(DISCOVER) 'Chromecast' object has no attribute 'device'
Traceback (most recent call last):
File "/home/pi/.local/lib/python3.9/site-packages/polyinterface/polyinterface.py", line 842, in _parseInput
self.nodes[input[key]['address']].runCmd(input[key])
File "/home/pi/.local/lib/python3.9/site-packages/polyinterface/polyinterface.py", line 745, in runCmd
fun(self, command)
File "/home/pi/.polyglot/nodeservers/AVRemote/poly/remotecontroller.py", line 188, in discover
devices = self.get_device_driver(driverName,
File "/home/pi/.polyglot/nodeservers/AVRemote/drivers/chromecast.py", line 143, in discoverDevices
friendly_name = cast.device.friendly_name
AttributeError: 'Chromecast' object has no attribute 'device'```
i'm on mac osx 11.6.5
$ which python3
/Library/Frameworks/Python.framework/Versions/3.6/bin/python3
$ python3 restremote.py -c ./cfg/config.yaml -sc ./cfg/server_config.yaml
2022-04-28 14:25:05,563 INFO Starting with config file ./cfg/config.yaml
Traceback (most recent call last):
File "restremote.py", line 99, in <module>
RESTRemote()
File "/Users/eflister/Library/Python/3.6/lib/python/site-packages/click/core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "/Users/eflister/Library/Python/3.6/lib/python/site-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/Users/eflister/Library/Python/3.6/lib/python/site-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/eflister/Library/Python/3.6/lib/python/site-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "restremote.py", line 72, in RESTRemote
module = importlib.import_module('drivers.' + driverName)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/Users/eflister/Downloads/RESTRemote-master/drivers/chromecast.py", line 1, in <module>
import pychromecast
File "/Users/eflister/Library/Python/3.6/lib/python/site-packages/pychromecast/__init__.py", line 14, in <module>
from . import socket_client
File "/Users/eflister/Library/Python/3.6/lib/python/site-packages/pychromecast/socket_client.py", line 24, in <module>
from .controllers import BaseController
File "/Users/eflister/Library/Python/3.6/lib/python/site-packages/pychromecast/controllers/__init__.py", line 4
from __future__ import annotations
^
SyntaxError: future feature annotations is not defined
in config.yaml
i set enable: true
for the tv. i'm trying to control an lg c1. i haven't figured out the TV's MAC yet.
I have installed the code and been able to get the denon_avr driver to function.
Your tivo driver is producing an error and not working. I have an older version of this code and it still works. Wondering if you have tested that portion lately?
Getting an error when trying to use the set channel function:
command.get('value'))
File "/var/polyglot/nodeservers/AVRemote/drivers/base_driver.py", line 107, in executeCommand
result['output'] = self.sendCommandRaw(commandName, command, args)
File "/var/polyglot/nodeservers/AVRemote/drivers/tivo_ip.py", line 30, in sendCommandRaw
conn.send(command['code'].encode())
KeyError: 'code'
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.