Fix "average" function by using a new parameter: period
Update Mqtt messaging event
Add average displaying to dashboard
Css fix