From 511ef976168d2aa6be9728147d1000b2170373e0 Mon Sep 17 00:00:00 2001 From: Gisle Aune Date: Fri, 8 Nov 2024 21:26:28 +0100 Subject: [PATCH] fix mill --- services/mill/wifi.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/mill/wifi.go b/services/mill/wifi.go index a447260..fc4a93f 100644 --- a/services/mill/wifi.go +++ b/services/mill/wifi.go @@ -100,7 +100,7 @@ func (w *WifiBridge) refresh() error { return err } } - + return nil } @@ -112,7 +112,7 @@ func (w *WifiBridge) getTemperature() (float64, error) { req, err := http.NewRequest( "GET", - "http://%s/set-temperature", + fmt.Sprintf("http://%s/set-temperature", w.IP), bytes.NewReader(body), ) if err != nil { @@ -144,7 +144,7 @@ func (w *WifiBridge) writeTemperature() error { req, err := http.NewRequest( "POST", - "http://%s/set-temperature", + fmt.Sprintf("http://%s/set-temperature", w.IP), bytes.NewReader(body), ) if err != nil {