Skip to content

Commit

Permalink
Merge pull request #3 from 76rhodan/master
Browse files Browse the repository at this point in the history
Adding the live-mt-pos map
  • Loading branch information
rpatel3001 authored May 1, 2024
2 parents b8663d6 + 7054edf commit fdc528c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ services:
- /dev:/dev:rw
- ./irdm.conf:/opt/irdm.conf:ro
environment:
# - ENABLE_MTPOS_MAP=true
# - ENABLE_MTPOS_MAP_LOG=true
# - DISABLE_EXTRACTOR=true
# - LOG_EXTRACTOR_STATS=true
# - LOG_MAP=true
Expand Down
17 changes: 17 additions & 0 deletions rootfs/etc/s6-overlay/s6-rc.d/iridium-reassembler-mtpos/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/command/with-contenv bash
#shellcheck shell=bash

if [[ -n $ENABLE_MTPOS_MAP ]]; then
echo "Starting mtpos map reassembler"
cd /opt/iridium-toolkit/html

if [[ -n $ENABLE_MTPOS_MAP_LOG ]]; then
pypy3 -u /opt/iridium-toolkit/reassembler.py -i zmq: -m live-mt-map 2>&1 | stdbuf -o0 awk '{print "[iridium-reassembler-map] " strftime("%Y/%m/%d %H:%M:%S", systime()) " " $0}'
else
pypy3 -u /opt/iridium-toolkit/reassembler.py -i zmq: -m live-mt-map &> /dev/null
fi
else
echo "mtpos map not enabled"
sleep infinity
exit 0
fi
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
longrun
Empty file.

0 comments on commit fdc528c

Please sign in to comment.