# How to effectively use InfluxDB

**URL:** <https://discourse.nodered.org/t/how-to-effectively-use-influxdb/36885>\
**Category:** FAQs\
**Tags:** database\
**Created:** [2 December 2020 16:40 UTC](https://discourse.nodered.org/t/how-to-effectively-use-influxdb/36885 "2020-12-02T16:40:15Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![Buckskin](https://avatars.discourse-cdn.com/v4/letter/b/b9e5f3/32.png) [@Buckskin](https://discourse.nodered.org/u/Buckskin)\
**Post date:** [14 January 2021 00:21 UTC](https://discourse.nodered.org/t/how-to-effectively-use-influxdb/36885/21 "2021-01-14T00:21:09Z")

</div>

No. I figured that out after I sent the message. I changed the `https` in the `curl` to` http` and now get

```auto
HTTP/1.1 401 Unauthorized
X-Powered-By: Express
Access-Control-Allow-Origin: *
WWW-Authenticate: Basic realm="Authorization Required"
Content-Type: text/plain; charset=utf-8
Content-Length: 12
ETag: W/"c-dAuDFQrdjS3hezqxDTNgW7AOlYk"
Date: Wed, 13 Jan 2021 22:23:38 GMT
Connection: keep-alive
Keep-Alive: timeout=5

```

which looks to be moving forward 😁 The file is in `tmp` so now all I need is to work out how to let Node-red know.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [14 January 2021 00:46 UTC](https://discourse.nodered.org/t/how-to-effectively-use-influxdb/36885/22 "2021-01-14T00:46:34Z")

</div>

> [@Buckskin](#):
>
> `Unauthorized`

That's the clue. Do you have login on the http-in node? Or have you just not set up the endpoint yet?

---

<div class="post-metadata">

**Author:** ![Buckskin](https://avatars.discourse-cdn.com/v4/letter/b/b9e5f3/32.png) [@Buckskin](https://discourse.nodered.org/u/Buckskin)\
**Post date:** [14 January 2021 01:13 UTC](https://discourse.nodered.org/t/how-to-effectively-use-influxdb/36885/23 "2021-01-14T01:13:23Z")

</div>

Erm .. probably not?? How do I do I set up the end point?

OK cracked it. If anyone reading this wants to know how;

```auto
curl -u userid:password http://localhost:1880/urlname

```

see - Node-red Cookbook Create an HTTP Endpoint

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [15 March 2021 01:13 UTC](https://discourse.nodered.org/t/how-to-effectively-use-influxdb/36885/24 "2021-03-15T01:13:53Z")

</div>

Closed on 15 March 2021 01:13 UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.

[Previous page](https://discourse.nodered.org/t/how-to-effectively-use-influxdb/36885.md?page=1)
