Giter Club home page Giter Club logo

Comments (12)

motoz avatar motoz commented on August 11, 2024 1

Can you check with the latest master? At least it now tries to resubscribe after reconnected...

from pellmonmqtt.

motoz avatar motoz commented on August 11, 2024

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.

KennethEgholm avatar KennethEgholm commented on August 11, 2024

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.

KennethEgholm avatar KennethEgholm commented on August 11, 2024

I guess something like this?
systemctl status pellmonMQTT -n20

from pellmonmqtt.

motoz avatar motoz commented on August 11, 2024

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.

motoz avatar motoz commented on August 11, 2024

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.

KennethEgholm avatar KennethEgholm commented on August 11, 2024

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.

KennethEgholm avatar KennethEgholm commented on August 11, 2024

And yes- that would fit the bill perfectly - I have had some outages in the wifi connections.

from pellmonmqtt.

KennethEgholm avatar KennethEgholm commented on August 11, 2024

I will try it out today - thanks for your fast action..

from pellmonmqtt.

KennethEgholm avatar KennethEgholm commented on August 11, 2024

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.

motoz avatar motoz commented on August 11, 2024

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.

KennethEgholm avatar KennethEgholm commented on August 11, 2024

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)

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.