Skip to content
Snippets Groups Projects
Commit 1739f6d7 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Add log viewer

parent e76dfbea
No related branches found
No related tags found
No related merge requests found
...@@ -91,12 +91,14 @@ start: ...@@ -91,12 +91,14 @@ start:
"python scripts/ahrs_calibration.py -d ${DETECTOR_ID} -p ${MONITORING_LIGIER_PORT}" Enter "python scripts/ahrs_calibration.py -d ${DETECTOR_ID} -p ${MONITORING_LIGIER_PORT}" Enter
@tmux select-layout even-vertical @tmux select-layout even-vertical
@# Log.io @# Logs
@# @#
@tmux new-window -n logio -t ${SESSION_NAME} @tmux new-window -n log -t ${SESSION_NAME}
@tmux split-window -v -t ${SESSION_NAME}:logio @tmux split-window -v -t ${SESSION_NAME}:log
@tmux send-keys -t ${SESSION_NAME}:logio.1 \ @tmux send-keys -t ${SESSION_NAME}:log.1 \
"python scripts/logio.py -p ${MONITORING_LIGIER_PORT} -x ${LOGIO_IP} -q ${LOGIO_PORT}" Enter "python scripts/msg_dumper.py -l 127.0.0.1 -p ${MONITORING_LIGIER_PORT} -f logs/MSG.log" Enter
@tmux send-keys -t ${SESSION_NAME}:log.2 \
"touch logs/MSG.log && frontail logs/*.log --ui-highlight --ui-highlight-preset frontail.json --theme dark -l 10000 -n 200 -p 8082" Enter
@tmux select-layout even-vertical @tmux select-layout even-vertical
stop: stop:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment