Comments (12)
Can you check with the latest master? At least it now tries to resubscribe after reconnected...
from pellmonmqtt.
How do you mean stop working? Does it fail when starting, or does it suddenly stop working while running? Are there any errors?
from pellmonmqtt.
It fails after running in several days. I can monitor it the next time it happens. How/where do I look for logs of errors?
from pellmonmqtt.
I guess something like this?
systemctl status pellmonMQTT -n20
from pellmonmqtt.
I don't know much about systemd, but I think it can collect things written to stderr and put it somewhere (when used to daemonize something that doesn't know it has been deamonized). Otherwise you could run pellmonMQTT in the foreground (started from a terminal I mean). Then you can see if there is a python exception at least. It's also easy to add print statements here and there to see what happens.
You could verify that pellmon is still working (try changing settings from the pellmon webinterface, and from the pellmoncli command line client). If that works then it must be something with the broker->pellmonmqtt that isn't working anymore.
from pellmonmqtt.
Doing some googling... The subscription should probably be in the on_connect method, otherwise it doesn't resubscribe when autoconnecting to the broker after a lost connection.
from pellmonmqtt.
Yeah, firstæy - it is the MQTT that stops working - as I have tried manipulating the parameters directly from the webinterface - and that worked perfectly.
from pellmonmqtt.
And yes- that would fit the bill perfectly - I have had some outages in the wifi connections.
from pellmonmqtt.
I will try it out today - thanks for your fast action..
from pellmonmqtt.
FYI: I ran it in the foreground for a while and it seems to work af before at least :) :)
(I saw that you changed the topic to "pellmon2" so I have changed my sensors to listen to that as well :)
It is now running as a service, so will let you know how it goes ..
from pellmonmqtt.
Oh, sorry about the pellmon2... I changed it for debugging on my laptop when I remembered I probably have another instance already running on an raspberry somewhere... Easier to debug on a laptop but I didn't mean to commit that. If this works then maybe it would be a good time soon to try to make this into something real with a config file to control what gets published and subscribed. I suppose it would be good to have encryption also, but I haven't looked into how to enable it.
from pellmonmqtt.
No worries at all. If I can help with testing and such, I will be happy to do so.
I think it will be solid now.
Yes, config would be great, and encryption as an option would also be great.
Thanks for your effort!
from pellmonmqtt.
Related Issues (6)
- Pellmon mqtt issue HOT 3
- mqtt problem. HOT 9
- Mqtt auto discover HOT 4
- How do I start this? HOT 19
- 'Client' object has no attribute '_on_pre_connect' 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 pellmonmqtt.