xperimental / netatmo-exporter

Prometheus exporter for Netatmo sensor data.
MIT License
44 stars 18 forks source link

type netatmo.DashboardData has no field or method LastMesure #2

Closed N1v0k closed 6 years ago

N1v0k commented 6 years ago

Hi,

I was trying to run:

go get github.com/xperimental/netatmo-exporter

But it fails with an error:

root@e158238a240a:~# go get github.com/xperimental/netatmo-exporter
# github.com/xperimental/netatmo-exporter
/go/src/github.com/xperimental/netatmo-exporter/collector.go:98:9: data.LastMesure undefined (type netatmo.DashboardData has no field or method LastMesure)
/go/src/github.com/xperimental/netatmo-exporter/collector.go:102:25: data.LastMesure undefined (type netatmo.DashboardData has no field or method LastMesure)
go version go1.9.2 linux/amd64
xperimental commented 6 years ago

Sorry @Gmentsik, I did not notice this issue until now.

It seems the typo in the name was fixed in the netatmo library I was using. I have updated the code accordingly, it should be working again now.

N1v0k commented 6 years ago

Thank you, I will definitely give it a go!