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

missing tag error on influxdb

Scheduled Pinned Locked Moved Troubleshooting
4 Posts 2 Posters 1.0k 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 12 Nov 2020, 10:55

    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 12 Nov 2020, 11:03 Reply Quote 0
    • F Offline
      fsgrazzutti @fsgrazzutti
      last edited by 12 Nov 2020, 11:03

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

      J 1 Reply Last reply 12 Nov 2020, 11:14 Reply Quote 0
      • J Offline
        jkandasa @fsgrazzutti
        last edited by jkandasa 11 Dec 2020, 16:45 12 Nov 2020, 11:14

        @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 12 Nov 2020, 11:16 Reply Quote 1
        • F Offline
          fsgrazzutti @jkandasa
          last edited by 12 Nov 2020, 11:16

          @jkandasa thank you !

          1 Reply Last reply Reply Quote 0
          4 out of 4
          • First post
            4/4
            Last post

          0

          Online

          625

          Users

          532

          Topics

          3.4k

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