This repository configures Grafana Cloud data sources to connect with InfluxDB and Turso for weather data visualization.
terraform init
terraform plan
terraform applyFlow for updating Grafana dashboard:
- Update the dashboard in Grafana Cloud UI and save
- Run
./fetch_dashboard.sh - Run
terraform planand expect "no changes" - Commit the updated dashboard JSON to Git
Install terraform on Linux Mint:
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(. /etc/os-release && echo "$UBUNTU_CODENAME") main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt update && sudo apt install terraformScript to list Turso databases using API token:
source .env
curl -L https://api.turso.tech/v1/organizations/paulinek13/databases \
-H "Authorization: Bearer $TURSO_API_TOKEN"