values can be entered with an ,

This commit is contained in:
Jan 2024-12-05 22:12:57 +01:00
parent 2458d5b982
commit c5f0dd8419

View File

@ -42,6 +42,9 @@ func Run(env map[string]string) {
return
}
tempCelsius = strings.Replace(tempCelsius, ",", ".", 1)
relativeHumidity = strings.Replace(relativeHumidity, ",", ".", 1)
// Convert query parameters to float64
temp, err := strconv.ParseFloat(tempCelsius, 32)
if err != nil {