2023-06-18 12:32:02 -04:00
|
|
|
#!/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-10-31 10:35:14 -04:00
|
|
|
cd $BLUEPRINT__FOLDER;
|
2023-11-08 10:01:39 -05:00
|
|
|
key=$(cat .blueprint/extensions/blueprint/private/db/telemetry_id);
|
2023-06-18 12:32:02 -04:00
|
|
|
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;
|
2023-06-18 12:32:02 -04:00
|
|
|
}
|