this downloads data from relay
o=0; while [ True ]; do nostril-query -k 1 -l 2000 | jq -c ".[2].since=`date +%s-$o-20000 | bc`|.[2].until=`date +%s-$o | bc`" | tee /dev/tty | timeout 2 websocat -n wss://relay.nostr.band | tee -a data; let o+=20000; sleep 1; done