but I cant with the node red influx node - it says
Error: A 301 Moved Permanently error occurred: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="https://********.no-ip.biz/influx:443/write?db=mydb&p=pass&precision=n&rp=&u=user">here</a>.</p>
</body></html>
Any chance to fix this? Otherwise, I would use a shell script, curl and exec node..
That's because curl can cope with the redirect that is happening but the node can not. Have you tried calling the redirected URL using an http-request node?
You don't really need that node if it isn't working for you. InfluxDB uses an HTTP REST API which that node uses as well. You can throw everything through a standard http-request node instead.
Just picked up such a node - but the question is now: How to split correctly the parts of the curl statement (see below the statement from above, parts marked with [1] to [5]) into the form fields of the node (properties), and how to format the message payload? It looks so confusing..?
Basically, just give it a go - if you get stuck, ask a specific question - we will help you out
EDIT...
and it would be good for the community if you raise this issue on the issues pages for the node-red-contrib-influxdb node. they are very active & I am certain will take a look at your issue.
You don't need one, it is built-in to Node-RED as a code node.
Indeed, you may need to do some reading about what the -u and -d parameters in curl actually do
You might find that a REST API tool will help you as well as it will give you more help. There are some good ones that are browse addins - "postman"? I think that rings a bell.
Thanks for raising the issue. I've had a look and it doesn't look like something we can add to the node easily given we use the @influxdata/influxdb-client module and it doesn't seem to support redirect following.
Have you tried using the URL you were redirected to (i.e. https://********.no-ip.biz/influx:443) to avoid the redirect?