From bb2a3adb834cbc8951f8fb0ff61be1cdd8c34563 Mon Sep 17 00:00:00 2001 From: raul Date: Mon, 13 May 2024 08:26:11 +0200 Subject: [PATCH] Expand JSON struct --- cmd/clientFunc.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cmd/clientFunc.go b/cmd/clientFunc.go index c6ad254..86202e0 100644 --- a/cmd/clientFunc.go +++ b/cmd/clientFunc.go @@ -19,6 +19,18 @@ type root struct { Temperatura struct { Maxima string `json:"maxima"` Minima string `json:"minima"` + Dato []struct { + Valor string `json:"#content"` + Hora string `json:"-hora"` + } + } + Sens_Termica struct { + Maxima string `json:"maxima"` + Minima string `json:"minima"` + Dato []struct { + Valor string `json:"#content"` + Hora string `json:"-hora"` + } } } }