Interface Timedata

All Superinterfaces:
CommonTimedataService
All Known Implementing Classes:
InfluxImpl, TimedataDummy, TimescaledbImpl

@ProviderType public interface Timedata extends CommonTimedataService
  • Method Details

    • id

      String id()
      Returns a unique ID for this OpenEMS component.
      Returns:
      the unique ID
    • write

      void write(String edgeId, com.google.common.collect.TreeBasedTable<Long,String,com.google.gson.JsonElement> data) throws OpenemsException
      Sends the data points to the Timedata service.
      Parameters:
      edgeId - The unique Edge-ID
      data - Table of timestamp (epoch in milliseconds), Channel-Address and the Channel value as JsonElement. Sorted by timestamp.
      Throws:
      OpenemsException - on error