# 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:** 6

<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 10:04 UTC](https://discourse.nodered.org/t/function-to-write-netatmo-measurement-in-influx-db/13265/6 "2019-07-15T10:04:45Z")

</div>

When this:

_payload.devices[0].modules[2].dashboard\_data.min\_temp_

is in my debug node then output in the debugger shows the correct min-temp:

_15-7-2019 11:50:04[node: 42184b89.07c674](http://192.168.2.160:1880/#)msg.payload.devices[0].modules[2].dashboard\_data.min\_temp : number_  
_15_

So I think I need a function or change to save the min-temp (15) in the database.

The relevant part from the complete message object coming from the Netatmo "get stations data" node is shown in the graphic below.

 ![NR](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/d/d044067329da96bfb7d946cf8dde795220de731a.png)

---

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