Files
gree-controller/src/influxdb.rs
T
2026-08-30 13:39:29 +02:00

18 lines
537 B
Rust

use anyhow::{anyhow, bail, Context, Result};
use chrono::{DateTime, Utc};
use reqwest::Client;
use serde_json::Value;
use std::collections::HashMap;
use crate::models::{HaReading, InfluxDbSettings, Reading, ZoneReading};
const DEVICE_MEASUREMENT: &str = "gree_device";
const ZONE_MEASUREMENT: &str = "gree_zone";
const HA_MEASUREMENT: &str = "gree_ha";
// Functional source split intentionally keeps items in the existing module namespace.
include!("influxdb/write.rs");
include!("influxdb/query.rs");
include!("influxdb/codec.rs");