77 lines
4.1 KiB
Go
77 lines
4.1 KiB
Go
|
package purpleair
|
||
|
|
||
|
type WebhookPayload struct {
|
||
|
SensorID string `json:"SensorId,omitempty"`
|
||
|
DateTime string `json:"DateTime,omitempty"`
|
||
|
Geo string `json:"Geo,omitempty"`
|
||
|
Mem int `json:"Mem,omitempty"`
|
||
|
Memfrag int `json:"memfrag,omitempty"`
|
||
|
Memfb int `json:"memfb,omitempty"`
|
||
|
Memcs int `json:"memcs,omitempty"`
|
||
|
ID int `json:"Id,omitempty"`
|
||
|
Lat float64 `json:"lat,omitempty"`
|
||
|
Lon float64 `json:"lon,omitempty"`
|
||
|
Adc float64 `json:"Adc,omitempty"`
|
||
|
Loggingrate int `json:"loggingrate,omitempty"`
|
||
|
Place string `json:"place,omitempty"`
|
||
|
Version string `json:"version,omitempty"`
|
||
|
Uptime int `json:"uptime,omitempty"`
|
||
|
Rssi int `json:"rssi,omitempty"`
|
||
|
Period int `json:"period,omitempty"`
|
||
|
Httpsuccess int `json:"httpsuccess,omitempty"`
|
||
|
Httpsends int `json:"httpsends,omitempty"`
|
||
|
Hardwareversion string `json:"hardwareversion,omitempty"`
|
||
|
Hardwarediscovered string `json:"hardwarediscovered,omitempty"`
|
||
|
CurrentTempF int `json:"current_temp_f,omitempty"`
|
||
|
CurrentHumidity int `json:"current_humidity,omitempty"`
|
||
|
CurrentDewpointF int `json:"current_dewpoint_f,omitempty"`
|
||
|
Pressure float64 `json:"pressure,omitempty"`
|
||
|
P25AqicB string `json:"p25aqic_b,omitempty"`
|
||
|
Pm25AqiB int `json:"pm2.5_aqi_b,omitempty"`
|
||
|
Pm10Cf1B float64 `json:"pm1_0_cf_1_b,omitempty"`
|
||
|
P03UmB float64 `json:"p_0_3_um_b,omitempty"`
|
||
|
Pm25Cf1B float64 `json:"pm2_5_cf_1_b,omitempty"`
|
||
|
P05UmB float64 `json:"p_0_5_um_b,omitempty"`
|
||
|
Pm100Cf1B float64 `json:"pm10_0_cf_1_b,omitempty"`
|
||
|
P10UmB float64 `json:"p_1_0_um_b,omitempty"`
|
||
|
Pm10AtmB float64 `json:"pm1_0_atm_b,omitempty"`
|
||
|
P25UmB float64 `json:"p_2_5_um_b,omitempty"`
|
||
|
Pm25AtmB float64 `json:"pm2_5_atm_b,omitempty"`
|
||
|
P50UmB float64 `json:"p_5_0_um_b,omitempty"`
|
||
|
Pm100AtmB float64 `json:"pm10_0_atm_b,omitempty"`
|
||
|
P100UmB float64 `json:"p_10_0_um_b,omitempty"`
|
||
|
P25Aqic string `json:"p25aqic,omitempty"`
|
||
|
Pm25Aqi int `json:"pm2.5_aqi,omitempty"`
|
||
|
Pm10Cf1 float64 `json:"pm1_0_cf_1,omitempty"`
|
||
|
P03Um float64 `json:"p_0_3_um,omitempty"`
|
||
|
Pm25Cf1 float64 `json:"pm2_5_cf_1,omitempty"`
|
||
|
P05Um float64 `json:"p_0_5_um,omitempty"`
|
||
|
Pm100Cf1 float64 `json:"pm10_0_cf_1,omitempty"`
|
||
|
P10Um float64 `json:"p_1_0_um,omitempty"`
|
||
|
Pm10Atm float64 `json:"pm1_0_atm,omitempty"`
|
||
|
P25Um float64 `json:"p_2_5_um,omitempty"`
|
||
|
Pm25Atm float64 `json:"pm2_5_atm,omitempty"`
|
||
|
P50Um float64 `json:"p_5_0_um,omitempty"`
|
||
|
Pm100Atm float64 `json:"pm10_0_atm,omitempty"`
|
||
|
P100Um float64 `json:"p_10_0_um,omitempty"`
|
||
|
PaLatency int `json:"pa_latency,omitempty"`
|
||
|
Response int `json:"response,omitempty"`
|
||
|
ResponseDate int `json:"response_date,omitempty"`
|
||
|
Latency int `json:"latency,omitempty"`
|
||
|
ResponseB int `json:"response_b,omitempty"`
|
||
|
ResponseDateB int `json:"response_date_b,omitempty"`
|
||
|
LatencyB int `json:"latency_b,omitempty"`
|
||
|
Wlstate string `json:"wlstate,omitempty"`
|
||
|
Status0 int `json:"status_0,omitempty"`
|
||
|
Status1 int `json:"status_1,omitempty"`
|
||
|
Status2 int `json:"status_2,omitempty"`
|
||
|
Status3 int `json:"status_3,omitempty"`
|
||
|
Status4 int `json:"status_4,omitempty"`
|
||
|
Status5 int `json:"status_5,omitempty"`
|
||
|
Status6 int `json:"status_6,omitempty"`
|
||
|
Status7 int `json:"status_7,omitempty"`
|
||
|
Status8 int `json:"status_8,omitempty"`
|
||
|
Status9 int `json:"status_9,omitempty"`
|
||
|
Status10 int `json:"status_10,omitempty"`
|
||
|
}
|