mirror of
https://github.com/eddyem/small_tel.git
synced 2026-05-01 18:37:07 +03:00
simplest local weather proxy over SHM
This commit is contained in:
26
Daemons/weather_proxy/weather_data.h
Normal file
26
Daemons/weather_proxy/weather_data.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#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);
|
||||
|
||||
Reference in New Issue
Block a user