1
ewconfig/scripts/home-get-temperatures
2024-06-25 15:50:29 -04:00

5 lines
191 B
Bash
Executable File

#! /bin/bash
set -e
http get "http://prometheus.vpn:9090/api/v1/query?query=home_controller_sensor_temperature_None" | jq -r '.data.result.[] | "\(.metric.friendly_name): \(.value.[1])°C"'