mirror of
https://github.com/owntracks/recorder.git
synced 2024-11-15 18:08:28 -07:00
Store and access data published by OwnTracks apps
.gitignore | ||
base64.c | ||
base64.h | ||
config.h.example | ||
config.mk | ||
file.c | ||
file.h | ||
geo.c | ||
geo.h | ||
geohash.c | ||
geohash.h | ||
ghash.c | ||
ghash.h | ||
jget.h | ||
json.c | ||
json.h | ||
LICENSE | ||
Makefile | ||
misc.c | ||
misc.h | ||
mkpath.c | ||
ocat.c | ||
ot-recorder.c | ||
README.md | ||
safewrite.c | ||
safewrite.h | ||
storage.c | ||
storage.h | ||
TODO.md | ||
udata.h | ||
utarray.h | ||
utstring.h |
recorder
Recorder
Requirements
- hiredis unless
HAVE_REDIS
is false.
Installation
- Copy
config.h.example
toconfig.h
- Edit
config.h
- Edit
config.mk
and 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