Skip to content

Stop sending notifications randomly requiring Docker Container restart #3

@PilotC150

Description

@PilotC150

Normally it works perfectly and sends messages in the format of:

time="2019-10-13T06:13:35Z" level=info msg="LOG: time=13 Oct 19 06:13 +0000, data=\xa2777F2846\x02\x00\x01\xfa"
time="2019-10-13T06:13:35Z" level=info msg="ALARM: time=13 Oct 19 06:13 +0000, mac: 777F2846, type: 2, battery: 100, signal: 79, state: 0, data=6400010001fa4f"
time="2019-10-13T06:13:35Z" level=info msg="ALARM: 777F2846, state: 0"

Then randomly, sometimes multiple times per day it will just stop working. I check the docker logs and all I see is this:

time="2019-10-13T10:52:49Z" level=info msg="LOG: time=01 Jan 70 00:00 +0000, data=\xa2777F2846\x02\x01\x01\xfb"

Only LOG messages, no ALARM messages. Once I restart the docker container (hosted on a Raspberry Pi 3 on Raspbian Stretch) it works perfectly again.

Not sure how to debug this one right now, but I'm going to try tonight, just wanted to see if anybody else had come across it.

As I'm posting this I notice that the "time" for all the LOG messages 01 Jan 70. That's gotta be significant but I'm not sure in what way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions