lrybak / domoticz-airly

A Python plugin for Domoticz to access airly API for smog information in Poland
MIT License
10 stars 8 forks source link

Closes #14 #15

Closed pkilar43 closed 2 years ago

pkilar43 commented 2 years ago

Added rounding of percentage values as influxdb require integer value without decimals for Percentage series

pkilar43 commented 2 years ago

2022-02-03 11:30:44.258 domo-airly: Starting device update 2022-02-03 11:30:44.259 domo-airly: Update unit=1; nValue=0; sValue=24 (...) 2022-02-03 11:30:44.350 domo-airly: Update unit=11; nValue=0; sValue=57 2022-02-03 11:30:44.360 domo-airly: Update unit=12; nValue=0; sValue=35 2022-02-03 11:30:44.663 InfluxLink: value Percentage,idx=109,name=Air-Quality-Index value=24 2022-02-03 11:30:44.663 InfluxLink: value Percentage,idx=118,name=PM25-Norm value=57 2022-02-03 11:30:44.663 InfluxLink: value Percentage,idx=119,name=PM10-Norm value=35