#!/bin/bash

LOG="/home/bbl/pskr.log"

mosquitto_sub -h mqtt.pskreporter.info -t 'pskr/filter/v2/+/+/K1TE' | \
while read -r line; do
  echo "$(date +'%y/%m/%d %H:%M:%S') $(date +%s) $line"
done >> "$LOG"
