diff --git a/controllers/default.go b/controllers/default.go
index 73bbf0c..6d0be66 100644
--- a/controllers/default.go
+++ b/controllers/default.go
@@ -18,6 +18,7 @@ var (
type SensorPrint struct {
Name string
+ Mac string
Value string
Unit string
Horodate string
@@ -47,8 +48,8 @@ func getLastTemps() ([]SensorPrint) {
if sens.Name == "" {
sens.Name = s.SensorMAC
}
+ sens.Mac = s.SensorMAC
- // t := temperature.GetLastTempForSensor(s.Id)
t := temperatureTmp.GetTemp(s.Id)
sens.Value = strconv.FormatInt(t.Value, 10)
sens.Unit = "°C"
diff --git a/views/index.tpl b/views/index.tpl
index b331abc..71eab12 100644
--- a/views/index.tpl
+++ b/views/index.tpl
@@ -4,7 +4,7 @@
{{define "body"}}
{{range $key, $val := .sensors}}
-