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

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [15 July 2019 10:14 UTC](https://discourse.nodered.org/t/function-to-write-netatmo-measurement-in-influx-db/13265/7 "2019-07-15T10:14:47Z")

</div>

I am using an influxdb-batch node (with telegraf) and send all netatmo data to it like this:

```auto
m = msg.payload.devices[0].dashboard_data

msg.payload = [
    {
        measurement:"netatmo",
        fields: m,
        tags:{
            weather:"internal"
        },
        timestamp: new Date()
    }];

return msg

```

---

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