Files
small_tel/Daemons/weather_proxy/weather_data.h
2026-03-26 20:29:29 +03:00

27 lines
446 B
C

#pragma once
#include <stdint.h>
#include <time.h>
typedef enum {
WEATHER_GOOD = 0,
WEATHER_BAD = 1,
WEATHER_TERRIBLE = 2
} weather_condition_t;
typedef struct {
weather_condition_t weather;
float windmax;
int rain;
float clouds;
float wind;
float exttemp;
float pressure;
float humidity;
int prohibited;
double last_update;
} weather_data_t;
int get_weather_data(weather_data_t *data);