Function to write Netatmo measurement in Influx DB

Solved, thanks for helping!