wborn / openhab-grafana

JavaScript utilities and examples for using Grafana with openHAB
MIT License
46 stars 13 forks source link

Update smarthome-grafana.js #7

Closed HolgerHees closed 6 years ago

HolgerHees commented 6 years ago

avoid to register the same listener twice.

It happens if you use panelItem, panelItemFunction, fromItem, fromItemFunction and the values of panelItem and fromItem are the same.

I use it to have different panel depending of the selected time range.