Code Monkey home page Code Monkey logo

Comments (3)

Stupco avatar Stupco commented on June 12, 2024

Logs below:
[I.P.ADD.R.ESS] - - [15/Jun/2020 02:46:12] "GET /rf/learn?type=0x27a9&host=192.168.1.142&mac=780f776317bc HTTP/1.1" 500 -

Traceback (most recent call last):

File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 2464, in call

return self.wsgi_app(environ, start_response)

File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 2450, in wsgi_app

response = self.handle_exception(e)

File "/usr/local/lib/python3.6/dist-packages/flask_restful/init.py", line 272, in error_router

return original_handler(e)

File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1867, in handle_exception

reraise(exc_type, exc_value, tb)

File "/usr/local/lib/python3.6/dist-packages/flask/_compat.py", line 39, in reraise

raise value

File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 2447, in wsgi_app

response = self.full_dispatch_request()

File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1952, in full_dispatch_request

rv = self.handle_user_exception(e)

File "/usr/local/lib/python3.6/dist-packages/flask_restful/init.py", line 272, in error_router

return original_handler(e)

File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1821, in handle_user_exception

reraise(exc_type, exc_value, tb)

File "/usr/local/lib/python3.6/dist-packages/flask/_compat.py", line 39, in reraise

raise value

File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1950, in full_dispatch_request

rv = self.dispatch_request()

File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1936, in dispatch_request

return self.view_functions[rule.endpoint](**req.view_args)

File "/opt/broadlinkmanager/broadlinkmanager.py", line 284, in sweep

return jsonify('{"data":"' + data + '"}')

TypeError: must be str, not bytes

[I.P.ADD.R.ESS] - - [15/Jun/2020 02:55:21] "GET /repeats HTTP/1.1" 200 -

[I.P.ADD.R.ESS] - - [15/Jun/2020 02:55:21] "GET /js/index.js HTTP/1.1" 200 -

[I.P.ADD.R.ESS] - - [15/Jun/2020 02:55:21] "GET /js/generator.js HTTP/1.1" 200 -

[I.P.ADD.R.ESS] - - [15/Jun/2020 02:55:21] "GET /js/pageActions.js HTTP/1.1" 200 -

[I.P.ADD.R.ESS] - - [15/Jun/2020 02:55:21] "GET /js/demo.js HTTP/1.1" 200 -

[I.P.ADD.R.ESS] - - [15/Jun/2020 02:55:21] "GET /repeats HTTP/1.1" 200 -

[I.P.ADD.R.ESS] - - [15/Jun/2020 02:55:47] "GET / HTTP/1.1" 200 -

[I.P.ADD.R.ESS] - - [15/Jun/2020 02:55:47] "GET / HTTP/1.1" 200 -

[I.P.ADD.R.ESS] - - [15/Jun/2020 02:55:52] "GET /rf/status HTTP/1.1" 200 -

[I.P.ADD.R.ESS] - - [15/Jun/2020 02:55:53] "GET /rf/status HTTP/1.1" 200 -

[I.P.ADD.R.ESS] - - [15/Jun/2020 02:55:54] "GET /rf/status HTTP/1.1" 200 -

[I.P.ADD.R.ESS] - - [15/Jun/2020 02:55:55] "GET /rf/status HTTP/1.1" 200 -

[I.P.ADD.R.ESS] - - [15/Jun/2020 02:55:56] "GET /rf/status HTTP/1.1" 200 -

[I.P.ADD.R.ESS] - - [15/Jun/2020 02:55:57] "GET /rf/status HTTP/1.1" 200 -

[I.P.ADD.R.ESS] - - [15/Jun/2020 02:55:57] "GET /rf/continue HTTP/1.1" 200 -

[I.P.ADD.R.ESS] - - [15/Jun/2020 02:55:58] "GET /rf/status HTTP/1.1" 200 -

[I.P.ADD.R.ESS] - - [15/Jun/2020 02:55:59] "GET /rf/status HTTP/1.1" 200 -

[I.P.ADD.R.ESS] - - [15/Jun/2020 02:56:00] "GET /rf/status HTTP/1.1" 200 -

[I.P.ADD.R.ESS] - - [15/Jun/2020 02:56:00] "GET /rf/learn?type=0x27a9&host=192.168.1.142&mac=780f776317bc HTTP/1.1" 500 -

from broadlinkmanager-docker.

Stupco avatar Stupco commented on June 12, 2024

And finally, to help debug, using the Home Assistant broadlink.learn command manual method, this is an example result of code generated by the remote:
Received packet is: sgD8AKIzDBkMGQwZGA0MGRkNGA0LGgwZDBkYDRgOFw0MGQwZDBoMGQwZDBkMGQwZDBoLGRgOGA0YDRgNDBkMGQwZDBkMGgwZGA0MGRgNDBkYDQwZGAABI6EzDBkMGgsaFw0MGhcOGA0LGgwZDBkYDhcOGA0LGgsaDBkMGgsaCxoLGgsaCxoLGhgNGA0YDRgNDBkMGgsZDBoLGgwZGA0MGRgNDBkYDgsaGAABIaE0DBkLGgsaGA0MGRgNGA0MGgsaDBkYDRgNGA0MGQwZDBoLGgsaCxoLGgwZDBkMGRgOFw4XDhgNCxoLGgwZDBkLGwsaFw4LGhcOCxoXDgwZGAAF3AAAAAAAAAAAAAAAAA==

from broadlinkmanager-docker.

Stupco avatar Stupco commented on June 12, 2024

Fixed with commit 59f2f13

BIG thank you!

from broadlinkmanager-docker.

Related Issues (20)

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.