Announcement

Collapse
No announcement yet.

cannot get Influx to work

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    cannot get Influx to work

    I got MQTT working but cannot get it to write values to influxdb. InfluxDB is a new 2.0 config running under docker.

    any help to what to look at would be helpful. been working on this all day and starting to feel stupid

    nothing wrtites to influx and seeing these errors in the debug file. (have it set to store all values ot influx db)


    4/26/2021 6:11:08 PM 293 | Influx Write Thread Started
    4/26/2021 6:11:08 PM 317 | RegisterEvents 1
    4/26/2021 6:11:08 PM 340 | HW Init Complete
    4/26/2021 6:11:08 PM 345 | Background Init Started
    4/26/2021 6:11:08 PM 838 | HSEvent VALUE_SET| 2048| 0185187C-056-Q35| 25| 25| 523
    4/26/2021 6:11:09 PM 1610 | HSEvent VALUE_SET| 2048| 0185187C-056-Q30| 100| 100| 518
    4/26/2021 6:11:09 PM 1946 | InfluxDB Write Auth Authorization: Token cUTWhj9No0IYP89h4kOAxBbVIqlXM3SGdfJpoBfbeW6OJtQ6VEDysqpTncy-7e2shHAK6jetMi0RWHvS6ws9_g==
    4/26/2021 6:11:09 PM 1962 | InfluxDB Write Response Error for homeseer ardmore The remote server returned an error: (400) Bad Request. 0 The remote server returned an error: (400) Bad Request.
    4/26/2021 6:11:09 PM 1962 | InfluxDB Write Finally no Response The remote server returned an error: (400) Bad Request.
    4/26/2021 6:11:09 PM 1963 | InfluxDB Write Finally The remote server returned an error: (400) Bad Request., Queue Depth =0
    4/26/2021 6:11:10 PM 2197 | InfluxDB Write Auth Authorization: Token cUTWhj9No0IYP89h4kOAxBbVIqlXM3SGdfJpoBfbeW6OJtQ6VEDysqpTncy-7e2shHAK6jetMi0RWHvS6ws9_g==
    4/26/2021 6:11:10 PM 2201 | InfluxDB Write Response Error for homeseer ardmore The remote server returned an error: (400) Bad Request. 0 The remote server returned an error: (400) Bad Request
    Attached Files

    #2
    The essence of the issue appears to be authentication of your credentials.

    The organization ID does not look correct to me for InfluxDB 2.0. It looks to me as if you are using organization name. You get the ID from the InfluxDB UI. I may have put guidance in the mcsMQTT manual, but a google search should help you with getting the ID.

    I have been able to get data in and out of InfluxDB 1.8. I have been able to get data in InfluxDB 2.0, but have not yet had success with read operations. Reading is only needed in mcsMQTT if you want to view the data using mcsMQTT charting and history features. I suspect most will be using Grafana to read the data.

    Comment


      #3
      Thanks Michael McSharry That was the problem. All I had to do was actuallly read the label. It said org ID not org name............. Much appreciated

      Comment


        #4
        Great that the solution was easy.

        Comment

        Working...
        X