• Categories
    • Recent
    • Tags
    • Popular
    • Register
    • Login

    missing tag error on influxdb

    Scheduled Pinned Locked Moved Troubleshooting
    4 Posts 2 Posters 943 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F Offline
      fsgrazzutti
      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 1 Reply Last reply Reply Quote 0
      • F Offline
        fsgrazzutti @fsgrazzutti
        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 1 Reply Last reply Reply Quote 0
        • jkandasaJ Offline
          jkandasa @fsgrazzutti
          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 1 Reply Last reply Reply Quote 1
          • F Offline
            fsgrazzutti @jkandasa
            last edited by

            @jkandasa thank you !

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            0

            Online

            587

            Users

            529

            Topics

            3.4k

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