mirror of
https://github.com/owntracks/recorder.git
synced 2026-04-09 00:36:50 +00:00
745cbf5806437894854e8a06e2355cf21d296477
recorder
Recorder
Requirements
- hiredis unless
HAVE_REDISis false.
Installation
- Copy
config.h.exampletoconfig.h - Edit
config.h - Edit
config.mkand select features - Type
make
Monitoring
In order to monitor the recorder, whenever an MQTT message is received, the recorder will add an epoch timestamp and the last received topic a Redis key (if configured) or a file otherwise. The Redis key looks like this:
redis 127.0.0.1:6379> hgetall ot-recorder-monitor
1) "time"
2) "1439738692"
3) "topic"
4) "owntracks/jjolie/ipad"
The monitor file is located relative to STORE and contains a single line, the epoch timestamp at the moment of message reception and the topic separated from eachother by a single space:
1439738692 owntracks/jjolie/ipad
Description
Languages
C
83.8%
HTML
3.8%
JavaScript
3.5%
Shell
3.1%
CSS
2.5%
Other
3.3%