initial commit

This commit is contained in:
allard
2025-11-23 18:58:51 +01:00
commit 376a944abc
1553 changed files with 314731 additions and 0 deletions

20
dev/crate/iss.sh Executable file
View File

@@ -0,0 +1,20 @@
# Exit immediately if a pipeline returns a non-zero status
set -e
position () {
curl -s http://api.open-notify.org/iss-now.json |
jq -r '[.iss_position.longitude, .iss_position.latitude] | @tsv';
}
wkt_position () {
echo "POINT ($(position | expand -t 1))";
}
while true; do
crash --hosts 192.168.40.81:4200 \
--command "INSERT INTO iss (position) VALUES ('$(wkt_position)')"
echo 'Sleeping for 1 seconds...'
sleep 10
done