Code Monkey home page Code Monkey logo

broadlink-rm-rest's People

Contributors

raman325 avatar renovate[bot] avatar sourcery-ai[bot] avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

broadlink-rm-rest's Issues

Error when I create a command

Hello

When I launch the request to register an IR command, an error appears. The blasters still go into receive mode and seem to receive the IR code but the response to the request is INTERNAL SERVER ERROR. I specify that the error appears before the blasters has received the IR code and that the INTERNAL SERVER ERROR appears when the blaster seems to receive the IR code.

[2021-02-08 16:44:48 +0100] [1887] [ERROR] Error handling request /targets/yahama/commands/test?blaster_attr=ip&blaster_value=192.168.31.83 Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/gunicorn/workers/sync.py", line 134, in handle self.handle_request(listener, req, client, addr) File "/usr/local/lib/python3.7/dist-packages/gunicorn/workers/sync.py", line 175, in handle_request respiter = self.wsgi(environ, resp.start_response) File "/usr/local/lib/python3.7/dist-packages/falcon/api.py", line 269, in __call__ responder(req, resp, **params) File "/home/pi/broadlink-rm-rest/app/app.py", line 294, in on_put value = blaster.get_command() File "/home/pi/broadlink-rm-rest/app/db_helpers/blaster_db.py", line 95, in get_command value = device.check_data() File "/usr/local/lib/python3.7/dist-packages/broadlink/remote.py", line 26, in check_data return self._send(0x4) File "/usr/local/lib/python3.7/dist-packages/broadlink/remote.py", line 20, in _send check_error(resp[0x22:0x24]) File "/usr/local/lib/python3.7/dist-packages/broadlink/exceptions.py", line 137, in check_error raise exception(error_code) broadlink.exceptions.ReadError: [Errno -10] Read error

Thanks you for your times.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

dockerfile
Dockerfile
  • python 3-slim
pip_requirements
requirements-dev.txt
requirements.txt

  • Check this box to trigger a request for Renovate to run again on this repository

AC controlling issue

Can we control AC using this? I used other plugins and when I learned the temperature of the AC, it saved the current fan speed, temperature, and all other settings. I just needed the temperature but when I am operating the state that is saved on the exact state is set in the AC.

Will this plugin work fine in the above case? Kindly revert me. I have used some other plugins and I am tired of doing those. Kindly help me to solve this.

Error when the engine starts

Hello, thanks you so mutch for your excellent work !!

But I cannot start the server, i am getting this error, i am not using docker is it serious ?

`[2021-01-26 18:06:31 +0100] [2204] [INFO] Starting gunicorn 20.0.4
[2021-01-26 18:06:31 +0100] [2204] [INFO] Listening at: http://0.0.0.0:8000 (2204)
[2021-01-26 18:06:31 +0100] [2204] [INFO] Using worker: sync
[2021-01-26 18:06:31 +0100] [2207] [INFO] Booting worker with pid: 2207
[2021-01-26 18:06:34 +0100] [2207] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/peewee.py", line 3129, in execute_sql
cursor.execute(sql, params or ())
sqlite3.OperationalError: no such table: command

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/gunicorn/arbiter.py", line 583, in spawn_worker
worker.init_process()
File "/usr/local/lib/python3.7/dist-packages/gunicorn/workers/base.py", line 119, in init_process
self.load_wsgi()
File "/usr/local/lib/python3.7/dist-packages/gunicorn/workers/base.py", line 144, in load_wsgi
self.wsgi = self.app.wsgi()
File "/usr/local/lib/python3.7/dist-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/usr/local/lib/python3.7/dist-packages/gunicorn/app/wsgiapp.py", line 49, in load
return self.load_wsgiapp()
File "/usr/local/lib/python3.7/dist-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
return util.import_app(self.app_uri)
File "/usr/local/lib/python3.7/dist-packages/gunicorn/util.py", line 358, in import_app
mod = importlib.import_module(module)
File "/usr/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/pi/broadlink-rm-rest/app/app.py", line 358, in
for command in command_db.Command.select():
File "/usr/local/lib/python3.7/dist-packages/peewee.py", line 6850, in iter
self.execute()
File "/usr/local/lib/python3.7/dist-packages/peewee.py", line 1898, in inner
return method(self, database, *args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/peewee.py", line 1969, in execute
return self._execute(database)
File "/usr/local/lib/python3.7/dist-packages/peewee.py", line 2141, in _execute
cursor = database.execute(self)
File "/usr/local/lib/python3.7/dist-packages/peewee.py", line 3142, in execute
return self.execute_sql(sql, params, commit=commit)
File "/usr/local/lib/python3.7/dist-packages/peewee.py", line 3136, in execute_sql
self.commit()
File "/usr/local/lib/python3.7/dist-packages/peewee.py", line 2902, in exit
reraise(new_type, new_type(exc_value, *exc_args), traceback)
File "/usr/local/lib/python3.7/dist-packages/peewee.py", line 185, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.7/dist-packages/peewee.py", line 3129, in execute_sql
cursor.execute(sql, params or ())
peewee.OperationalError: no such table: command
[2021-01-26 18:06:34 +0100] [2207] [INFO] Worker exiting (pid: 2207)
[2021-01-26 18:06:35 +0100] [2204] [INFO] Shutting down: Master
[2021-01-26 18:06:35 +0100] [2204] [INFO] Reason: Worker failed to boot.`

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.