diff --git a/hosts/radiobert/readsb.nix b/hosts/radiobert/readsb.nix index e61f132c..33cc4747 100644 --- a/hosts/radiobert/readsb.nix +++ b/hosts/radiobert/readsb.nix @@ -86,7 +86,13 @@ in { }; path = with pkgs; [ curl gzip ]; script = '' - while curl -s http://localhost:8080/data.json \ + while ( + echo '{"now":' + date +%s + echo ',"aircraft":' + curl -s http://localhost:8080/data.json + echo '}' + ) \ | gzip -c \ | curl -s \ -u "$(cat ${config.sops.secrets."chaos-consulting/user".path})" \