Added additional weather data

This commit is contained in:
2023-05-07 21:36:52 +02:00
parent a57371b2cf
commit 5ae46ed06f
3 changed files with 31 additions and 5 deletions

View File

@@ -6,6 +6,10 @@ use influxdb::{Client, InfluxDbWriteable};
pub struct WeatherReading {
pub time: DateTime<Utc>,
pub wind_speed: f32,
pub clouds: u16,
pub temp: f32,
pub id: Option<u16>,
pub main: Option<String>,
}
pub async fn write_weather_data(