all repos — paprika @ 7284194835942c15cd83b83e1247c7cf86cbd74e

go rewrite of taigabot

Clean up struct
Anirudh Oppiliappan x@icyphox.sh
Wed, 17 Nov 2021 15:56:12 +0530
commit

7284194835942c15cd83b83e1247c7cf86cbd74e

parent

3d5516d37297470eabc3c1862756c048d58f03b4

1 files changed, 0 insertions(+), 5 deletions(-)

jump to
M plugins/weather/weather.goplugins/weather/weather.go

@@ -14,10 +14,7 @@ Meta struct {

Units struct { AirPressureAtSeaLevel string `json:"air_pressure_at_sea_level"` AirTemperature string `json:"air_temperature"` - CloudAreaFraction string `json:"cloud_area_fraction"` - PrecipitationAmount string `json:"precipitation_amount"` RelativeHumidity string `json:"relative_humidity"` - WindFromDirection string `json:"wind_from_direction"` WindSpeed string `json:"wind_speed"` } `json:"units"` } `json:"meta"`

@@ -27,9 +24,7 @@ Instant struct {

Details struct { AirPressureAtSeaLevel float64 `json:"air_pressure_at_sea_level"` AirTemperature float64 `json:"air_temperature"` - CloudAreaFraction int `json:"cloud_area_fraction"` RelativeHumidity float64 `json:"relative_humidity"` - WindFromDirection float64 `json:"wind_from_direction"` WindSpeed float64 `json:"wind_speed"` } `json:"details"` } `json:"instant"`