• header.categories
    • header.recent
    • header.tags
    • header.popular
    • register
    • login

    missing tag error on influxdb

    scheduled pinned locked moved Troubleshooting
    4 posts 2 posters 1.4k views 1 watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • F offline
      fsgrazzutti
      global:last-edited-by,

      hello,
      I just installed influx db on the same RPi where mycontroller runs, just for testing.

      I get this error, no matter which variable I am sending:
      2020-11-12 11:43:01,414 ERROR [mc-th-pool-4] [org.mycontroller.standalone.externalserver.driver.DriverInfluxDB:58] Exception, fan_controller_7_ambient_1_temperature,7_1_temperature value=26 1605177781357000000
      org.influxdb.InfluxDBException$UnableToParseException: unable to parse 'fan_controller_7_ambient_1_temperature,7_1_temperature value=26 1605177781357000000': missing tag value

      this is the settings screenshot
      influxdb settings.PNG

      any help is appreciated.
      Franco

      F one-reply-to-this-post last-reply-time reply quote 0
      • F offline
        fsgrazzutti @fsgrazzutti
        global:last-edited-by,

        I just added the tag host=mycontroller and now it works, but still I would like to understand why it´s needed.

        jkandasaJ one-reply-to-this-post last-reply-time reply quote 0
        • jkandasaJ offline
          jkandasa @fsgrazzutti
          global:last-edited-by, jkandasa

          @fsgrazzutti I think when I design I might thought tag is a mandatory field. But looks like it is not.

          https://github.com/mycontroller-org/mycontroller-v1-legacy/blob/development/modules/core/src/main/java/org/mycontroller/standalone/externalserver/driver/DriverInfluxDB.java#L51

          data
                              .append(getVariableKey(sensorVariable, _config.getKeyFormat()))
                              .append(",").append(getVariableKey(sensorVariable, _config.getTags()))
                              .append(" value=").append(getValue(sensorVariable))
                              .append(" ").append(sensorVariable.getTimestamp()).append("000000");
          
          F one-reply-to-this-post last-reply-time reply quote 1
          • F offline
            fsgrazzutti @jkandasa
            global:last-edited-by,

            @jkandasa thank you !

            one-reply-to-this-post last-reply-time reply quote 0
            • first-post
              last-post

            1

            online

            644

            users

            532

            topics

            3.4k

            posts
            Copyright © 2015-2025 MyController.org | Contributors | Localization