# Function to write Netatmo measurement in Influx DB

**URL:** <https://discourse.nodered.org/t/function-to-write-netatmo-measurement-in-influx-db/13265>\
**Category:** General\
**Created:** [14 July 2019 13:58 UTC](https://discourse.nodered.org/t/function-to-write-netatmo-measurement-in-influx-db/13265 "2019-07-14T13:58:49Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![HaVi](https://avatars.discourse-cdn.com/v4/letter/h/b3f665/32.png) [@HaVi](https://discourse.nodered.org/u/HaVi)\
**Post date:** [15 July 2019 12:52 UTC](https://discourse.nodered.org/t/function-to-write-netatmo-measurement-in-influx-db/13265/12 "2019-07-15T12:52:45Z")

</div>

Thanks again for helping! Although the line _m = msg.payload.devices[0].modules[0].dashboard\_data_ writes to the DB but unfortunattely only the values for _Rain, sum\_rain\_1, sum\_rain\_24 and time\_utc_

And the line _m = msg.payload.devices[0].modules[0].dashboard\_data.min\_temp_ generates an error:

_Error: A 400 Bad Request error occurred: {"error":"unable to parse 'tuin': missing fields"}_

---

_[View the full topic](https://discourse.nodered.org/t/function-to-write-netatmo-measurement-in-influx-db/13265)._
