Code Monkey home page Code Monkey logo

restremote's People

Contributors

firstone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

restremote's Issues

Error on Chromecast discovery

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'```

`future feature annotations is not defined` when i try to start the server

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.

tivo device is not working properly

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?

set_channel function not working

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'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.