Code Monkey home page Code Monkey logo

Comments (7)

curzon01 avatar curzon01 commented on August 15, 2024

which version, which OS
pls provide output using --verbose and/or --debug

from mqtt2sql.

Zavy86 avatar Zavy86 commented on August 15, 2024

Hi, is a debian 8 lastest version 1.5.0022

Output:

^CDEBUG:__main__:Sending CONNECT (u1, p1, wr0, wq0, wf0, c1, k60) client_id=mqtt2sql.py-4116
DEBUG:__main__:Received CONNACK (0, 0)
DEBUG:__main__:Sending SUBSCRIBE (d0, m3) [('#', 0)]
DEBUG:__main__:Received SUBACK
DEBUG:__main__:Received PUBLISH (d0, q0, r1, m0), 'tele/SONOFF_ICT/LWT', ...  (6 bytes)
DEBUG:__main__:Received PUBLISH (d0, q0, r1, m0), 'cmnd/SONOFF_ICT/POWER', ...  (3 bytes)

from mqtt2sql.

curzon01 avatar curzon01 commented on August 15, 2024

That's currently a restriction of the mqtt library loop() function

Workaround is to kill the PID which runs the process (e.g. kill -9 $(pgrep -f "python.*mqtt2sql.py")) or using the suggested systemd daemon

from mqtt2sql.

Zavy86 avatar Zavy86 commented on August 15, 2024

ok thank you!

from mqtt2sql.

gsantner avatar gsantner commented on August 15, 2024

I used kill9 as well, but isnt posible to catch the break and call sys.exit(0) inside python?

from mqtt2sql.

gsantner avatar gsantner commented on August 15, 2024

btw systemd restart is hanging for me as well, I have to force kill also at systemd

from mqtt2sql.

curzon01 avatar curzon01 commented on August 15, 2024

I used kill9 as well, but isnt posible to catch the break and call sys.exit(0) inside python?

catch KILL and TERMINATE signal already in, sys.exit(0) is not enough, mqtt2sql uses multithreading for SQL

btw systemd restart is hanging for me as well, I have to force kill also at systemd

should all be fixed using latest version (v2.1.0031) - I rewrote also thread handling on exit

from mqtt2sql.

Related Issues (12)

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.