What you need to prepare

virtual enviroment in python with installed packages

python script and InfluxDB

Change stuff

In .service file change everything that has <SOMETHIN_LIKE_THIS> and /path/to/dir