radiobert: fix feed-chaos-consulting
This commit is contained in:
parent
e2344bf4b4
commit
3c1bb32b9c
|
@ -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})" \
|
||||
|
|
Loading…
Reference in New Issue