Python Script that I use for Grafana to convert my kWh consumption in Euro €.
Fetches data from InfluxDB, converts it to € and stores is back to InfluxDB.
Quick & very dirty. Not production ready!
I added a option to calculate kwh & € for Shelly 3EM Pro.