Lance Edgar
b4c52319c6
Make client more tolerant of database restart
...
note that a retry is *not* attempted within a given "take readings" run.
rather, client will consider that full readings take to have failed, if any
part of it fails.
but then we keep track of type/amount of some (database connection) failures,
and will suppress logging the full error for first 3 attempts. in practice
this lets us recover from simple database restarts, and if database becomes
truly unavailable we'll hear about it shortly.
any other type of error is immediately logged on first failure.
2018-10-07 18:47:02 -05:00
Lance Edgar
85e8ed9832
Log error when client probe takes a 185.0 reading
...
this indicates some power issue with the probe(s) and does not really mean
that's the temperature. so we don't want the server to send out "high temp"
email etc. but rather just a technical error email
https://www.controlbyweb.com/support/faq/temp-sensor-reading-error.html
2018-10-05 20:53:09 -05:00
Lance Edgar
74de10e74c
Log our supposed hostname on startup
...
just to help with troubleshooting
2018-10-05 19:30:01 -05:00
Lance Edgar
ad03e32f77
Don't kill tempmon client if DB session.commit() fails
...
let the daemon keep trying just like when device.read() fails
2017-08-05 12:49:04 -05:00
Lance Edgar
90e431c617
Switch license to GPL v3 (no longer Affero)
...
refs #2
2017-07-06 23:38:50 -05:00
Lance Edgar
c4b371cedd
Refactor main server loop a bit, to add basic retry w/ error logging
...
hopefully this lets us get past a simple Postgres restart..
2017-06-01 17:16:31 -05:00
Lance Edgar
20e3b83525
Add error logging in case committing session fails..
...
probably need to add a retry somewhere but still not getting the
traceback we need to figure that out...
2017-06-01 16:21:48 -05:00
Lance Edgar
4e11748b45
Add configurable delay per client; improve try/catch
2017-02-09 17:59:06 -06:00
Lance Edgar
d87ea6c22d
Add support for dummy probes (random temp data)
2016-12-10 11:22:53 -06:00
Lance Edgar
7550e63940
Initial commit
2016-12-05 19:06:34 -06:00