Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Eclipse VOLTTRON™ Python 3.10 Python 3.11 Run Pytests pypi version Passing?

VOLTTRON historian agent that stores data into a SQLite database

Pre-requisite

Before installing this agent, VOLTTRON (>=11.0.0rc0) should be installed and running. Its virtual environment should be active. Information on how to install of the VOLTTRON platform can be found here

Installation

  1. Create a agent configuration file SQLite historian supports two parameters

    • connection - This is a mandatory parameter with type indicating the type of sql historian (i.e. sqlite) and params containing the path the database file.

    • tables_def - Optional parameter to provide custom table names for topics, data, and metadata.

    • You can also override any parameter defined by base historian. See configuration of base historian class

    The configuration can be in a json or yaml formatted file.

    Example Yaml Format:

    connection:
      # type should be sqlite
      type: sqlite
      params:
        # Relative to the agents data directory
        database: "data/historian.sqlite"
    
      tables_def:
        # prefix for data, topics, and (in version < 4.0.0 metadata tables)
        # default is ""
        table_prefix: ""
        # table name for time series data. default "data"
        data_table: data
        # table name for list of topics. default "topics"
        topics_table: topics
    

    Example JSON format:

    {
      "connection":{
      "type": "sqlite",
      "params":{
       "database": "/home/chandrika/sqlite-historian4.sqlite"
      }
      },
        "tables_def":
        {
         "table_prefix": "p1",
         "data_table": "new_data",
         "topics_table": "new_topics"
        },
      "custom_topics": {
             "capture_record_data": ["heartbeat"]
       }
    }
    
  2. Install and start the volttron-sqlite-historian.

    • You can either pass the configuration file directly using --agent-config
    vctl install volttron-sqlite-historian --agent-config <path to configuration> --start
    
    • OR not pass the config at install time, and use the configuration store for historian's configuration using the command
    vctl install volttron-sqlite-historian --vip-identity <unique id> --start
    vctl config store <vip-identity> config <path to json config file>
    
  3. View the status of the installed agent

    vctl status
    

Development

Please see the following for contributing guidelines contributing.

Please see the following helpful guide about developing modular VOLTTRON agents

Disclaimer Notice

This material was prepared as an account of work sponsored by an agency of the United States Government. Neither the United States Government nor the United States Department of Energy, nor Battelle, nor any of their employees, nor any jurisdiction or organization that has cooperated in the development of these materials, makes any warranty, express or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness or any information, apparatus, product, software, or process disclosed, or represents that its use would not infringe privately owned rights.

Reference herein to any specific commercial product, process, or service by trade name, trademark, manufacturer, or otherwise does not necessarily constitute or imply its endorsement, recommendation, or favoring by the United States Government or any agency thereof, or Battelle Memorial Institute. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or any agency thereof.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

volttron_sqlite_historian-2.0.0rc4.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

volttron_sqlite_historian-2.0.0rc4-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file volttron_sqlite_historian-2.0.0rc4.tar.gz.

File metadata

  • Download URL: volttron_sqlite_historian-2.0.0rc4.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.10.20 Linux/6.8.0-1062-azure

File hashes

Hashes for volttron_sqlite_historian-2.0.0rc4.tar.gz
Algorithm Hash digest
SHA256 d2d4960955438108c4f97916c76badb7498c243f12b0951f2310ad1d72bbde1b
MD5 3c4a638661b6710a4cf286876a15aad6
BLAKE2b-256 47e43ad47390d34cf4f33efd5949ec2b25418c9b66ba87d65c01b7b53aa24751

See more details on using hashes here.

File details

Details for the file volttron_sqlite_historian-2.0.0rc4-py3-none-any.whl.

File metadata

File hashes

Hashes for volttron_sqlite_historian-2.0.0rc4-py3-none-any.whl
Algorithm Hash digest
SHA256 e26900cfb095db554800fe10cbab26924bc651a7b7b7f03311304837977c7cb1
MD5 bfcf98349a6504ceb7a05ac79f8e3818
BLAKE2b-256 bc67655c49104bc85c8716ebfe3bb2fda34d75c2007f7a968bd1a734552bc0b9

See more details on using hashes here.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page