peliprint/blueprint/lib/telemetry.sh

12 lines
378 B
Bash
Raw Normal View History

#!/bin/bash
#
# This script has been created as part of the Blueprint source code
# and may be intergrated directly into the core in the future.
sendTelemetry() {
2023-08-11 15:56:03 -04:00
cd &bp.folder&;
key=$(cat .blueprint/data/internal/db/telemetry_id);
if [[ $key == "KEY_NOT_UPDATED" ]]; then exit 1;fi;
2023-06-23 15:02:21 -04:00
curl --location --silent "http://data.ptero.shop:3481/send/$key/$1" > /dev/null;
}