Influxclod must have provided some documentation for how connect to their service. If this problem persists, I’ll need that.
But first the basics. Influx HTTP service defaults to port 8086. You have specified port 80 which is typically a HTTP web server. If you simply remove the :80 from your URL, IoTaWatt will use the default port 8086.
So the HTTP code 400 that you are getting is probably from a web server and not influx.
I’m also curious if influxcloud gave you a username and password to access your instance of influx. If so, you will need to add that to the IoTaWatt configuration.
i have a separate username and password for influx cloud account, influx DB connection, and kapacitor connection. Which one should i enter in the IotaWatt config page?
I suspect the problem is that HTTPS is enabled in the influxcloud instance. You can check with them to see if that can be turned off. Otherwise, I don’t see what the problem could be.
If you PM your password to me, I can try it from here and look at the actual HTTP 400 error message being returned. Otherwise, I will make a note to add that to the message log in these cases in a future release.
UPDATE: I have put in code to try to interpret and display the influx error codes. It is a challenge because there is no definitive list in their documentation.
I also hand crafted a query to your database. It doesn’t matter that I don’t have the password, didn’t get that far:
So it appears that the current problem is that the database has HTTPS enabled and requires it. IoTaWatt is not able to do that protocol. It’s unfortunate that the choices are HTTPS or basic authorization for plain-text. Digest authorization, while not an encryption protocol, would go a long way toward improving authentication. It probably wouldn’t stand up to a decent hacker, but would seriously hamper mischief makers.
It uses it on the server side, but could be supported in the client side.
Yes.
It means IoTaWatt will work with influx when it is configured to use HTTP and cannot when configured to require HTTPS. You would need to ask the influx cloud folks if they can or will configure it to use HTTP.