Comments (7)
which version, which OS
pls provide output using --verbose
and/or --debug
from mqtt2sql.
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.
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.
ok thank you!
from mqtt2sql.
I used kill9 as well, but isnt posible to catch the break and call sys.exit(0) inside python?
from mqtt2sql.
btw systemd restart is hanging for me as well, I have to force kill also at systemd
from mqtt2sql.
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)
- Error on_connet HOT 1
- автозагрузка HOT 3
- anyone have any consumer of the SQL data? HOT 1
- Will not allow SQL type database? HOT 1
- error, probably after python upgrade on host HOT 2
- wildcard in topic HOT 1
- Records created using local time instead of UTC HOT 1
- Change python to python3 in the instructions HOT 1
- Add option to only update when value changed (-> save to history) HOT 5
- mqtt2sql.py: error: argument --sql-type: invalid choice: 'mysql' (choose from 'sqlite') HOT 7
- автозапуск HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mqtt2sql.