Skip to content

prigei/EnergyAgent

 
 

Repository files navigation

RDDL EnergyAgent

The EnergyAgent service connects an MQTT service (locally or self-defined) to connect SMDs and notarizes the data of the SMDs (connected via MQTT) to the RDDL network.

Tasmota- and Shelly-compatible devices are currently supported types of SMDs. More can be added upon request (preferably PRs on Git Hub).

The RDDL network identity and the needed key material are managed by the attached TrustWallet. The RDDL network configuration (mainnet or testnet) can be set via the UI or the command line.

But there is more to be configured! The following set of environment variables can be defined:

LOG_LEVEL =          "INFO"                # the log level
SMD_TOPIC =         "rddl/SMD/#""         # the channel to subscribe to SMD data updates
TRUST_WALLET_PORT =  "/dev/ttyACM0"        # the serial devices port to the TrustWallet
NOTARIZE_INTERVAL =  60                    # in minutes 60 min = 1 hour
RDDL_NETWORK_MODE =  testnet               # testnet, mainnet, or custom
CONFIG_PATH =        "/tmp"                # the basic config folder where
                                           #   mqtt_config.json, 
                                           #   smart_meter_config.json, and 
                                           #   energy_agent.db are expected

The custom RDDL network connection can be set via the following environment variables:

CHAIN_ID =           "planetmintgo"
PLANETMINT_API =     "http://localhost:1317"
TA_BASE_URL =        "http://localhost:8080"
RDDL_MQTT_USER =     "user"
RDDL_MQTT_PASSWORD = "pwd"
RDDL_MQTT_SERVER =   "localhost"
RDDL_MQTT_PORT =     "1883"

About

rddl Energy agent

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 80.9%
  • HTML 15.8%
  • CSS 1.6%
  • Witcher Script 1.1%
  • Other 0.6%