Commit 3a6f95e9 authored by Waleed Akbar's avatar Waleed Akbar
Browse files

feat: Update telemetry subscription script for IP Controller and optimize output logging

parent dafe1dcc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ case "$HOSTNAME" in
        ;;
    tfs-ip-ctrl)
        echo "Subscribing to IP Controller telemetry..."
        python3 telemetry-subscribe-slice1.py ip Trans-L1
        python3 telemetry-subscribe-slice1.py trans-pkt Trans-L1
        ;;
    *)
        echo "Unknown host: $HOSTNAME"
+3 −2
Original line number Diff line number Diff line
@@ -71,7 +71,8 @@ def main() -> None:
    print('Opening stream "{:s}" (press Ctrl+C to stop)...'.format(stream_url))

    with requests.get(stream_url, stream=True, auth=auth) as resp:
        for line in resp.iter_lines(decode_unicode=True):
        for i, line in enumerate(resp.iter_lines(decode_unicode=True), 1):
            if i % 10 == 0:
                print(line)

if __name__ == '__main__':