Browse Source

fix mill

beelzebub 0.2.4
Gisle Aune 2 weeks ago
parent
commit
511ef97616
  1. 6
      services/mill/wifi.go

6
services/mill/wifi.go

@ -100,7 +100,7 @@ func (w *WifiBridge) refresh() error {
return err return err
} }
} }
return nil return nil
} }
@ -112,7 +112,7 @@ func (w *WifiBridge) getTemperature() (float64, error) {
req, err := http.NewRequest( req, err := http.NewRequest(
"GET", "GET",
"http://%s/set-temperature",
fmt.Sprintf("http://%s/set-temperature", w.IP),
bytes.NewReader(body), bytes.NewReader(body),
) )
if err != nil { if err != nil {
@ -144,7 +144,7 @@ func (w *WifiBridge) writeTemperature() error {
req, err := http.NewRequest( req, err := http.NewRequest(
"POST", "POST",
"http://%s/set-temperature",
fmt.Sprintf("http://%s/set-temperature", w.IP),
bytes.NewReader(body), bytes.NewReader(body),
) )
if err != nil { if err != nil {

Loading…
Cancel
Save